From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8793 invoked by alias); 24 Sep 2002 15:27:56 -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 8779 invoked from network); 24 Sep 2002 15:27:55 -0000 Received: from unknown (HELO mail.hks.com) (63.125.197.5) by sources.redhat.com with SMTP; 24 Sep 2002 15:27:55 -0000 Received: from gimli.hks.com (fw.hks.com [63.125.196.1]) by mail.hks.com (Postfix) with ESMTP id AD55077C4C; Tue, 24 Sep 2002 10:30:06 -0400 (EDT) Received: from cheetah.hks.com (cheetah.hks.com [172.16.2.9]) by gimli.hks.com (Postfix) with ESMTP id 4934324AF46; Tue, 24 Sep 2002 11:27:55 -0400 (EDT) Received: from hks.com (localhost [127.0.0.1]) by cheetah.hks.com (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id g8OFRxM28221; Tue, 24 Sep 2002 11:27:59 -0400 Message-ID: <3D90847F.3864E508@hks.com> Date: Tue, 24 Sep 2002 08:27:00 -0000 From: Robert Schweikert Organization: Hibbit, Karlsson & Sorensen X-Accept-Language: en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: kevinb@redhat.com, gdb@sources.redhat.com Subject: Re: Shared library problems References: <20020924012930.GC11065@nevyn.them.org> <3D9082E8.85576ADB@hks.com> <20020924152530.GB31612@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00375.txt.bz2 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? Thanks, Robert > > > > > > 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