[MDEV-26630] Assertion `thread_stack' failed in bool THD::store_globals() Created: 2021-09-17  Updated: 2023-06-06  Resolved: 2023-06-06

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Ramesh Sivaraman Assignee: Seppo Jaakola
Resolution: Won't Fix Votes: 0
Labels: multi-thread


 Description   

10.2.41

mysqld: /test/mtest/10.2_dbg/sql/sql_class.cc:1964: bool THD::store_globals(): Assertion `thread_stack' failed.

10.2.41

Core was generated by `/test/mtest/GAL_MD150921-mariadb-10.2.41-linux-x86_64-dbg/bin/mysqld --defaults'.
Program terminated with signal SIGABRT, Aborted.
#0  0x0000000070000002 in ?? ()
[Current thread is 1 (Thread 0x53384e8700 (LWP 2980776))]
(gdb) bt
#0  0x0000000070000002 in ?? ()
#1  0x0000211e1d0cd766 in _raw_syscall () at /home/roc/rr/rr/src/preload/raw_syscall.S:120
#2  0x0000211e1d0c904e in traced_raw_syscall (call=<optimized out>) at /home/roc/rr/rr/src/preload/syscallbuf.c:272
#3  0x0000211e1d0cc4d1 in syscall_hook_internal (call=0x148078e9cfa0) at /home/roc/rr/rr/src/preload/syscallbuf.c:3295
#4  syscall_hook (call=0x148078e9cfa0) at /home/roc/rr/rr/src/preload/syscallbuf.c:3329
#5  0x0000211e1d0c8e50 in _syscall_hook_trampoline () at /home/roc/rr/rr/src/preload/syscall_hook.S:313
#6  0x0000211e1d0c8eaf in __morestack () at /home/roc/rr/rr/src/preload/syscall_hook.S:458
#7  0x0000211e1d0c8f08 in _syscall_hook_trampoline_89_c2_f7_da () at /home/roc/rr/rr/src/preload/syscall_hook.S:504
#8  0x000048f66ee0bf0c in __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#9  0x0000557fd8033484 in my_write_core (sig=sig@entry=6) at /test/mtest/10.2_dbg/mysys/stacktrace.c:382
#10 0x0000557fd792474d in handle_fatal_signal (sig=6) at /test/mtest/10.2_dbg/sql/signal_handler.cc:355
#11 <signal handler called>
#12 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#13 0x0000430c1aef6859 in __GI_abort () at abort.c:79
#14 0x0000430c1aef6729 in __assert_fail_base (fmt=0x430c1b08c588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x557fd80ccbbc "thread_stack", file=0x557fd80cb128 "/test/mtest/10.2_dbg/sql/sql_class.cc", line=1964, function=<optimized out>) at assert.c:92
#15 0x0000430c1af07f36 in __GI___assert_fail (assertion=assertion@entry=0x557fd80ccbbc "thread_stack", file=file@entry=0x557fd80cb128 "/test/mtest/10.2_dbg/sql/sql_class.cc", line=line@entry=1964, function=function@entry=0x557fd80ccba2 "bool THD::store_globals()") at assert.c:101
#16 0x0000557fd76d6392 in THD::store_globals (this=this@entry=0x198410066f60) at /test/mtest/10.2_dbg/sql/mysqld.h:780
#17 0x0000557fd78b8091 in wsrep_rollback_process (thd=0x7ffdb4001fe0) at /test/mtest/10.2_dbg/sql/wsrep_thd.cc:676
#18 0x0000557fd78a8075 in start_wsrep_THD (arg=0x557fda4ef640) at /test/mtest/10.2_dbg/sql/wsrep_mysqld.cc:2181
#19 0x000048f66ee03609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#20 0x0000430c1aff3293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95



 Comments   
Comment by Jan Lindström [ 2023-06-06 ]

10.2 is EOL.

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