Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32763

Assertion `fixed' failed at /mariadb-11.3.0/sql/item_strfunc.cc:2391

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.3.0, 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2
    • 10.5, 10.6, 10.11, 11.2
    • Optimizer, Server
    • None
    • Ubuntu 20.04

    Description

      Run these queries in debug build:

      CREATE TABLE t0 ( c26 INT , c42 TEXT ) ;
      INSERT INTO t0 VALUES ( DEFAULT , DEFAULT ) , ( DEFAULT , DEFAULT ) ;
      ALTER TABLE t0 ADD COLUMN c53 INT AFTER c26 ;
      INSERT INTO t0 VALUES ( -40 , -102 , -9 ) , ( 11 , 47 , 106 ) ;
      SELECT t1 . c16 NOT BETWEEN RAND ( ) AND -122 AS c54 FROM ( SELECT TRIM( TRAILING FROM 45 ) AS c16 FROM t0 ) AS t1 JOIN t0 LEFT OUTER JOIN t0 AS t2 USING ( c26 ) ON RAND ( ) GROUP BY c16 , t0 . c26 , t2 . c53 HAVING t0 . c26 = ASCII ( t1 . c16 IN ( SELECT IFNULL ( t0 . c26 , -59 ) AS c54 FROM t0 ) ) ;
      

      Will trigger Assertion Failed:

      GDB info:
      #0  0x00007ffff6c0c00b in raise () from /lib/x86_64-linux-gnu/libc.so.6
      #1  0x00007ffff6beb859 in abort () from /lib/x86_64-linux-gnu/libc.so.6
      #2  0x00007ffff6beb729 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
      #3  0x00007ffff6bfcfd6 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #4  0x0000555557d15d30 in Item_func_rtrim::val_str (this=0x6290000f6408, str=0x6290001a1c10) at /home/wx/mariadb-11.3.0/sql/item_strfunc.cc:2391
      #5  0x0000555556e14bef in Item::str_result (this=0x6290000f6408, tmp=0x6290001a1c10) at /home/wx/mariadb-11.3.0/sql/item.h:1794
      #6  0x0000555557bbe190 in Item_direct_view_ref::str_result (this=0x6290001a1170, tmp=0x6290001a1c10) at /home/wx/mariadb-11.3.0/sql/item.cc:9526
      #7  0x0000555557bc6f08 in Item_cache_str::cache_value (this=0x6290001a1b18) at /home/wx/mariadb-11.3.0/sql/item.cc:10512
      #8  0x0000555557bf3310 in Item_in_optimizer::val_int (this=0x6290001a1a40) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:1577
      #9  0x0000555557c706e4 in Item_int_func::val_str (this=0x6290001a1a40, str=0x62900019d070) at /home/wx/mariadb-11.3.0/sql/item_func.cc:760
      #10 0x0000555557c8f975 in Item_func_ascii::val_int (this=0x62900019cfc0) at /home/wx/mariadb-11.3.0/sql/item_func.cc:3270
      #11 0x00005555578cc1de in Type_handler_int_result::Item_eq_value (this=0x55555b7b6a00 <type_handler_slonglong>, thd=0x62c0001e0288, attr=0x6290001a6c38, a=0x62900019cfc0, b=0x62900019cfc0) at /home/wx/mariadb-11.3.0/sql/sql_type.cc:8689
      #12 0x0000555557c235d4 in Item_equal::add_const (this=0x6290001a6b88, thd=0x62c0001e0288, c=0x62900019cfc0) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:6849
      #13 0x0000555557c23c81 in Item_equal::merge_with_check (this=0x6290001a6b88, thd=0x62c0001e0288, item=0x6290001a6b88, save_merged=true) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:6974
      #14 0x00005555573410d3 in propagate_new_equalities (thd=0x62c0001e0288, cond=0x6290001a6b88, new_equalities=0x6290001a6e10, inherited=0x0, is_simplifiable_cond=0x7fffd162a900) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:19844
      #15 0x0000555557340f3c in propagate_new_equalities (thd=0x62c0001e0288, cond=0x6290001a6d28, new_equalities=0x6290001a6e10, inherited=0x0, is_simplifiable_cond=0x7fffd162a900) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:19831
      #16 0x00005555577ba9a8 in and_new_conditions_to_optimized_cond (thd=0x62c0001e0288, cond=0x6290001a6d28, cond_eq=0x62900019e130, new_conds=..., cond_value=0x62900019e008) at /home/wx/mariadb-11.3.0/sql/opt_subselect.cc:6331
      #17 0x00005555572c0873 in JOIN::optimize_inner (this=0x62900019dc68) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:2384
      #18 0x00005555572bbba6 in JOIN::optimize (this=0x62900019dc68) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:1944
      #19 0x00005555572dd9ba in mysql_select (thd=0x62c0001e0288, tables=0x6290000f7588, fields=..., conds=0x0, og_num=3, order=0x0, group=0x6290000f8f90, having=0x62900019d098, proc_param=0x0, select_options=2165049856, result=0x62900019dc38, unit=0x62c0001e46d8, select_lex=0x6290000f5570) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:5235
      #20 0x00005555572ad18a in handle_select (thd=0x62c0001e0288, lex=0x62c0001e45f8, result=0x62900019dc38, setup_tables_done_option=0) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:628
      #21 0x00005555571ce583 in execute_sqlcom_select (thd=0x62c0001e0288, all_tables=0x6290000f7588) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:6013
      #22 0x00005555571becf6 in mysql_execute_command (thd=0x62c0001e0288, is_called_from_prepared_stmt=false) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:3912
      #23 0x00005555571d95e2 in mysql_parse (thd=0x62c0001e0288, rawbuf=0x6290000f52a8 "SELECT t1 . c16 NOT BETWEEN RAND ( ) AND -122 AS c54 FROM ( SELECT TRIM( TRAILING FROM 45 ) AS c16 FROM t0 ) AS t1 JOIN t0 LEFT OUTER JOIN t0 AS t2 USING ( c26 ) ON RAND ( ) GROUP BY c16 , t0 . c26 , "..., length=300, parser_state=0x7fffd162c870) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:7734
      #24 0x00005555571b1237 in dispatch_command (command=COM_QUERY, thd=0x62c0001e0288, packet=0x6290000fa289 "SELECT t1 . c16 NOT BETWEEN RAND ( ) AND -122 AS c54 FROM ( SELECT TRIM( TRAILING FROM 45 ) AS c16 FROM t0 ) AS t1 JOIN t0 LEFT OUTER JOIN t0 AS t2 USING ( c26 ) ON RAND ( ) GROUP BY c16 , t0 . c26 , "..., packet_length=303, blocking=true) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1893
      #25 0x00005555571adf7c in do_command (thd=0x62c0001e0288, blocking=true) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1406
      #26 0x000055555768e557 in do_handle_one_connection (connect=0x611000057508, put_in_cache=true) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1445
      #27 0x000055555768deb4 in handle_one_connection (arg=0x6110000573c8) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1347
      #28 0x00005555582fa350 in pfs_spawn_thread (arg=0x618000005908) at /home/wx/mariadb-11.3.0/storage/perfschema/pfs.cc:2201
      #29 0x00007ffff7115609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #30 0x00007ffff6ce8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              Xin Wen Xin Wen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.