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

SIGSEGV in wsrep_check_sequence | Sql_cmd_alter_sequence::execute

    XMLWordPrintable

Details

    Description

      --source include/galera_cluster.inc
      --source include/have_innodb.inc
       
      CREATE TABLE t (a INT) ENGINE=InnoDB;
      INSERT INTO t VALUES (0);
      --ERROR ER_PARSE_ERROR
      CREATE TABLE t1 (c VARCHAR) ENGINE=InnoDB;
      ALTER SEQUENCE IF EXISTS t MINVALUE=0;
      

      Leads to

      11.4.0 be6d48fd53892e6a54d6cbf4dce29be914e78a9d (Optimized)

      Core was generated by `/test/GAL_MD150124-mariadb-11.4.0-linux-x86_64-opt/bin/mysqld --defaults-file=/'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x154de006e700 (LWP 3595570))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000055846c8e45bf in my_write_core (sig=sig@entry=11) at /test/11.4_opt/mysys/stacktrace.c:424
      #2  0x000055846c43c5e0 in handle_fatal_signal (sig=11) at /test/11.4_opt/sql/signal_handler.cc:357
      #3  <signal handler called>
      #4  0x000055846c284344 in wsrep_check_sequence (thd=thd@entry=0x154d78000c58, seq=seq@entry=0x154d780109d8) at /test/11.4_opt/sql/sql_table.cc:4818
      #5  0x000055846c3acc8b in Sql_cmd_alter_sequence::execute (this=0x154d78011158, thd=0x154d78000c58) at /test/11.4_opt/sql/sql_sequence.cc:944
      #6  0x000055846c1d3116 in mysql_execute_command (thd=0x154d78000c58, is_called_from_prepared_stmt=<optimized out>) at /test/11.4_opt/sql/sql_parse.cc:5786
      #7  0x000055846c1c3716 in mysql_parse (rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, thd=0x154d78000c58) at /test/11.4_opt/sql/sql_parse.cc:7798
      #8  mysql_parse (thd=0x154d78000c58, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /test/11.4_opt/sql/sql_parse.cc:7720
      #9  0x000055846c1c2f41 in wsrep_mysql_parse (thd=0x154d78000c58, rawbuf=0x154d780108f0 "ALTER SEQUENCE IF EXISTS t MINVALUE=0", length=37, parser_state=0x154de006d3c0) at /test/11.4_opt/sql/sql_parse.cc:7608
      #10 0x000055846c1d075d in dispatch_command (command=COM_QUERY, thd=0x154d78000c58, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/11.4_opt/sql/sql_parse.cc:1978
      #11 0x000055846c1d142e in do_command (thd=0x154d78000c58, blocking=blocking@entry=true) at /test/11.4_opt/sql/sql_parse.cc:1406
      #12 0x000055846c2f5c37 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55846e6aff68, put_in_cache=put_in_cache@entry=true) at /test/11.4_opt/sql/sql_connect.cc:1417
      #13 0x000055846c2f5f1d in handle_one_connection (arg=0x55846e6aff68) at /test/11.4_opt/sql/sql_connect.cc:1319
      #14 0x0000154de2a5a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x0000154de2646133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.