[MDEV-22055] Assertion `active() == false' failed in wsrep::transaction::start_transaction upon ROLLBACK AND CHAIN Created: 2020-03-26  Updated: 2021-04-19  Resolved: 2020-08-25

Status: Closed
Project: MariaDB Server
Component/s: Galera, wsrep
Affects Version/s: 10.4, 10.5
Fix Version/s: 10.4.16, 10.5.7

Type: Bug Priority: Critical
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 1
Labels: None


 Description   

--source include/galera_cluster.inc
 
ROLLBACK AND CHAIN;

10.4 debug 1c8de231

mysqld: /data/src/10.4/wsrep-lib/src/transaction.cpp:123: int wsrep::transaction::start_transaction(const wsrep::transaction_id&): Assertion `active() == false' failed.
 
b0 "/data/src/10.4/wsrep-lib/src/transaction.cpp", line=123, function=0x55e41699e840 <wsrep::transaction::start_transaction(wsrep::transaction_id const&)::__PRETTY_FUNCTION__> "int wsrep::transaction::start_transaction(const wsrep::transaction_id&)") at assert.c:101
#8  0x000055e416429261 in wsrep::transaction::start_transaction (this=0x7fe1f8006cf0, id=...) at /data/src/10.4/wsrep-lib/src/transaction.cpp:123
#9  0x000055e41573bd6e in wsrep::client_state::start_transaction (this=0x7fe1f8006c88, id=...) at /data/src/10.4/wsrep-lib/include/wsrep/client_state.hpp:290
#10 0x000055e4159149d5 in wsrep_start_transaction (thd=0x7fe1f8000af0, trx_id=40) at /data/src/10.4/sql/wsrep_trans_observer.h:136
#11 0x000055e4159150fa in trans_begin (thd=0x7fe1f8000af0, flags=0) at /data/src/10.4/sql/transaction.cc:186
#12 0x000055e41578289c in mysql_execute_command (thd=0x7fe1f8000af0) at /data/src/10.4/sql/sql_parse.cc:5670
#13 0x000055e415789bf1 in mysql_parse (thd=0x7fe1f8000af0, rawbuf=0x7fe1f8011e68 "ROLLBACK AND CHAIN", length=18, parser_state=0x7fe26c0dc160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7900
#14 0x000055e4157891ed in wsrep_mysql_parse (thd=0x7fe1f8000af0, rawbuf=0x7fe1f8011e68 "ROLLBACK AND CHAIN", length=18, parser_state=0x7fe26c0dc160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7704
#15 0x000055e415774c80 in dispatch_command (command=COM_QUERY, thd=0x7fe1f8000af0, packet=0x7fe1f80083a1 "ROLLBACK AND CHAIN", packet_length=18, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1827
#16 0x000055e41577344d in do_command (thd=0x7fe1f8000af0) at /data/src/10.4/sql/sql_parse.cc:1360
#17 0x000055e4158fc9db in do_handle_one_connection (connect=0x55e41826efe0) at /data/src/10.4/sql/sql_connect.cc:1412
#18 0x000055e4158fc72a in handle_one_connection (arg=0x55e41826efe0) at /data/src/10.4/sql/sql_connect.cc:1316
#19 0x000055e4163050c9 in pfs_spawn_thread (arg=0x55e417ce0840) at /data/src/10.4/storage/perfschema/pfs.cc:1869
#20 0x00007fe2771b94a4 in start_thread (arg=0x7fe26c0dd700) at pthread_create.c:456
#21 0x00007fe2752edd0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Reproducible on 10.4, 10.5 with wsrep enabled.
Not reproducible on 10.3.
Not reproducible with wsrep disabled.
No obvious immedate effect on a non-debug build.


Generated at Thu Feb 08 09:11:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.