Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6
-
None
Description
Following the release of MariaDB 10.5.10 on Hirsute, we have discovered that appending -flto and -ffat-lto-objects as compile flags will cause MariaDB to crash with SIGABRT in pthread_exit when closing the replication slave thread.
This is happens regardless if MariaDB is compiled with PERFSCHEMA or not.
Steps to reproduce:
Set up an Ubuntu 21.04 docker container or VM.
run
debian/autobake-deb.sh
|
or
dpkg-buildpackage --build=binary
|
from the base server directory.
Notice the extra -flto and -ffat-lto-objects flags being passed during compilation (and linking).
Run any replication test such as rpl_sp
#1 0x00007f5831212864 in __GI_abort () at abort.c:79
|
#2 0x000055ffc77d5bc1 in _Unwind_SetGR.cold ()
|
#3 0x000055ffc7fa575d in __gcc_personality_v0 ()
|
#4 0x00007f5830fb1604 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
|
#5 0x00007f5830fb1cf2 in _Unwind_ForcedUnwind () from /lib/x86_64-linux-gnu/libgcc_s.so.1
|
#6 0x00007f5831c76d46 in __GI___pthread_unwind (buf=<optimized out>) at unwind.c:131
|
#7 0x00007f5831c6e732 in __do_cancel () at pthreadP.h:307
|
#8 __pthread_exit (value=value@entry=0x0) at pthread_exit.c:28
|
#9 0x000055ffc784b1b3 in handle_slave_sql (arg=0x55ffcb161d00) at ./sql/slave.cc:5298
|
#10 0x00007f5831c6d450 in start_thread (arg=0x7f58240dd640) at pthread_create.c:473
|
#11 0x00007f5831303d53 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Attachments
Issue Links
- causes
-
MCOL-5819 columnstore-23.02.4 (server 11.2 branch) fails to compile with LTO (default Ubuntu 22.04)
- Open
- is duplicated by
-
MDEV-28946 STOP SLAVE or slave errors (ex 1062, 1032) constantly crash MariaDB server
- Closed
-
MDEV-29229 Server crashes every time the slave SQL thread encounters an error
- Closed
- relates to
-
MDEV-32251 Crash in stack unwinding during pthread_exit() in centos7-bintar
- Closed