[Bug 286537] segfault in libthr __Tthr_mutex_trylock <--- jmalloc.c when run qdrant
Date: Sat, 03 May 2025 09:20:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286537
--- Comment #7 from igor.polovykh@gmail.com ---
(In reply to Konstantin Belousov from comment #4)
first time tried to build with export RUSTFLAGS="-Clink-arg=-Wl,--no-as-needed
-Clink-arg=-lthr -Clink-arg=-lc++"
Then tried to build with build.rs
fn main() {
println!("cargo:rustc-link-arg=-Wl,--no-as-needed");
println!("cargo:rustc-link-arg=-lthr");
println!("cargo:rustc-link-arg=-lc++");
}
no difference in result.
(lldb) thread backtrace all
* thread #1, name = 'qdrant', stop reason = signal SIGSEGV
* frame #0: 0x0000229f8ee931a0
libthr.so.3`__Tthr_mutex_trylock(mutex=<unavailable>) at thr_mutex.c:628:3
frame #1: 0x0000229766909289
qdrant`malloc_mutex_trylock_final(mutex=0x000022976c387db0) at mutex.h:157:9
frame #2: 0x0000229766907792
qdrant`malloc_mutex_lock(tsdn=0x0000403760683720, mutex=0x000022976c387db0) at
mutex.h:216:7
frame #3: 0x000022976690768c
qdrant`_rjem_je_background_thread_create(tsd=0x0000403760683720, arena_ind=0)
at background_thread.c:519:2
frame #4: 0x00002297668f6f1b qdrant`malloc_init_hard at jemalloc.c:2176:7
frame #5: 0x00002297668b6120 qdrant`calloc [inlined] malloc_init at
jemalloc.c:298:41
frame #6: 0x00002297668b6102 qdrant`calloc [inlined]
imalloc_init_check(sopts=0x0000229f8c246108, dopts=0x0000229f8c2460d0) at
jemalloc.c:2658:41
frame #7: 0x00002297668b60e9 qdrant`calloc [inlined]
imalloc(sopts=0x0000229f8c246108, dopts=0x0000229f8c2460d0) at
jemalloc.c:2689:32
frame #8: 0x00002297668b2cba qdrant`calloc(num=1, size=1664) at
jemalloc.c:2852:2
frame #9: 0x0000229f8ee913fe
libthr.so.3`_thr_alloc(curthread=0x0000000000000000) at thr_list.c:154:12
frame #10: 0x0000229f8ee9042f
libthr.so.3`_libpthread_init(curthread=0x0000000000000000) at thr_init.c:336:15
frame #11: 0x00002a4f1c5941fd
ld-elf.so.1`objlist_call_init(list=0x0000229f8c2498b0,
lockstate=0x0000229f8c2496b0) at rtld.c:3125:7
frame #12: 0x00002a4f1c592e19 ld-elf.so.1`_rtld(sp=<unavailable>,
exit_proc=0x0000229f8c249930, objp=0x0000229f8c249938) at rtld.c:965:5
frame #13: 0x00002a4f1c58fea9 ld-elf.so.1`.rtld_start at rtld_start.S:40
--
You are receiving this mail because:
You are the assignee for the bug.