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
-
Activity
Field | Original Value | New Value |
---|---|---|
Priority | Major [ 3 ] | Critical [ 2 ] |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Workflow | MariaDB v3 [ 121711 ] | MariaDB v4 [ 142840 ] |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] | Sergei Golubchik [ serg ] |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.7 [ 24805 ] | |
Fix Version/s | 10.8 [ 26121 ] |
Fix Version/s | 10.2 [ 14601 ] |
Link |
This issue is duplicated by |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Priority | Critical [ 2 ] | Major [ 3 ] |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Link |
This issue relates to |
Link |
This issue relates to |
Fix Version/s | 10.7 [ 24805 ] |
Fix Version/s | 10.8 [ 26121 ] |
Fix Version/s | 10.11 [ 27614 ] |
Link |
This issue relates to |
Assignee | Sergei Golubchik [ serg ] | Vicențiu Ciorbaru [ cvicentiu ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] | Daniel Black [ danblack ] |
Zendesk Related Tickets | 112319 |
Assignee | Daniel Black [ danblack ] | Sergei Golubchik [ serg ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Fix Version/s | 10.6.20 [ 29903 ] | |
Fix Version/s | 10.11.10 [ 29904 ] | |
Fix Version/s | 11.2.6 [ 29906 ] | |
Fix Version/s | 11.4.4 [ 29907 ] | |
Fix Version/s | 11.6.2 [ 29908 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |