[MDEV-26304] Assertion `state_ == s_idle && mode_ == m_local && transaction_.state() == wsrep::transaction::s_aborted' failed in void wsrep::client_state::sync_rollback_complete() Created: 2021-08-04  Updated: 2021-08-04

Status: Open
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.6
Fix Version/s: 10.6

Type: Bug Priority: Major
Reporter: Ramesh Sivaraman Assignee: Seppo Jaakola
Resolution: Unresolved Votes: 0
Labels: multi-thread


 Description   

10.6.4 07674e6a741a82d2e30f9798f699209a6c34dfef (Debug)

mysqld: /test/10.6_dbg/wsrep-lib/src/client_state.cpp:302: void wsrep::client_state::sync_rollback_complete(): Assertion `state_ == s_idle && mode_ == m_local && transaction_.state() == wsrep::transaction::s_aborted' failed.

10.6.4 07674e6a741a82d2e30f9798f699209a6c34dfef (Debug)

Core was generated by `/test/GAL_MD020821-mariadb-10.6.4-linux-x86_64-dbg/bin/mysqld --defaults-file=/'.
Program terminated with signal SIGABRT, Aborted.
#0  0x0000000070000002 in ?? ()
[Current thread is 1 (Thread 0x7a47e31700 (LWP 2635581))]
(gdb) bt
#0  0x0000000070000002 in ?? ()
#1  0x0000563a094ea766 in _raw_syscall () at /home/roc/rr/rr/src/preload/raw_syscall.S:120
#2  0x0000563a094e604e in traced_raw_syscall (call=<optimized out>) at /home/roc/rr/rr/src/preload/syscallbuf.c:272
#3  0x0000563a094e94d1 in syscall_hook_internal (call=0x155031688fa0) at /home/roc/rr/rr/src/preload/syscallbuf.c:3295
#4  syscall_hook (call=0x155031688fa0) at /home/roc/rr/rr/src/preload/syscallbuf.c:3329
#5  0x0000563a094e5e50 in _syscall_hook_trampoline () at /home/roc/rr/rr/src/preload/syscall_hook.S:313
#6  0x0000563a094e5eaf in __morestack () at /home/roc/rr/rr/src/preload/syscall_hook.S:458
#7  0x0000563a094e5f08 in _syscall_hook_trampoline_89_c2_f7_da () at /home/roc/rr/rr/src/preload/syscall_hook.S:504
#8  0x00002db220925f0c in __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#9  0x0000563a0813b1f7 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#10 0x0000563a078ef92c in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:344
#11 <signal handler called>
#12 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#13 0x000050162229c859 in __GI_abort () at abort.c:79
#14 0x000050162229c729 in __assert_fail_base (fmt=0x501622432588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x563a08837370 "state_ == s_idle && mode_ == m_local && transaction_.state() == wsrep::transaction::s_aborted", file=0x563a08837058 "/test/10.6_dbg/wsrep-lib/src/client_state.cpp", line=302, function=<optimized out>) at assert.c:92
#15 0x00005016222adf36 in __GI___assert_fail (assertion=assertion@entry=0x563a08837370 "state_ == s_idle && mode_ == m_local && transaction_.state() == wsrep::transaction::s_aborted", file=file@entry=0x563a08837058 "/test/10.6_dbg/wsrep-lib/src/client_state.cpp", line=line@entry=302, function=function@entry=0x563a08837338 "void wsrep::client_state::sync_rollback_complete()") at assert.c:101
#16 0x0000563a0825f904 in wsrep::client_state::sync_rollback_complete (this=this@entry=0x25e31c0087d8) at /test/10.6_dbg/wsrep-lib/src/client_state.cpp:305
#17 0x0000563a07ca72f8 in wsrep_rollback_local (rollbacker=0x15502c0022b8, thd=0x25e31c002078) at /test/10.6_dbg/sql/sql_class.h:5357
#18 wsrep_rollback_process (rollbacker=0x15502c0022b8, arg=<optimized out>) at /test/10.6_dbg/sql/wsrep_thd.cc:265
#19 0x0000563a07c95529 in start_wsrep_THD (arg=arg@entry=0x563a0a9cea50) at /test/10.6_dbg/sql/wsrep_mysqld.h:579
#20 0x0000563a07c20569 in pfs_spawn_thread (arg=0x563a0a9bae38) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#21 0x00002db22091d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x0000501622399293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95


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