From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12236 invoked by alias); 30 Aug 2008 00:15:46 -0000 Received: (qmail 12061 invoked by uid 22791); 30 Aug 2008 00:15:45 -0000 X-Spam-Check-By: sourceware.org Received: from smtp7-g19.free.fr (HELO smtp7-g19.free.fr) (212.27.42.64) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 30 Aug 2008 00:14:52 +0000 Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id C1607B0137 for ; Sat, 30 Aug 2008 02:14:49 +0200 (CEST) Received: from debian.localnet (den59-1-88-169-45-62.fbx.proxad.net [88.169.45.62]) by smtp7-g19.free.fr (Postfix) with ESMTP id 26025B010F for ; Sat, 30 Aug 2008 02:14:49 +0200 (CEST) From: Laurent Carlier To: gdb@sourceware.org Subject: Re: Cannot find new threads: generic error Date: Sun, 31 Aug 2008 02:30:00 -0000 User-Agent: KMail/1.10.0 (Linux/2.6.26-1-amd64; KDE/4.1.0; x86_64; ; ) References: <200808281553.37056.lordheavym@gmail.com> In-Reply-To: <200808281553.37056.lordheavym@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200808300213.57239.lordheavym@gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00293.txt.bz2 Le Thursday 28 August 2008 15:53:36 Laurent Carlier, vous avez =C3=A9crit : > Sorry if i break the thread, i find these mails wihile seraching about th= is > problem. > > I got the same problem when running gdb with a program using dlopen() too > and under debian sid (the same problem occur under the last ubuntu releas= e) > > I've filled a bug report on debian bug tracking system: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D496494 > > So the output from gdb is: > lordh@debian:~/gb2projets/TunnelSDL$ gdb gbx3 > GNU gdb 6.8-debian > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to > change and redistribute it. There is NO WARRANTY, to the extent permitted > by law. Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu"... > (gdb) run -p > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > Error while reading shared library symbols: > Cannot find new threads: generic error > Cannot find new threads: generic error > (gdb) bt > #0 0x00007ff0873787b7 in dl_open_worker () from > /lib64/ld-linux-x86-64.so.2 #1 0x00007ff087374366 in _dl_catch_error () > from /lib64/ld-linux-x86-64.so.2 #2 0x00007ff0873780eb in _dl_open () fr= om > /lib64/ld-linux-x86-64.so.2 #3 0x00007ff086ee0fbb in dlopen_doit () from > /lib/libdl.so.2 > #4 0x00007ff087374366 in _dl_catch_error () from > /lib64/ld-linux-x86-64.so.2 #5 0x00007ff086ee136c in _dlerror_run () from > /lib/libdl.so.2 > #6 0x00007ff086ee0f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 > #7 0x0000000000420685 in LIBRARY_load (lib=3D0x15dd400) at gbx_library.c= :468 > #8 0x0000000000441f4b in COMPONENT_load (comp=3D0x15dd3a0) at > gbx_component.c:250 > #9 0x0000000000441b22 in COMPONENT_load_all () at gbx_component.c:110 > #10 0x000000000041fd5f in PROJECT_load () at gbx_project.c:456 > #11 0x0000000000432d2e in init (file=3D0x446378 ".") at gbx.c:85 > #12 0x00000000004332ef in main (argc=3D1, argv=3D0x7fff8f582968) at gbx.c= :299 > (gdb) > > >> [Thread debugging using libthread_db enabled] > >> Error while reading shared library symbols: > >> Cannot find new threads: generic error > >> > >> I'm using kernel 2.6.24 on a recent debian/unstable libc6. > >> > >> Where does that error come from? > > > >This is most often the result of either > >A. mismatch between libc.so.6 and libthread_db.so.1, or > >B. libpthread.so.0 being stripped. > > > >What does 'nm /lib/libpthread.so.0 | grep _version' say? > > The output is: > lordh@debian:~$ nm /lib/libpthread.so.0 | grep _version > 0000000000010420 r nptl_version > > Regards, I've find a workaround, i've link the debugging app with libpthread and now= gdb=20 feels happy, and i can run it with gdb ! Does anybody got an idea how to fix definitivly this problem ? Thank for your advices. Regards, Laurent Carlier