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

Server crashes in mysqld_show_create_get_fields upon SHOW CREATE SEQUENCE on a broken view

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (a INT);
      CREATE VIEW v1 AS SELECT * FROM t1;
      DROP TABLE t1;
      --error ER_NOT_SEQUENCE
      SHOW CREATE SEQUENCE v1;
       
      # Cleanup
      DROP VIEW v1;
      

      10.3 ac31ff6275

      #3  <signal handler called>
      #4  0x0000561cf77e4a16 in mysqld_show_create_get_fields (thd=0x7f2bb0000b00, table_list=0x7f2bb0014db0, field_list=0x7f2bc01e85a0, buffer=0x7f2bc01e85c0) at /data/src/10.3/sql/sql_show.cc:1276
      #5  0x0000561cf77e5077 in mysqld_show_create (thd=0x7f2bb0000b00, table_list=0x7f2bb0014db0) at /data/src/10.3/sql/sql_show.cc:1366
      #6  0x0000561cf77505b3 in mysql_execute_command (thd=0x7f2bb0000b00) at /data/src/10.3/sql/sql_parse.cc:4532
      #7  0x0000561cf775bd8f in mysql_parse (thd=0x7f2bb0000b00, rawbuf=0x7f2bb0014cd8 "SHOW CREATE SEQUENCE v1", length=23, parser_state=0x7f2bc01ea5f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8091
      #8  0x0000561cf7748f43 in dispatch_command (command=COM_QUERY, thd=0x7f2bb0000b00, packet=0x7f2bb000b1e1 "SHOW CREATE SEQUENCE v1", packet_length=23, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1850
      #9  0x0000561cf7747967 in do_command (thd=0x7f2bb0000b00) at /data/src/10.3/sql/sql_parse.cc:1395
      #10 0x0000561cf78af6a4 in do_handle_one_connection (connect=0x561cfb160a60) at /data/src/10.3/sql/sql_connect.cc:1402
      #11 0x0000561cf78af428 in handle_one_connection (arg=0x561cfb160a60) at /data/src/10.3/sql/sql_connect.cc:1308
      #12 0x0000561cf7d49a67 in pfs_spawn_thread (arg=0x561cfb1ad680) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #13 0x00007f2bc7aff494 in start_thread (arg=0x7f2bc01eb700) at pthread_create.c:333
      #14 0x00007f2bc610093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Attachments

        Activity

          People

            robertbindar Robert Bindar
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.