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

Assertion `thd->Item_change_list::is_empty()' failed in mysql_parse after unsuccessful PS

    Details

      Description

      Attention: it can very well be related to MDEV-17738. The assertion failure happens after a similar failing EXECUTE, and it is also reproducible only on 10.2.

      SET SQL_MODE= 'STRICT_ALL_TABLES';
       
      CREATE TABLE t1 (a INT); 
      PREPARE stmt FROM "CREATE TABLE tmp AS SELECT * FROM t1 WHERE 'foo' && 0";
      --error ER_TRUNCATED_WRONG_VALUE
      EXECUTE stmt;
      SELECT a FROM t1 GROUP BY NULL WITH ROLLUP;
       
      # Cleanup
      DROP TABLE t1;
      

      10.2 7e75643778

      mysqld: /data/src/10.2/sql/sql_parse.cc:8034: void mysql_parse(THD*, char*, uint, Parser_state*, bool, bool): Assertion `thd->Item_change_list::is_empty()' failed.
      181116 15:24:27 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f5c56baaee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055d6630f7abc in mysql_parse (thd=0x7f5c40000b00, rawbuf=0x7f5c4015c968 "SELECT a FROM t1 GROUP BY NULL WITH ROLLUP", length=42, parser_state=0x7f5c50e86200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8034
      #9  0x000055d6630e528f in dispatch_command (command=COM_QUERY, thd=0x7f5c40000b00, packet=0x7f5c4008c171 "", packet_length=42, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1824
      #10 0x000055d6630e3bf2 in do_command (thd=0x7f5c40000b00) at /data/src/10.2/sql/sql_parse.cc:1378
      #11 0x000055d66323614d in do_handle_one_connection (connect=0x55d666647930) at /data/src/10.2/sql/sql_connect.cc:1335
      #12 0x000055d663235eda in handle_one_connection (arg=0x55d666647930) at /data/src/10.2/sql/sql_connect.cc:1241
      #13 0x000055d66365953c in pfs_spawn_thread (arg=0x55d6665ab0b0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
      #14 0x00007f5c58889494 in start_thread (arg=0x7f5c50e87700) at pthread_create.c:333
      #15 0x00007f5c56c6793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: