I'm getting crashes (segfault) with qemu since upgrading jemalloc.
qemu has not been recompiled/relinked, so I'm thinking there is some subtle linking confusion between qemu, jemalloc and pthread - rebuilding qemu solves the issue locally (EDIT: I have no idea if it does, didn't use jemalloc on rebuild; will check today as well) but there are other applications that seem to crash similarily (like mariadb, probably any multithread program using jemalloc) and it's always better to understand what's happening :)
I've got two backtraces for now, they happen when qemu creates a new thread or does something with TLS memory management:
#1 0x00007f869c80b860 in () at /usr/lib/libjemalloc.so.2
#2 0x00007f869c80b9d4 in () at /usr/lib/libjemalloc.so.2
#3 0x00007f869c80c9a1 in () at /usr/lib/libjemalloc.so.2
#4 0x00007f869c7be29a in calloc () at /usr/lib/libjemalloc.so.2
#5 0x00007f86a2a16852 in allocate_dtv () at /lib64/ld-linux-x86-64.so.2
#6 0x00007f86a2a171ce in _dl_allocate_tls () at /lib64/ld-linux-x86-64.so.2
#7 0x00007f869bc66dca in pthread_create@@GLIBC_2.2.5 () at /usr/lib/libpthread.so.0
#8 0x0000559e3e77e475 in qemu_thread_create ()
#9 0x0000559e3e7792a7 in ()
#10 0x0000559e3e779308 in ()
#11 0x00007f869bc66297 in start_thread () at /usr/lib/libpthread.so.0
#12 0x00007f869b9a725f in clone () at /usr/lib/libc.so.6
#1 0x00007f7dfd2955cd in () at /usr/lib/libjemalloc.so.2
#2 0x00007f7dfd2977d8 in () at /usr/lib/libjemalloc.so.2
#3 0x00007f7dfc6f03c8 in __nptl_deallocate_tsd.part.4 () at /usr/lib/libpthread.so.0
#4 0x00007f7dfc6f135d in start_thread () at /usr/lib/libpthread.so.0
#5 0x00007f7dfc43225f in clone () at /usr/lib/libc.so.6
I don't have symbols for jemalloc itself, will rebuild jemalloc without stripping and provide new backtraces today if that helps.
FWIW, we have an arch bug open for this: https://bugs.archlinux.org/task/54483
Does that ring a bell to anyone? I could find recent issues about pthread but they all look slightly different.
Thanks!
I'm getting crashes (segfault) with qemu since upgrading jemalloc.
qemu has not been recompiled/relinked, so I'm thinking there is some subtle linking confusion between qemu, jemalloc and pthread -
rebuilding qemu solves the issue locally(EDIT: I have no idea if it does, didn't use jemalloc on rebuild; will check today as well) but there are other applications that seem to crash similarily (like mariadb, probably any multithread program using jemalloc) and it's always better to understand what's happening :)I've got two backtraces for now, they happen when qemu creates a new thread or does something with TLS memory management:
I don't have symbols for jemalloc itself, will rebuild jemalloc without stripping and provide new backtraces today if that helps.
FWIW, we have an arch bug open for this: https://bugs.archlinux.org/task/54483
Does that ring a bell to anyone? I could find recent issues about pthread but they all look slightly different.
Thanks!