[Bug 286537] segfault in libthr __Tthr_mutex_trylock <--- jmalloc.c when run qdrant

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 May 2025 07:05:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286537

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib@FreeBSD.org

--- Comment #4 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to igor.polovykh from comment #3)
As you see, libthr is listed in the NEEDED libs first.  Since initalizers are
run in the reverse order (if libA is after libB, libA should be ready for libB
initialization), libc++ init is executed when libthr is not yet prepared.

As a workaround, you could try to run your binary with
LD_PRELOAD=/lib/libthr.so.3,
as the proper fix, change the order of the libraries on the linker command
line.

-- 
You are receiving this mail because:
You are the assignee for the bug.