| Issue |
52946
|
| Summary |
libunwind 13 crash
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
jcelerier
|
Hi,
When building my application against libunwind-13 (at commit 9468a0f953858c696fc5a454420ef4c96e35637c with my toolchain built with -DLIBCXXABI_USE_LLVM_UNWINDER=ON) , it crashes at startup when calling some pthread thing.
Here's such a crash (it happens entirely in "not-my-code", it's a thread launched by pipewire the linux audio API):
```
(gdb) bt
#0 0x000055af05f0df00 in ?? ()
#1 0x00007ffff78b8d5d in unw_get_proc_info () from ../lib/libunwind.so.1
#2 0x00007ffff78bde62 in _Unwind_GetLanguageSpecificData () from ../lib/libunwind.so.1
#3 0x00007ffff4cdbedd in __gcc_personality_v0 (version=<optimized out>, actions=<optimized out>, exception_class=<optimized out>, ue_header=0x7fffad7facb0,
context=0x7fffad7f90d0) at /build/gcc/src/gcc/libgcc/unwind-c.c:154
#4 0x00007ffff4cd90b4 in _Unwind_ForcedUnwind_Phase2 (exc=0x7fffad7facb0, context=0x7fffad7f90d0, frames_p=0x7fffad7f8fd8)
at /build/gcc/src/gcc/libgcc/unwind.inc:182
#5 0x00007ffff4cd97b2 in _Unwind_ForcedUnwind (exc=0x7fffad7facb0, stop=<optimized out>, stop_argument=0x7fffad7f9c70)
at /build/gcc/src/gcc/libgcc/unwind.inc:217
#6 0x00007ffff771a374 in __pthread_unwind () from /usr/lib/libpthread.so.0
#7 0x00007ffff770fc09 in sigcancel_handler () from /usr/lib/libpthread.so.0
#8 <signal handler called>
#9 0x00007ffff4bf892e in epoll_wait () from /usr/lib/libc.so.6
#10 0x00007ffff35bacb9 in ?? () from /usr/lib/spa-0.2/support/libspa-support.so
#11 0x00007ffff35b1986 in ?? () from /usr/lib/spa-0.2/support/libspa-support.so
#12 0x00007ffff05f0977 in ?? () from /usr/lib/libpipewire-0.3.so.0
#13 0x00007ffff7711259 in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007ffff4bf85e3 in clone () from /usr/lib/libc.so.6
```
It works fine with -DLIBCXXABI_USE_LLVM_UNWINDER=OFF or LLVM 12's libunwind.
Platform: building on centos:8 ; fails on any linux distro I could try.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs