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

Assertion `0' failed in void wsrep::transaction::state(wsrep::unique_lock<wsrep::mutex>&, wsrep::transaction::state)

    XMLWordPrintable

Details

    Description

      --source include/galera_cluster.inc
      --source include/have_innodb.inc
       
      SET SESSION wsrep_trx_fragment_size=1;
      SET GLOBAL gtid_slave_pos='1-1-1,2-2-2';
      

      Leads to

      11.4.0 be6d48fd53892e6a54d6cbf4dce29be914e78a9d (Debug)

      mysqld: /test/11.4_dbg/wsrep-lib/src/transaction.cpp:1364: void wsrep::transaction::state(wsrep::unique_lock<wsrep::mutex>&, wsrep::transaction::state): Assertion `0' failed.
      

      11.4.0 be6d48fd53892e6a54d6cbf4dce29be914e78a9d (Debug)

      Core was generated by `/test/GAL_MD150124-mariadb-11.4.0-linux-x86_64-dbg/bin/mysqld --defaults-file=/'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x146b50167700 (LWP 332670))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000564ecb89c74e in my_write_core (sig=sig@entry=6) at /test/11.4_dbg/mysys/stacktrace.c:424
      #2  0x0000564ecb187168 in handle_fatal_signal (sig=6) at /test/11.4_dbg/sql/signal_handler.cc:357
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x0000146b63ff2859 in __GI_abort () at abort.c:79
      #6  0x0000146b63ff2729 in __assert_fail_base (fmt=0x146b64188588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x564ecbc23875 "0", file=0x564ecc0826c8 "/test/11.4_dbg/wsrep-lib/src/transaction.cpp", line=1364, function=<optimized out>) at assert.c:92
      #7  0x0000146b64003fd6 in __GI___assert_fail (assertion=assertion@entry=0x564ecbc23875 "0", file=file@entry=0x564ecc0826c8 "/test/11.4_dbg/wsrep-lib/src/transaction.cpp", line=line@entry=1364, function=function@entry=0x564ecc082b58 "void wsrep::transaction::state(wsrep::unique_lock<wsrep::mutex>&, wsrep::transaction::state)") at assert.c:101
      #8  0x0000564ecba2da34 in wsrep::transaction::state (this=this@entry=0x146af80075d0, lock=@0x146b501650a0: {_M_device = 0x146af8007530, _M_owns = true}, next_state=next_state@entry=wsrep::transaction::s_certifying) at /test/11.4_dbg/wsrep-lib/src/transaction.cpp:1364
      #9  0x0000564ecba30739 in wsrep::transaction::certify_fragment (this=this@entry=0x146af80075d0, lock=@0x146b501650a0: {_M_device = 0x146af8007530, _M_owns = true}) at /test/11.4_dbg/wsrep-lib/src/transaction.cpp:1485
      #10 0x0000564ecba31ab5 in wsrep::transaction::streaming_step (this=this@entry=0x146af80075d0, lock=@0x146b501650a0: {_M_device = 0x146af8007530, _M_owns = true}, force=force@entry=false) at /test/11.4_dbg/wsrep-lib/src/transaction.cpp:1464
      #11 0x0000564ecba31b61 in wsrep::transaction::after_row (this=this@entry=0x146af80075d0) at /test/11.4_dbg/wsrep-lib/src/transaction.cpp:270
      #12 0x0000564ecba13ace in wsrep::client_state::after_row (this=this@entry=0x146af8007568) at /test/11.4_dbg/wsrep-lib/include/wsrep/streaming_context.hpp:76
      #13 0x0000564ecb1896bc in wsrep_after_row_internal (thd=0x146af8000d48) at /test/11.4_dbg/sql/sql_class.h:5643
      #14 wsrep_after_row (thd=0x146af8000d48) at /test/11.4_dbg/sql/handler.cc:7467
      #15 0x0000564ecb19b34d in handler::ha_write_row (this=0x146af802e240, buf=0x146af801ec80 "\377\002") at /test/11.4_dbg/sql/sql_analyze_stmt.h:82
      #16 0x0000564ecb07b1d6 in rpl_slave_state::record_gtid (this=this@entry=0x564ecdd94b10, thd=thd@entry=0x146af8000d48, gtid=gtid@entry=0x146b50165a20, sub_id=sub_id@entry=2, in_transaction=in_transaction@entry=false, in_statement=in_statement@entry=true, out_hton=0x146b50165a18) at /test/11.4_dbg/sql/rpl_gtid.cc:751
      #17 0x0000564ecb07cccd in rpl_slave_state::load (this=0x564ecdd94b10, thd=thd@entry=0x146af8000d48, state_from_master=<optimized out>, len=<optimized out>, reset=reset@entry=true, in_statement=in_statement@entry=true) at /test/11.4_dbg/sql/rpl_gtid.cc:1444
      #18 0x0000564ecaeb511f in rpl_gtid_pos_update (thd=thd@entry=0x146af8000d48, str=<optimized out>, len=<optimized out>) at /test/11.4_dbg/sql/sql_repl.cc:4879
      #19 0x0000564ecb00192e in Sys_var_gtid_slave_pos::global_update (this=<optimized out>, thd=0x146af8000d48, var=0x146af8013488) at /test/11.4_dbg/sql/sys_vars.cc:2051
      #20 0x0000564ecad979ec in sys_var::update (this=0x564ecc49bbc0 <Sys_gtid_slave_pos>, thd=0x146af8000d48, var=0x146af8013488) at /test/11.4_dbg/sql/set_var.cc:207
      #21 0x0000564ecad97f29 in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/11.4_dbg/sql/set_var.cc:851
      #22 0x0000564ecad9919c in sql_set_variables (thd=thd@entry=0x146af8000d48, var_list=var_list@entry=0x146af8005f68, free=free@entry=true) at /test/11.4_dbg/sql/set_var.cc:733
      #23 0x0000564ecae7dcf3 in mysql_execute_command (thd=thd@entry=0x146af8000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.4_dbg/sql/sql_parse.cc:4788
      #24 0x0000564ecae697bf in mysql_parse (thd=thd@entry=0x146af8000d48, rawbuf=rawbuf@entry=0x146af80132f0 "SET GLOBAL gtid_slave_pos='1-1-1,2-2-2'", length=length@entry=39, parser_state=parser_state@entry=0x146b501662c0) at /test/11.4_dbg/sql/sql_parse.cc:7798
      #25 0x0000564ecae690c5 in wsrep_mysql_parse (thd=thd@entry=0x146af8000d48, rawbuf=0x146af80132f0 "SET GLOBAL gtid_slave_pos='1-1-1,2-2-2'", length=39, parser_state=parser_state@entry=0x146b501662c0) at /test/11.4_dbg/sql/sql_parse.cc:7608
      #26 0x0000564ecae770f6 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x146af8000d48, packet=packet@entry=0x146af800afb9 "SET GLOBAL gtid_slave_pos='1-1-1,2-2-2'", packet_length=packet_length@entry=39, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_class.h:1552
      #27 0x0000564ecae795c0 in do_command (thd=0x146af8000d48, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_parse.cc:1406
      #28 0x0000564ecafeaac4 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x564ece5cb198, put_in_cache=put_in_cache@entry=true) at /test/11.4_dbg/sql/sql_connect.cc:1417
      #29 0x0000564ecafeaf96 in handle_one_connection (arg=0x564ece5cb198) at /test/11.4_dbg/sql/sql_connect.cc:1319
      #30 0x0000146b64503609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #31 0x0000146b640ef133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.33 (dbg), 10.5.24 (dbg), 10.6.17 (dbg), 10.11.7 (dbg), 11.0.5 (dbg), 11.1.4 (dbg), 11.2.3 (dbg), 11.3.2 (dbg), 11.4.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.33 (opt), 10.5.24 (opt), 10.6.17 (opt), 10.11.7 (opt), 11.0.5 (opt), 11.1.4 (opt), 11.2.3 (opt), 11.3.2 (opt), 11.4.0 (opt)

      Attachments

        Activity

          People

            sysprg Julius Goryavsky
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.