From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7717 invoked by alias); 24 Sep 2002 15:25:26 -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 7709 invoked from network); 24 Sep 2002 15:25:25 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 24 Sep 2002 15:25:25 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17tsUu-0002ts-00; Tue, 24 Sep 2002 11:25:16 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17trZ4-0000z8-00; Tue, 24 Sep 2002 11:25:30 -0400 Date: Tue, 24 Sep 2002 08:25:00 -0000 From: Daniel Jacobowitz To: Robert Schweikert Cc: kevinb@redhat.com, gdb@sources.redhat.com Subject: Re: Shared library problems Message-ID: <20020924152530.GB31612@nevyn.them.org> Mail-Followup-To: Robert Schweikert , kevinb@redhat.com, gdb@sources.redhat.com References: <20020924012930.GC11065@nevyn.them.org> <3D9082E8.85576ADB@hks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D9082E8.85576ADB@hks.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-09/txt/msg00374.txt.bz2 On Tue, Sep 24, 2002 at 11:21:13AM -0400, Robert Schweikert wrote: > Daniel Jacobowitz wrote: > > > On Mon, Sep 23, 2002 at 09:01:59PM -0400, Robert Schweikert wrote: > > > Kevin, > > > > > > > Which version of gdb are you using? Which host and target? > > > > > > Acording to the package id I am using 5.0-148. gdb produces the following > > > output. > > > > > > -> gdb -v > > > GNU gdb 20010316 > > > > > > This is on Linux running on Intel IA32. > > > > Try a more recent version: > > http://sources.redhat.com/gdb > > > > That one's pretty old. And we have no idea what your distributor did > > with the 148 revisions of it... > > Daniel, > > I downloaded the latest source and built the 5.2.1 version but I end up with > the same symptom. > > i.e. start gdb within the proper environment and try to run the app from there > I end up with the problem that the app cannot find the shared libraries. > Displaying LD_LIBRARY_PATH in gdb (show env LD_LIBRARY_PATH) shows that the > path to the library that cannot be found is on the LD_LIBRARY_PATH. I assume I know what's going on, then. Do your shell startup files include a different setting of LD_LIBRARY_PATH? Right now GDB spawns a copy of your shell to start the debugged application. We've been getting a lot of bad noises about this behavior lately, so it may be reaching the end of its life span... > > However, when I start the app and then attach I can actually see the function > names and where in the code I am. This is certainly an improvement over the > earlier version. > > Robert > > -- > Robert Schweikert MAY THE SOURCE BE WITH YOU > (Robert.Schweikert@hks.com) LINUX > > > > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer