This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "Cannot find new threads" on Fedora 9, but not on CentOS 5 (?)
- From: "Paul Pluzhnikov" <ppluzhnikov at google dot com>
- To: "Andrew Lofthouse" <loftyhauser at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 27 Oct 2008 17:41:56 -0700
- Subject: Re: "Cannot find new threads" on Fedora 9, but not on CentOS 5 (?)
- References: <49065BBD.3050800@gmail.com>
On Mon, Oct 27, 2008 at 5:24 PM, Andrew Lofthouse <loftyhauser@gmail.com> wrote:
> I'm trying to debug an application that throws a SEGFAULT in a shared
> library. On Fedora 9 (and on Ubuntu 8.04), I get the following error:
>
> [Thread debugging using libthread_db enabled]
> Error while reading shared library symbols:
> Cannot find new threads: generic error
> Cannot find new threads: generic error
Please see:
http://sourceware.org/ml/gdb/2008-08/msg00208.html
for possible reasons.
> However, when using CentOS 5, the debugging session seems to work fine and
> gives the following output:
>
> [Detaching after fork from child process 1973]
> [Detaching after fork from child process 1992]
> [Detaching after fork from child process 2004]
>
> Program received signal SIGSEGV, Segmentation fault.
>
> etc, etc--basically gdb works and tells me where the segmentation fault is.
>
> So, I know that Fedora 9/Ubuntu 8.04 use gdb version 6.8, while CentOS 5
> uses version 6.5. Why can an earlier version of gdb work fine, while the
> later version doesn't work? What can I do so that the later version works?
This is most likely result of "pilot error" (stripping
libpthread.so.0, or incomplete installation of glibc), and has
nothing to do with actual version of GDB.
Cheers,
--
Paul Pluzhnikov