From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10030 invoked by alias); 24 Sep 2002 15:30:41 -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 10023 invoked from network); 24 Sep 2002 15:30:40 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 24 Sep 2002 15:30:40 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17tsa2-0002uP-00; Tue, 24 Sep 2002 11:30:34 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17treC-0003im-00; Tue, 24 Sep 2002 11:30:48 -0400 Date: Tue, 24 Sep 2002 08:30:00 -0000 From: Daniel Jacobowitz To: Robert Schweikert Cc: kevinb@redhat.com, gdb@sources.redhat.com Subject: Re: Shared library problems Message-ID: <20020924153048.GA13807@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> <20020924152530.GB31612@nevyn.them.org> <3D90847F.3864E508@hks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D90847F.3864E508@hks.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-09/txt/msg00376.txt.bz2 On Tue, Sep 24, 2002 at 11:27:59AM -0400, Robert Schweikert wrote: > Daniel Jacobowitz wrote: > > > 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? > > Yes, they certainly do. > > > > > > > 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... > > Is there a work around? I can't really think of one. Maybe include the necessary LD_LIBRARY_PATH in your shell startup files - or better yet, don't change LD_LIBRARY_PATH in said files if it is already set. These may or may not be feasible in your environment. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer