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

Assertion `( ((global_system_variables.wsrep_on) && (thd && thd->variables.wsrep_on)) && wsrep_emulate_bin_log) || mysql_bin_log .is_open()' fails on SAVEPOINT with disabled wsrep_provider

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.28a-galera
    • 5.5.34-galera
    • None

    Description

      Test case:

      START TRANSACTION WITH CONSISTENT SNAPSHOT;
      SAVEPOINT A;

      It can be executed as an MTR test case, no options needed: perl ./mtr <testname>
      Or, I start the server as

      maria-5.5-galera/sql/mysqld --no-defaults --basedir=maria-5.5-galera --datadir=maria-5.5-galera/data1 --log-error=maria-5.5-galera/data1/log.err --loose-lc-messages-dir=maria-5.5-galera/sql/share --loose-language=maria-5.5-galera/sql/share/english --port=3306 --socket=maria-5.5-galera/data1/tmp/mysql.sock --tmpdir=maria-5.5-galera/data1/tmp --core

      same result.

      maria-5.5-galera/sql/log.cc:1670: void binlog_trans_log_savepos(THD*, my_off_t*): Assertion `(
      ((global_system_variables.wsrep_on) && (thd && thd->variables.wsrep_on)) && wsrep_emulate_bin_log) || mysql_bin_log
      .is_open()' failed.
      130302  2:25:47 [ERROR] mysqld got signal 6 ;

      #6  0x00007f7a5bc79d4d in __GI___assert_fail (assertion=0xe0f990 "(((global_system_variables.wsrep_on) && (thd && thd->variables.wsrep_on)) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()", file=<optimized out>, line=1670, function=<optimized out>) at assert.c:81
      #7  0x00000000008a877f in binlog_trans_log_savepos (thd=0x2f05d10, pos=0x2f0bf98) at maria-5.5-galera/sql/log.cc:1670
      #8  0x00000000008a9b9a in binlog_savepoint_set (hton=0x2d48bf0, thd=0x2f05d10, sv=0x2f0bf98) at maria-5.5-galera/sql/log.cc:2231
      #9  0x00000000007e98a4 in ha_savepoint (thd=0x2f05d10, sv=0x2f0bf68) at maria-5.5-galera/sql/handler.cc:1973
      #10 0x0000000000730a48 in trans_savepoint (thd=0x2f05d10, name=...) at maria-5.5-galera/sql/transaction.cc:458
      #11 0x000000000061f15d in mysql_execute_command (thd=0x2f05d10) at maria-5.5-galera/sql/sql_parse.cc:4217
      #12 0x0000000000625224 in mysql_parse (thd=0x2f05d10, rawbuf=0x301cd08 "SAVEPOINT A", length=11, parser_state=0x7f7a5135d500) at maria-5.5-galera/sql/sql_parse.cc:6305
      #13 0x00000000006242ea in wsrep_mysql_parse (thd=0x2f05d10, rawbuf=0x301cd08 "SAVEPOINT A", length=11, parser_state=0x7f7a5135d500) at maria-5.5-galera/sql/sql_parse.cc:6070
      #14 0x00000000006167b9 in dispatch_command (command=COM_QUERY, thd=0x2f05d10, packet=0x2efd741 "SAVEPOINT A", packet_length=11) at maria-5.5-galera/sql/sql_parse.cc:1245
      #15 0x0000000000615598 in do_command (thd=0x2f05d10) at maria-5.5-galera/sql/sql_parse.cc:891
      #16 0x000000000071e143 in do_handle_one_connection (thd_arg=0x2f05d10) at maria-5.5-galera/sql/sql_connect.cc:1291
      #17 0x000000000071db1b in handle_one_connection (arg=0x2f05d10) at maria-5.5-galera/sql/sql_connect.cc:1199
      #18 0x0000000000c3d0d7 in pfs_spawn_thread (arg=0x301a970) at maria-5.5-galera/storage/perfschema/pfs.cc:1015
      #19 0x00007f7a5c580efc in start_thread (arg=0x7f7a5135e700) at pthread_create.c:304
      #20 0x00007f7a5bd2ff4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x301cd08): SAVEPOINT A
      Connection ID (thread ID): 2
      Status: NOT_KILLED

      revision-id: daniel@gandalf-20130301022556-h2fqksol83zg35b2
      revno: 3386
      branch-nick: maria-5.5-galera

      Built as cmake . -DCMAKE_BUILD_TYPE=Debug && make

      Attachments

        Activity

          People

            nirbhay_c Nirbhay Choubey (Inactive)
            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.