[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GDB is Unable to find libthread_db
From: |
Ludovic Courtès |
Subject: |
Re: GDB is Unable to find libthread_db |
Date: |
Mon, 05 Dec 2022 16:28:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi,
Attila Lendvai <attila@lendvai.name> skribis:
> $ gpaste-client --version
> (/home/alendvai/.guix-home/profile/bin/gpaste-client:6955): GPaste-CRITICAL
> **: 21:23:48.100: Error calling StartServiceByName for org.gnome.GPaste:
> Process org.gnome.GPaste received signal 11
FWIW I’m unable to reproduce this problem:
--8<---------------cut here---------------start------------->8---
$ guix describe
Generation 239 Dec 04 2022 23:46:31 (current)
guix b2a848d
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: b2a848d23d37f31496e1ff664f1dcf6abcdcc388
$ guix shell gpaste -- gpaste-client --version
GPaste 42.1
--8<---------------cut here---------------end--------------->8---
> (gdb) r
> Starting program:
> /home/alendvai/workspace/gpaste/builddir/src/client/gpaste-client --version
> warning: Unable to find libthread_db matching inferior's thread library,
> thread debugging will not be available.
I’m not sure under which circumstances this error happens.
It works for me though, as in:
--8<---------------cut here---------------start------------->8---
$ guix shell gdb guile guile:debug -- gdb --args guile
GNU gdb (GDB) 12.1
[...]
Type "apropos word" to search for commands related to "word"...
Reading symbols from guile...
Reading symbols from
/gnu/store/9snhi90f2nivxqrvqgjgixdch5zkps88-guile-3.0.8-debug/lib/debug//gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/bin/guile.debug...
(gdb) r
Starting program: /gnu/store/dyw73lrvdnffwsp5idrcznyn0k0fzywz-profile/bin/guile
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libthread_db.so.1".
[New Thread 0x7ffff75bf640 (LWP 20252)]
[New Thread 0x7ffff6dbe640 (LWP 20253)]
[New Thread 0x7ffff65bd640 (LWP 20254)]
[New Thread 0x7ffff5666640 (LWP 20255)]
[New Thread 0x7ffff422d640 (LWP 20256)]
GNU Guile 3.0.8
--8<---------------cut here---------------end--------------->8---
One situation where it doesn’t work is if the process being debugged is
in a namespace different from that of GDB, but that doesn’t seem to be
what you did, so I’m not sure.
Ludo’.