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

Assertion `table' failed in mysql_delete

    XMLWordPrintable

Details

    Description

      CREATE OR REPLACE TABLE t1 (i INT);
      CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
      TRUNCATE v1 TO system_time NOW();
      

      bb-10.3-temporal 2ae2876a6ce4b1

      mysqld: /data/src/bb-10.3-temporal/sql/sql_delete.cc:316: bool mysql_delete(THD*, TABLE_LIST*, COND*, SQL_I_List<st_order>*, ha_rows, ulonglong, select_result*): Assertion `table' failed.
      171216 23:50:53 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f8f734d4ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000056501d2293d9 in mysql_delete (thd=0x7f8f5c000b00, table_list=0x7f8f5c014d38, conds=0x0, order_list=0x0, limit=18446744073709551615, options=0, result=0x0) at /data/src/bb-10.3-temporal/sql/sql_delete.cc:316
      #9  0x000056501d2618b4 in Sql_cmd_truncate_table::execute (this=0x7f8f5c015468, thd=0x7f8f5c000b00) at /data/src/bb-10.3-temporal/sql/sql_truncate.cc:503
      #10 0x000056501cda05a5 in mysql_execute_command (thd=0x7f8f5c000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:6258
      #11 0x000056501cda50e4 in mysql_parse (thd=0x7f8f5c000b00, rawbuf=0x7f8f5c014c48 "TRUNCATE v1 TO system_time NOW()", length=32, parser_state=0x7f8f6d7435f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7988
      #12 0x000056501cd928a7 in dispatch_command (command=COM_QUERY, thd=0x7f8f5c000b00, packet=0x7f8f5c11ee21 "TRUNCATE v1 TO system_time NOW()", packet_length=32, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1826
      #13 0x000056501cd912db in do_command (thd=0x7f8f5c000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1371
      #14 0x000056501cef7ada in do_handle_one_connection (connect=0x565020660620) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #15 0x000056501cef7867 in handle_one_connection (arg=0x565020660620) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #16 0x000056501d38dcfc in pfs_spawn_thread (arg=0x565020668590) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #17 0x00007f8f751ab494 in start_thread (arg=0x7f8f6d744700) at pthread_create.c:333
      #18 0x00007f8f7359193f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Activity

          People

            kevg Eugene Kosov (Inactive)
            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.