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

Assertion `is_temporary_table(tables)' failed in open_and_process_table on CREATE TABLE .. LIKE <sequence>

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3
    • 10.3.3
    • Sequences
    • None

    Description

      CREATE SEQUENCE s;
      CREATE TABLE t LIKE s;
      

      10.3 016c35a7f2f4a

      mysqld: /data/src/10.3/sql/sql_base.cc:3325: bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*): Assertion `is_temporary_table(tables)' failed.
      170902 19:19:04 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f192205bee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055b15dc94a06 in open_and_process_table (thd=0x7f190c000b00, lex=0x7f190c0046f8, tables=0x7f190c015130, counter=0x7f191c2efb64, flags=2080, prelocking_strategy=0x7f191c2efbe0, has_prelocking_list=false, ot_ctx=0x7f191c2efad0) at /data/src/10.3/sql/sql_base.cc:3325
      #9  0x000055b15dc95ed7 in open_tables (thd=0x7f190c000b00, options=..., start=0x7f191c2efb48, counter=0x7f191c2efb64, flags=2080, prelocking_strategy=0x7f191c2efbe0) at /data/src/10.3/sql/sql_base.cc:3938
      #10 0x000055b15dc97798 in open_and_lock_tables (thd=0x7f190c000b00, options=..., tables=0x7f190c014ae0, derived=false, flags=2080, prelocking_strategy=0x7f191c2efbe0) at /data/src/10.3/sql/sql_base.cc:4693
      #11 0x000055b15dc8a49d in open_and_lock_tables (thd=0x7f190c000b00, tables=0x7f190c014ae0, derived=false, flags=2080) at /data/src/10.3/sql/sql_base.h:495
      #12 0x000055b15defa7b4 in sequence_insert (thd=0x7f190c000b00, lex=0x7f190c0046f8, table_list=0x7f190c014ae0) at /data/src/10.3/sql/sql_sequence.cc:311
      #13 0x000055b15ddddf33 in mysql_create_table_no_lock (thd=0x7f190c000b00, db=0x7f190c0150f0 "test", table_name=0x7f190c014aa8 "t", create_info=0x7f191c2f00c0, alter_info=0x7f191c2f0010, is_trans=0x7f191c2eff64, create_table_mode=0, table_list=0x7f190c014ae0) at /data/src/10.3/sql/sql_table.cc:4871
      #14 0x000055b15dddf340 in mysql_create_like_table (thd=0x7f190c000b00, table=0x7f190c014ae0, src_table=0x7f190c015130, create_info=0x7f191c2f1820) at /data/src/10.3/sql/sql_table.cc:5327
      #15 0x000055b15dd13bf8 in mysql_execute_command (thd=0x7f190c000b00) at /data/src/10.3/sql/sql_parse.cc:4219
      #16 0x000055b15dd1fbd4 in mysql_parse (thd=0x7f190c000b00, rawbuf=0x7f190c014a08 "CREATE TABLE t LIKE s", length=21, parser_state=0x7f191c2f2610, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7921
      #17 0x000055b15dd0d32e in dispatch_command (command=COM_QUERY, thd=0x7f190c000b00, packet=0x7f190c149c51 "CREATE TABLE t LIKE s", packet_length=21, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1819
      #18 0x000055b15dd0bd90 in do_command (thd=0x7f190c000b00) at /data/src/10.3/sql/sql_parse.cc:1370
      #19 0x000055b15de62646 in do_handle_one_connection (connect=0x55b160461260) at /data/src/10.3/sql/sql_connect.cc:1418
      #20 0x000055b15de623d3 in handle_one_connection (arg=0x55b160461260) at /data/src/10.3/sql/sql_connect.cc:1324
      #21 0x000055b15e2da1dc in pfs_spawn_thread (arg=0x55b1604fa240) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #22 0x00007f1923fa0494 in start_thread (arg=0x7f191c2f3700) at pthread_create.c:333
      #23 0x00007f192211893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      No visible harm for non-debug builds.

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              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.