UniqueID: is_prepared_xa(thd) || ((thd->lex->sql_command == SQLCOM_XA_ROLLBACK && thd->transaction->xid_state.get_state_code() == XA_IDLE) || thd->lex->xa_opt == XA_ONE_PHASE)|SIGABRT|TC_LOG::run_commit_ordered|MYSQL_BIN_LOG::trx_group_commit_leader|MYSQL_BIN_LOG::write_transaction_to_binlog_events|MYSQL_BIN_LOG::write_transaction_to_binlog Branch Revision: Previous version of patch: bb-10.6-andrei_dbg @ 88b0738b7c61a25eaffc66dda0a5a7f850c89918 Error log: mariadbd: /test/bb-10.6-andrei_dbg/sql/log.cc:9430: void TC_LOG::run_commit_ordered(THD*, bool, THD*): Assertion `is_prepared_xa(thd) || ((thd->lex->sql_command == SQLCOM_XA_ROLLBACK && thd->transaction->xid_state.get_state_code() == XA_IDLE) || thd->lex->xa_opt == XA_ONE_PHASE)' failed. Full Stack: Core was generated by `/test/PATCH_MD201123-mariadb-10.6.17-linux-x86_64-dbg/bin/mariadbd --no-default'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23046459528768) at ./nptl/pthread_kill.c:44 [Current thread is 1 (Thread 0x14f5ec089640 (LWP 309462))] (gdb) bt #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23046459528768) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=23046459528768) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=23046459528768, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x000014f602642476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x000014f6026287f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x000014f60262871b in __assert_fail_base (fmt=0x14f6027dd150 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5635e19f8ca0 "is_prepared_xa(thd) || ((thd->lex->sql_command == SQLCOM_XA_ROLLBACK && thd->transaction->xid_state.get_state_code() == XA_IDLE) || thd->lex->xa_opt == XA_ONE_PHASE)", file=0x5635e19f6ae8 "/test/bb-10.6-andrei_dbg/sql/log.cc", line=9430, function=) at ./assert/assert.c:92 #6 0x000014f602639e96 in __GI___assert_fail (assertion=0x5635e19f8ca0 "is_prepared_xa(thd) || ((thd->lex->sql_command == SQLCOM_XA_ROLLBACK && thd->transaction->xid_state.get_state_code() == XA_IDLE) || thd->lex->xa_opt == XA_ONE_PHASE)", file=0x5635e19f6ae8 "/test/bb-10.6-andrei_dbg/sql/log.cc", line=9430, function=0x5635e19f8ba8 "void TC_LOG::run_commit_ordered(THD*, bool, THD*)") at ./assert/assert.c:101 #7 0x00005635e107461f in TC_LOG::run_commit_ordered (this=this@entry=0x5635e21ca960 , thd=0x14f5b4000d58, all=true, leader_thd=0x14f5b4000d58) at /test/bb-10.6-andrei_dbg/sql/log.cc:9430 #8 0x00005635e107da6e in MYSQL_BIN_LOG::trx_group_commit_leader (this=this@entry=0x5635e21ca960 , leader=leader@entry=0x14f5ec088580) at /test/bb-10.6-andrei_dbg/sql/log.cc:8616 #9 0x00005635e107e07a in MYSQL_BIN_LOG::write_transaction_to_binlog_events (this=this@entry=0x5635e21ca960 , entry=entry@entry=0x14f5ec088580) at /test/bb-10.6-andrei_dbg/sql/log.cc:8194 #10 0x00005635e107e6a5 in MYSQL_BIN_LOG::write_transaction_to_binlog (this=this@entry=0x5635e21ca960 , thd=thd@entry=0x14f5b4000d58, cache_mngr=cache_mngr@entry=0x14f5b410f148, end_ev=end_ev@entry=0x14f5ec088860, all=all@entry=true, using_stmt_cache=using_stmt_cache@entry=false, using_trx_cache=true, is_ro_1pc=false) at /test/bb-10.6-andrei_dbg/sql/log.cc:7791 #11 0x00005635e107e88e in binlog_flush_cache (thd=thd@entry=0x14f5b4000d58, cache_mngr=cache_mngr@entry=0x14f5b410f148, end_ev=end_ev@entry=0x14f5ec088860, all=all@entry=true, using_stmt=using_stmt@entry=false, using_trx=using_trx@entry=true, is_ro_1pc=false) at /test/bb-10.6-andrei_dbg/sql/log.cc:1771 #12 0x00005635e107ecf9 in binlog_rollback_flush_trx_cache (thd=thd@entry=0x14f5b4000d58, all=all@entry=true, cache_mngr=cache_mngr@entry=0x14f5b410f148) at /test/bb-10.6-andrei_dbg/sql/log.cc:1907 #13 0x00005635e107f259 in binlog_rollback (hton=, thd=0x14f5b4000d58, all=) at /test/bb-10.6-andrei_dbg/sql/log.cc:2326 #14 0x00005635e0f2f8fd in ha_rollback_trans (thd=thd@entry=0x14f5b4000d58, all=all@entry=true) at /test/bb-10.6-andrei_dbg/sql/handler.cc:2278 #15 0x00005635e0e9ef72 in xa_trans_force_rollback (thd=thd@entry=0x14f5b4000d58) at /test/bb-10.6-andrei_dbg/sql/xa.cc:428 #16 0x00005635e0ea0215 in trans_xa_detach (thd=thd@entry=0x14f5b4000d58) at /test/bb-10.6-andrei_dbg/sql/xa.cc:874 #17 0x00005635e0c10a4b in THD::cleanup (this=this@entry=0x14f5b4000d58) at /test/bb-10.6-andrei_dbg/sql/sql_class.cc:1561 #18 0x00005635e0b7afaa in unlink_thd (thd=0x14f5b4000d58) at /test/bb-10.6-andrei_dbg/sql/mysqld.cc:2733 #19 0x00005635e0dc11bc in do_handle_one_connection (connect=, connect@entry=0x5635e3f73c08, put_in_cache=put_in_cache@entry=true) at /test/bb-10.6-andrei_dbg/sql/sql_connect.cc:1427 #20 0x00005635e0dc1452 in handle_one_connection (arg=arg@entry=0x5635e3f73c08) at /test/bb-10.6-andrei_dbg/sql/sql_connect.cc:1318 #21 0x00005635e120f628 in pfs_spawn_thread (arg=0x5635e3edcd78) at /test/bb-10.6-andrei_dbg/storage/perfschema/pfs.cc:2201 #22 0x000014f602694ac3 in start_thread (arg=) at ./nptl/pthread_create.c:442 #23 0x000014f602726a40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 Query: XA END 'a';