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

Server crashes in TABLE::is_created

    Details

      Description

      Reproducible on 10.2-10.4 with MyIsam, not with Innodb.

      CREATE TABLE t1 ( i int) ENGINE=MyISAM;
       
      SET @var = 1;
      SELECT BIT_OR(@var) OVER (), MAX(NULL) FROM t1;
      

      10.2 cac14b92252b3e7bcbebb8

      #3  <signal handler called>
      #4  0x00005576d19e38ea in TABLE::is_created (this=0xa5a5a5a5a5a5a5a5) at /10.2/sql/table.h:1403
      #5  0x00005576d1a727bb in JOIN::cleanup (this=0x7f6e880134e8, full=false) at /10.2/sql/sql_select.cc:12308
      #6  0x00005576d1a72277 in JOIN::join_free (this=0x7f6e880134e8) at /10.2/sql/sql_select.cc:12178
      #7  0x00005576d1a81738 in do_select (join=0x7f6e880134e8, procedure=0x0) at /10.2/sql/sql_select.cc:18348
      #8  0x00005576d1a5bfb7 in JOIN::exec_inner (this=0x7f6e880134e8) at /10.2/sql/sql_select.cc:3623
      #9  0x00005576d1a5b466 in JOIN::exec (this=0x7f6e880134e8) at /10.2/sql/sql_select.cc:3418
      #10 0x00005576d1a5c628 in mysql_select (thd=0x7f6e88000b00, tables=0x7f6e88012d60, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f6e880134c8, unit=0x7f6e880046f8, select_lex=0x7f6e88004e30) at /10.2/sql/sql_select.cc:3818
      #11 0x00005576d1a508c2 in handle_select (thd=0x7f6e88000b00, lex=0x7f6e88004630, result=0x7f6e880134c8, setup_tables_done_option=0) at /10.2/sql/sql_select.cc:376
      #12 0x00005576d1a1bd6b in execute_sqlcom_select (thd=0x7f6e88000b00, all_tables=0x7f6e88012d60) at /10.2/sql/sql_parse.cc:6484
      #13 0x00005576d1a119e8 in mysql_execute_command (thd=0x7f6e88000b00) at /10.2/sql/sql_parse.cc:3490
      #14 0x00005576d1a1fbf7 in mysql_parse (thd=0x7f6e88000b00, rawbuf=0x7f6e88012468 "SELECT BIT_OR(@var) OVER (), MAX(NULL) FROM t1", length=46, parser_state=0x7f6ed4553080, is_com_multi=false, is_next_command=false) at /10.2/sql/sql_parse.cc:8018
      #15 0x00005576d1a0d248 in dispatch_command (command=COM_QUERY, thd=0x7f6e88000b00, packet=0x7f6e880960a1 "", packet_length=46, is_com_multi=false, is_next_command=false) at /10.2/sql/sql_parse.cc:1829
      #16 0x00005576d1a0bb4c in do_command (thd=0x7f6e88000b00) at /10.2/sql/sql_parse.cc:1379
      #17 0x00005576d1b5ebb9 in do_handle_one_connection (connect=0x5576d5e0e8f0) at /10.2/sql/sql_connect.cc:1336
      #18 0x00005576d1b5e939 in handle_one_connection (arg=0x5576d5e0e8f0) at /10.2/sql/sql_connect.cc:1242
      #19 0x00005576d238ebd4 in pfs_spawn_thread (arg=0x5576d5d59f70) at /10.2/storage/perfschema/pfs.cc:1862
      #20 0x00007f6ee2ba06ba in start_thread (arg=0x7f6ed4554700) at pthread_create.c:333
      #21 0x00007f6ee203541d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                varun Varun Gupta
                Reporter:
                alice Alice Sherepa
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: