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

Server crashes in _ma_unique_hash upon EXCEPT or INTERSECT with ORDER BY MATCH

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (c1 VARCHAR(8)) ENGINE=MyISAM;
      INSERT INTO t1 VALUES ('foo'),('bar');
      CREATE TABLE t2 (c2 VARCHAR(8)) ENGINE=MyISAM;
      INSERT INTO t2 VALUES ('foobar'),('qux');
       
      # Same with INTERSECT instead of EXCEPT
       
      SELECT * FROM t1 EXCEPT SELECT * FROM t2
      ORDER BY MATCH(c1) AGAINST('abc' IN BOOLEAN MODE);
      

      10.3 176000a54ceb8dabe8f8b985aff565dfae6fb0df

      #3  <signal handler called>
      #4  0x0000559c5f2c2ea0 in _ma_unique_hash (def=0x7f5220058400, record=0x7f5220036ab0 "\375\006foobar") at /data/src/10.3/storage/maria/ma_unique.c:111
      #5  0x0000559c5f2d3318 in ha_maria::find_unique_row (this=0x7f5220036e28, record=0x7f5220036ab0 "\375\006foobar", constrain_no=0) at /data/src/10.3/storage/maria/ha_maria.cc:3963
      #6  0x0000559c5eef652c in select_unit::send_data (this=0x7f5220016550, values=...) at /data/src/10.3/sql/sql_union.cc:186
      #7  0x0000559c5ee8546e in end_send (join=0x7f5220016d40, join_tab=0x7f522001a140, end_of_records=false) at /data/src/10.3/sql/sql_select.cc:19633
      #8  0x0000559c5ee82feb in evaluate_join_record (join=0x7f5220016d40, join_tab=0x7f5220019d90, error=0) at /data/src/10.3/sql/sql_select.cc:18690
      #9  0x0000559c5ee828fb in sub_select (join=0x7f5220016d40, join_tab=0x7f5220019d90, end_of_records=false) at /data/src/10.3/sql/sql_select.cc:18470
      #10 0x0000559c5ee81e94 in do_select (join=0x7f5220016d40, procedure=0x0) at /data/src/10.3/sql/sql_select.cc:18010
      #11 0x0000559c5ee5c777 in JOIN::exec_inner (this=0x7f5220016d40) at /data/src/10.3/sql/sql_select.cc:3480
      #12 0x0000559c5ee5bc44 in JOIN::exec (this=0x7f5220016d40) at /data/src/10.3/sql/sql_select.cc:3281
      #13 0x0000559c5eefa6cf in st_select_lex_unit::exec (this=0x7f5220004698) at /data/src/10.3/sql/sql_union.cc:1414
      #14 0x0000559c5eef5f7c in mysql_union (thd=0x7f5220000b00, lex=0x7f52200045d0, result=0x7f5220016530, unit=0x7f5220004698, setup_tables_done_option=0) at /data/src/10.3/sql/sql_union.cc:41
      #15 0x0000559c5ee516b0 in handle_select (thd=0x7f5220000b00, lex=0x7f52200045d0, result=0x7f5220016530, setup_tables_done_option=0) at /data/src/10.3/sql/sql_select.cc:351
      #16 0x0000559c5ee1d8b5 in execute_sqlcom_select (thd=0x7f5220000b00, all_tables=0x7f5220014b68) at /data/src/10.3/sql/sql_parse.cc:6476
      #17 0x0000559c5ee13c43 in mysql_execute_command (thd=0x7f5220000b00) at /data/src/10.3/sql/sql_parse.cc:3590
      #18 0x0000559c5ee21306 in mysql_parse (thd=0x7f5220000b00, rawbuf=0x7f52200148e8 "SELECT * FROM t1 EXCEPT SELECT * FROM t2\nORDER BY MATCH(c1) AGAINST('abc' IN BOOLEAN MODE)", length=90, parser_state=0x7f52309b4200, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7932
      #19 0x0000559c5ee0ef93 in dispatch_command (command=COM_QUERY, thd=0x7f5220000b00, packet=0x7f5220088671 "SELECT * FROM t1 EXCEPT SELECT * FROM t2\nORDER BY MATCH(c1) AGAINST('abc' IN BOOLEAN MODE)", packet_length=90, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1822
      #20 0x0000559c5ee0d90d in do_command (thd=0x7f5220000b00) at /data/src/10.3/sql/sql_parse.cc:1380
      #21 0x0000559c5ef5b7e4 in do_handle_one_connection (connect=0x559c62bd8bb0) at /data/src/10.3/sql/sql_connect.cc:1354
      #22 0x0000559c5ef5b571 in handle_one_connection (arg=0x559c62bd8bb0) at /data/src/10.3/sql/sql_connect.cc:1260
      #23 0x0000559c5f3b8b2f in pfs_spawn_thread (arg=0x559c62b33a60) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #24 0x00007f5238662494 in start_thread (arg=0x7f52309b5700) at pthread_create.c:333
      #25 0x00007f52367da93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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