Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Robert Schweikert <Robert.Schweikert@hks.com>
To: gdb@sources.redhat.com
Cc: rjschwei@hks.com
Subject: Shared library problems
Date: Thu, 19 Sep 2002 05:35:00 -0000	[thread overview]
Message-ID: <3D89C47E.91945A67@hks.com> (raw)

I am trying to debug code that has lost of shared libraries and I cannot
make gdb and/or the code find the libraries.

When I run the code and then attach gdb I get stuff like this

(gdb) attach 22736
Attaching to process 22736
0x4644747e in ?? ()

When I try to run the code from within gdb I get stull like this

Starting program: fullPath/myExecutable
fullPath/myExecutable: error while loading shared libraries:
libPyX11.so: cannot open shared object file: No such file or directory

But this is a lie.

(gdb) show env LD_LIBRARY_PATH
LD_LIBRARY_PATH =
/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/exec/lbr:/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr:

/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/External:/usr/6-0/object/linux32/exec/lbr:/usr/6-0/object/linux32/Python/Obj/lbr:

/usr/6-0/object/linux32/External:/usr/5-adb/object/linux32/exec/lbr:/usr/5-adb/object/linux32/External

And then

ls
/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr/libPyX11.so

/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr/libPyX11.so

So the library is in a directory that's on the LD_LIBRARY_PATH, the same
path is on PYTHONPATH and the environment is set the same when I attach
to the process.

Any help in getting this to work is greatly appreciated.

Robert



--
Robert Schweikert                   MAY THE SOURCE BE WITH YOU
(Robert.Schweikert@hks.com)                   LINUX




             reply	other threads:[~2002-09-19 12:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-19  5:35 Robert Schweikert [this message]
2002-09-19 10:46 ` Kevin Buettner
2002-09-23 18:02 Robert Schweikert
2002-09-23 18:29 ` Daniel Jacobowitz
2002-09-24  8:21   ` Robert Schweikert
2002-09-24  8:25     ` Daniel Jacobowitz
2002-09-24  8:27       ` Robert Schweikert
2002-09-24  8:30         ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D89C47E.91945A67@hks.com \
    --to=robert.schweikert@hks.com \
    --cc=gdb@sources.redhat.com \
    --cc=rjschwei@hks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox