Error while starting a program in GDB

From: Madhav (madhav.kelkar_at_gmail.com)
Date: 09/14/05

  • Next message: kevin: "[HELP] About tcp_poll(...) for Linux TCP"
    Date: 14 Sep 2005 02:46:16 -0700
    
    

    Hi All,
              I am using GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
    for debugging my program. The problem I am facing while debugging is
    that when I start the program outside the debugger, it starts
    correctly. But when I start it using GDB, the GDB says something like
          "error while loading shared library <lib> : no such file or
    directory" and stops. I have verified that LD_LIBRARY_PATH was correct
    in both the places. Can any body help me to solve this? Is there any
    additional setting that I need to do while running that program in GDB?

    Thanks and regards,
    Madhav.


  • Next message: kevin: "[HELP] About tcp_poll(...) for Linux TCP"

    Relevant Pages

    • Re: Great SWT Program
      ... More a shell than an operating system, ... Gdb is for the birds. ... Well, debugging one's own code is what gdb is for, isn't it? ... Being able to make a breakpoint that would trip the first time any ...
      (comp.lang.java.programmer)
    • Re: Recommended virtualization technique for debugging/developing FreeBSD
      ... :>> I was wondering what people use, in the abscense of suitable actual hardware, ... everything was seld compiled but with an external compiler. ... Most initial debugging was done with a super-low-level serial console, ... gdb wasn't available either. ...
      (freebsd-current)
    • Re: mmap failing with EINVAL inside valgrind
      ... The other day I was debugging some other application, ... POST++, and it was always crashing when I run it under gdb, luckily by ... 250 MB of memory leaked per day;). ... I presume valgrind does something similar to gdb, ...
      (comp.unix.programmer)
    • compiling perl/tk with debugging?; help debugging a segfault in Tk_HandleEvent
      ... perl/tk 800.025. ... I have a core file from one such crash, ... my weak C and debugging skills, I'm having a hard time figuring out ...
      (comp.lang.perl.tk)
    • Re: What tools are in your Tcl debugging toolbox?
      ... what additional tools do you find useful when debugging Tcl code? ... Particularly if you are using Tk or some other binary extension? ... Debugging my binary extension: gdb... ... putting the old opcode back and... ...
      (comp.lang.tcl)