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

Server crashes in in AGGR_OP::put_record on subquery with window function and constant table

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (c CHAR(8)) ENGINE=MyISAM;
      INSERT IGNORE INTO t1 VALUES ('foo');
      SELECT ('bar',1) IN ( SELECT c, ROW_NUMBER() OVER (PARTITION BY c) FROM t1);
      

      10.2 bc75c57cfc18be64f167d91c431076f581b0382b

      #3  <signal handler called>
      #4  0x00007fa929c0fd3b in AGGR_OP::put_record (this=0xa5a5a5a5a5a5a5a5, end_of_records=false) at /data/src/10.2/sql/sql_select.cc:26371
      #5  0x00007fa929c14709 in AGGR_OP::put_record (this=0xa5a5a5a5a5a5a5a5) at /data/src/10.2/sql/sql_select.h:973
      #6  0x00007fa929bfb1cd in sub_select_postjoin_aggr (join=0x7fa9100148d0, join_tab=0x7fa910017858, end_of_records=false) at /data/src/10.2/sql/sql_select.cc:18269
      #7  0x00007fa929bfac79 in do_select (join=0x7fa9100148d0, procedure=0x0) at /data/src/10.2/sql/sql_select.cc:18092
      #8  0x00007fa929bd5527 in JOIN::exec_inner (this=0x7fa9100148d0) at /data/src/10.2/sql/sql_select.cc:3477
      #9  0x00007fa929bd49f6 in JOIN::exec (this=0x7fa9100148d0) at /data/src/10.2/sql/sql_select.cc:3278
      #10 0x00007fa929ec816c in subselect_single_select_engine::exec (this=0x7fa910013f90) at /data/src/10.2/sql/item_subselect.cc:3859
      #13 0x00007fa929ec0323 in Item_in_subselect::val_bool (this=0x7fa910013d90) at /data/src/10.2/sql/item_subselect.cc:1743
      #14 0x00007fa929ac8f4b in Item::val_bool_result (this=0x7fa910013d90) at /data/src/10.2/sql/item.h:1182
      #15 0x00007fa929e39e08 in Item_in_optimizer::val_int (this=0x7fa910014fb0) at /data/src/10.2/sql/item_cmpfunc.cc:1621
      #16 0x00007fa929e1fff9 in Item::send (this=0x7fa910014fb0, protocol=0x7fa910001098, buffer=0x7fa921781b80) at /data/src/10.2/sql/item.cc:6927
      #17 0x00007fa929ac4d24 in Protocol::send_result_set_row (this=0x7fa910001098, row_items=0x7fa910004e48) at /data/src/10.2/sql/protocol.cc:979
      #18 0x00007fa929b461ca in select_send::send_data (this=0x7fa910014178, items=...) at /data/src/10.2/sql/sql_class.cc:2757
      #19 0x00007fa929bd4f81 in JOIN::exec_inner (this=0x7fa910014198) at /data/src/10.2/sql/sql_select.cc:3359
      #20 0x00007fa929bd49f6 in JOIN::exec (this=0x7fa910014198) at /data/src/10.2/sql/sql_select.cc:3278
      #21 0x00007fa929bd5b9f in mysql_select (thd=0x7fa910000b00, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fa910014178, unit=0x7fa9100045e8, select_lex=0x7fa910004d20) at /data/src/10.2/sql/sql_select.cc:3672
      #22 0x00007fa929bca4ea in handle_select (thd=0x7fa910000b00, lex=0x7fa910004520, result=0x7fa910014178, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
      #23 0x00007fa929b963c8 in execute_sqlcom_select (thd=0x7fa910000b00, all_tables=0x7fa910013768) at /data/src/10.2/sql/sql_parse.cc:6443
      #24 0x00007fa929b8c407 in mysql_execute_command (thd=0x7fa910000b00) at /data/src/10.2/sql/sql_parse.cc:3458
      #25 0x00007fa929b99d88 in mysql_parse (thd=0x7fa910000b00, rawbuf=0x7fa910012378 "SELECT ('bar',1) IN ( SELECT c, ROW_NUMBER() OVER (PARTITION BY c) FROM t1)", length=75, parser_state=0x7fa921783200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7879
      #26 0x00007fa929b87e34 in dispatch_command (command=COM_QUERY, thd=0x7fa910000b00, packet=0x7fa9101680b1 "", packet_length=75, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1817
      #27 0x00007fa929b86775 in do_command (thd=0x7fa910000b00) at /data/src/10.2/sql/sql_parse.cc:1362
      #28 0x00007fa929cd24e7 in do_handle_one_connection (connect=0x7fa92d383760) at /data/src/10.2/sql/sql_connect.cc:1354
      #29 0x00007fa929cd2274 in handle_one_connection (arg=0x7fa92d383760) at /data/src/10.2/sql/sql_connect.cc:1260
      #30 0x00007fa92a019922 in pfs_spawn_thread (arg=0x7fa92d425f40) at /data/src/10.2/storage/perfschema/pfs.cc:1862
      #31 0x00007fa9291a9064 in start_thread (arg=0x7fa921784700) at pthread_create.c:309
      #32 0x00007fa92738e62d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.