[Bug 286537] segfault in libthr __Tthr_mutex_trylock <--- jmalloc.c when run qdrant
Date: Sat, 03 May 2025 18:12:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286537
--- Comment #11 from igor.polovykh@gmail.com ---
I've applied patches on source tree `releng/14.2`
Built and install `/usr/src/libexec/rtld-elf` & `/usr/src/lib/libthr`
But got the same segfault. (
(lldb) thread backtrace all
* thread #1, name = 'qdrant', stop reason = signal SIGSEGV
* frame #0: 0x00000729910fb1a0
libthr.so.3`__Tthr_mutex_trylock(mutex=<unavailable>) at thr_mutex.c:628:3
frame #1: 0x00000721690c9289
qdrant`malloc_mutex_trylock_final(mutex=0x000007216eb47db0) at mutex.h:157:9
frame #2: 0x00000721690c7792
qdrant`malloc_mutex_lock(tsdn=0x0000205cf2283720, mutex=0x000007216eb47db0) at
mutex.h:216:7
frame #3: 0x00000721690c768c
qdrant`_rjem_je_background_thread_create(tsd=0x0000205cf2283720, arena_ind=0)
at background_thread.c:519:2
frame #4: 0x00000721690b6f1b qdrant`malloc_init_hard at jemalloc.c:2176:7
frame #5: 0x0000072169076120 qdrant`calloc [inlined] malloc_init at
jemalloc.c:298:41
frame #6: 0x0000072169076102 qdrant`calloc [inlined]
imalloc_init_check(sopts=0x000007298f52b7c8, dopts=0x000007298f52b790) at
jemalloc.c:2658:41
frame #7: 0x00000721690760e9 qdrant`calloc [inlined]
imalloc(sopts=0x000007298f52b7c8, dopts=0x000007298f52b790) at
jemalloc.c:2689:32
frame #8: 0x0000072169072cba qdrant`calloc(num=1, size=1664) at
jemalloc.c:2852:2
frame #9: 0x00000729910f93fe
libthr.so.3`_thr_alloc(curthread=0x0000000000000000) at thr_list.c:154:12
frame #10: 0x00000729910f842f
libthr.so.3`_libpthread_init(curthread=0x0000000000000000) at thr_init.c:336:15
frame #11: 0x00000729910fab85 libthr.so.3`__Tthr_mutex_lock [inlined]
_thr_check_init at thr_private.h:927:3
frame #12: 0x00000729910fab74
libthr.so.3`__Tthr_mutex_lock(mutex=0x00000729939e2fc0) at thr_mutex.c:749:2
frame #13: 0x00000729939750a4 libc++.so.1`std::__1::__call_once(unsigned
long volatile&, void*, void (*)(void*)) [inlined]
std::__1::__libcpp_mutex_lock[abi:se180100](__m=<unavailable>) at
__threading_support:280:57
frame #14: 0x0000072993975098
libc++.so.1`std::__1::__call_once(flag=0x00000729939e3a70, arg=<unavailable>,
func=<unavailable>) at call_once.cpp:44:3
frame #15: 0x00000729939ad5d9
libc++.so.1`std::__1::locale::__imp::__imp(unsigned long) [inlined] void
std::__1::call_once[abi:se180100]<std::__1::locale::id::__get()::$_0>(__flag=0x00000729939e3a70,
__func=0x000007298f52e080) at once_flag.h:131:5
frame #16: 0x00000729939ad5a8
libc++.so.1`std::__1::locale::__imp::__imp(unsigned long) [inlined]
std::__1::locale::id::__get(this=0x00000729939e3a70) at locale.cpp:598:3
frame #17: 0x00000729939ad59d
libc++.so.1`std::__1::locale::__imp::__imp(unsigned long) [inlined] void
std::__1::locale::__imp::install<std::__1::collate<char>>(this=0x00000729939e3bb0,
f=<unavailable>) at locale.cpp:155:22
frame #18: 0x00000729939ad59d
libc++.so.1`std::__1::locale::__imp::__imp(this=0x00000729939e3bb0, refs=1) at
locale.cpp:163:3
frame #19: 0x00000729939af023 libc++.so.1`std::__1::locale::classic()
[inlined] std::__1::locale::__imp&
std::__1::__no_destroy<std::__1::locale::__imp>::__emplace[abi:se180100]<unsigned
int>(this=0x00000729939e3bb0, __args=<unavailable>) at no_destroy.h:47:19
frame #20: 0x00000729939af00f libc++.so.1`std::__1::locale::classic()
[inlined] std::__1::locale::classic()::$_0::operator()(this=<unavailable>)
const at locale.cpp:504:40
frame #21: 0x00000729939af00f libc++.so.1`std::__1::locale::classic() at
locale.cpp:502:69
frame #22: 0x00000729939b17ab libc++.so.1`std::__1::locale::locale()
[inlined] std::__1::locale::__global() at locale.cpp:511:33
frame #23: 0x00000729939b1796
libc++.so.1`std::__1::locale::locale(this=0x00000729939e3518) at
locale.cpp:525:39
frame #24: 0x00000729939860f0 libc++.so.1`std::__1::basic_streambuf<char,
std::__1::char_traits<char>>::basic_streambuf(this=0x00000729939e3510) at
streambuf:293:35
frame #25: 0x0000072993993a48 libc++.so.1`std::__1::DoIOSInit::DoIOSInit()
[inlined] std::__1::__stdinbuf<char>::__stdinbuf(this=0x00000729939e3510,
__fp=0x00000729944544e0, __st=<unavailable>) at std_stream.h:72:21
frame #26: 0x0000072993993a39
libc++.so.1`std::__1::DoIOSInit::DoIOSInit(this=<unavailable>) at
iostream.cpp:139:57
frame #27: 0x000007299399409d
libc++.so.1`std::__1::ios_base::Init::Init(this=<unavailable>) at
iostream.cpp:174:20
frame #28: 0x0000072993994ef5 libc++.so.1`_GLOBAL__I_000100 [inlined]
__cxx_global_var_init at iostream_init.h:2:31
frame #29: 0x0000072993994ee4 libc++.so.1`_GLOBAL__I_000100 at
iostream.cpp:0
frame #30: 0x000030b91a85120d
ld-elf.so.1`objlist_call_init(list=0x000007298f52f150,
lockstate=0x000007298f52ef50) at rtld.c:3125:7
frame #31: 0x000030b91a84fe29 ld-elf.so.1`_rtld(sp=<unavailable>,
exit_proc=0x000007298f52f1d0, objp=0x000007298f52f1d8) at rtld.c:965:5
frame #32: 0x000030b91a84cea9 ld-elf.so.1`.rtld_start at rtld_start.S:40
--
You are receiving this mail because:
You are the assignee for the bug.