From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14940 invoked by alias); 11 Nov 2003 16:39:33 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14928 invoked from network); 11 Nov 2003 16:39:32 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 11 Nov 2003 16:39:32 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AJbYB-0003Ks-FP; Tue, 11 Nov 2003 11:39:31 -0500 Date: Tue, 11 Nov 2003 16:39:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: jdavin@cmu.edu, gdb@sources.redhat.com Subject: Re: gdb not working with older glibc Message-ID: <20031111163931.GA12790@nevyn.them.org> Mail-Followup-To: Andrew Cagney , jdavin@cmu.edu, gdb@sources.redhat.com References: <3FAFFC98.1040706@redhat.com> <3FB10EFC.6050001@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FB10EFC.6050001@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00092.txt.bz2 On Tue, Nov 11, 2003 at 11:31:56AM -0500, Andrew Cagney wrote: > >Well that pretty much was the exact output. > >Here's the version info too: > > > >GNU gdb 6.0 > >Copyright 2003 Free Software Foundation, Inc. > >GDB is free software, covered by the GNU General Public License, and you > >are > >welcome to change it and/or distribute copies of it under certain > >conditions. > >Type "show copying" to see the conditions. > >There is absolutely no warranty for GDB. Type "show warranty" for > >details. > >This GDB was configured as "i686-pc-linux-gnu"... > > Sigh. More recent GDB's print out the libthread_db that was loaded > here. Guess that didn't get into 6.0. Nope. (I'm still trying to figure out a way to make the output message less ugly. I'm thinking about just sticking a \n in front of it?) > >(gdb) run > >Starting program: > >/path/(name-omitted) > > > >Program received signal SIG32, Real-time event 32. > >0x0811c7f6 in __sigsuspend (set=0xbffff380) at > >../sysdeps/unix/sysv/linux/sigsuspend.c:45 > >45 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or > >directory. > > in ../sysdeps/unix/sysv/linux/sigsuspend.c > >Current language: auto; currently c > > > >And for gdb 6.0 working, it's just the same thing without the error/crash. > > Anyway, this is the problem: > > >>The problem is most likely that GDB is loading the lated libthread_db > >>and that library is refusing to debug the older glibc. > >> > >>Perhaphs there should be a "set libthread_db ... command?" > > you need to force GDB into loading the correct libthread_db library. I > guess using something like LD_LIBRARY_PATH? Or perhaphs overriding > gdb/thread-db.c:#define LIBTHREAD_DB_SO? Er, he updated glibc on his system, didn't he? All of the applications should be using the same shared linuxthreads object and thus require the same libthread_db. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer