]> git.kaiwu.me - haproxy.git/commit
MINOR: debug: opportunistically load libthread_db.so.1 with set-dumpable=libs
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2026 10:17:22 +0000 (11:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2026 14:30:39 +0000 (15:30 +0100)
commitb93137ce678ec36be6f6e538218d0d45d77294f6
treeaabf70b7580c3a95a0f77b413cc23a45f87c1f40
parente07c9ee575f3f666564f5d57d148a47d3bfb6372
MINOR: debug: opportunistically load libthread_db.so.1 with set-dumpable=libs

When loading libs into the core dump, let's also try to load
libthread_db.so.1 that gdb usually requires. It can significantly help
decoding the threads for systems which require it, and the file is quite
small. It can appear at a few different locations and is generally next
to libpthread.so, or alternately libc, so we first look where we found
them, and fall back to a few other common places. The file is really
small, a few tens of kB usually.
src/tools.c