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

Assertion `0' failed in Protocol::end_statement() on executing DDL under innodb_fake_changes=1

    XMLWordPrintable

Details

    Description

      The problem seems to have appeared on 10.1 tree with the following revision:

      commit 03ec3511a82e90310c850ea71b395b214cab1645
      Author: Sergei Golubchik <serg@mariadb.org>
      Date:   Wed Oct 8 18:47:16 2014 +0200
       
          cleanup: galera misc cleanups
          
          also disable galera-specific output in mysql_tzinfo_to_sql,
          it'll be enabled later.

      Test case

      --source include/have_log_bin.inc
      --source include/have_xtradb.inc
       
      create table t1 (i int) engine=InnoDB;
      set innodb_fake_changes = 1;
      --disable_abort_on_error
      insert into t1 values (1);
      drop table t1;

      sql/protocol.cc:523: void Protocol::end_statement(): Assertion `0' failed.
      141101 18:58:43 [ERROR] mysqld got signal 6 ;
       
      #6  0x00007ffb5a85d6f1 in *__GI___assert_fail (assertion=0x7ffb5da60948 "0", file=<optimized out>, line=523, function=0x7ffb5da61ea0 "void Protocol::end_statement()") at assert.c:81
      #7  0x00007ffb5d0bf25f in Protocol::end_statement (this=0x7ffb537105f8) at 10.1/sql/protocol.cc:523
      #8  0x00007ffb5d16fb02 in dispatch_command (command=COM_QUERY, thd=0x7ffb53710070, packet=0x7ffb537e8071 "insert into t1 values (1)", packet_length=25) at 10.1/sql/sql_parse.cc:1913
      #9  0x00007ffb5d16d34f in do_command (thd=0x7ffb53710070) at 10.1/sql/sql_parse.cc:1095
      #10 0x00007ffb5d29ad17 in do_handle_one_connection (thd_arg=0x7ffb53710070) at 10.1/sql/sql_connect.cc:1351
      #11 0x00007ffb5d29aa5c in handle_one_connection (arg=0x7ffb53710070) at 10.1/sql/sql_connect.cc:1262
      #12 0x00007ffb5d82c672 in pfs_spawn_thread (arg=0x7ffb5a025b70) at 10.1/storage/perfschema/pfs.cc:1860
      #13 0x00007ffb5c877b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #14 0x00007ffb5a90e20d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Stack trace from

      commit 2bf3e416fedf9984296da9ff43c7ff54780010d1
      Author: Jan Lindström <jan.lindstrom@skysql.com>
      Date:   Wed Oct 29 13:49:12 2014 +0200

      Not reproducible on current Percona server.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            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.