[Top][All Lists]

[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)


Attila Lendvai <> 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:
    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 
(gdb) r
Starting program: /gnu/store/dyw73lrvdnffwsp5idrcznyn0k0fzywz-profile/bin/guile 
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]