gnome Sdk's libthread_db.so version doesn't match its libpthread.so version
When within the org.gnome.Sdk runtime and trying to run gdb on a multithreaded program, gdb throws a warning of
Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
However, running ldd
on the program being debugged shows that all dynamically linked libraries are indeed coming from the current sandbox, including these important ones:
libpthread.so.0 => /usr/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2713d2d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f271515b000)
(where /lib64/ld-linux-x86-64.so.2
is a symlink to /lib/x86_64-linux-gnu/ld-2.28.so
.)
This warning persists even when explicitly telling gdb to use the sandbox's libthread_db library, by issuing a command of set libthread-db-search-path
/usr/lib/x86_64-linux-gnu/`.
It's possible that I'm misunderstanding how linking works, but as far as I can tell, all of the library paths are correct & are being used, so the only explanation that I can see is that the runtime uses an incorrect version of libthread_db.
Also, if this is the wrong place to post Flatpak runtime bugs, please let me know & I'll report this in the proper place.