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

Server crashes in Sql_cmd_alter_sequence::execute upon running ALTER SEQUENCE on a view

    XMLWordPrintable

Details

    Description

      CREATE OR REPLACE VIEW v AS SELECT 1 AS f;
      ALTER SEQUENCE v RESTART;
      

      10.3 86b94170352954

      #3  <signal handler called>
      #4  0x0000559f897e77cc in Sql_cmd_alter_sequence::execute (this=0x7fc090015018, thd=0x7fc090000b00) at /data/src/10.3/sql/sql_sequence.cc:871
      #5  0x0000559f89614e9c in mysql_execute_command (thd=0x7fc090000b00) at /data/src/10.3/sql/sql_parse.cc:6234
      #6  0x0000559f89619860 in mysql_parse (thd=0x7fc090000b00, rawbuf=0x7fc0900148c8 "ALTER SEQUENCE v RESTART", length=24, parser_state=0x7fc0a1327200, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7927
      #7  0x0000559f89607518 in dispatch_command (command=COM_QUERY, thd=0x7fc090000b00, packet=0x7fc090088501 "ALTER SEQUENCE v RESTART", packet_length=24, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1817
      #8  0x0000559f89605ec1 in do_command (thd=0x7fc090000b00) at /data/src/10.3/sql/sql_parse.cc:1380
      #9  0x0000559f897533f4 in do_handle_one_connection (connect=0x559f8d443e50) at /data/src/10.3/sql/sql_connect.cc:1354
      #10 0x0000559f89753181 in handle_one_connection (arg=0x559f8d443e50) at /data/src/10.3/sql/sql_connect.cc:1260
      #11 0x0000559f89bafa8d in pfs_spawn_thread (arg=0x559f8d3a3660) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #12 0x00007fc0a8db2494 in start_thread (arg=0x7fc0a1328700) at pthread_create.c:333
      #13 0x00007fc0a713593f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Also reproducible on bb-10.2-ext 3d428e017db.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              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.