This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Child process terminating to early


On Fri, Oct 2, 2009 at 9:11 AM, Daniel Jacobowitz <drow@false.org> wrote:
> On Thu, Oct 01, 2009 at 04:53:21PM -0500, Patrick_Boyd@Dell.com wrote:
>> (gdb) run
>> Starting program: /mnt/NFS/debug/bin/strace
>> cmdstat
>>             status          : 2
>>             status_tag    : COMMAND PROCESSING FAILED
>>             error            : 253
>>             error_tag      : COMMAND NOT RECOGNIZED
>>
>> Program exited normally.
>> You can't do that without a process to debug.
>
> Often, this means that your shell (/bin/sh or $SHELL) or kernel is broken.

I've often seen this happen often when $SHELL == bash and ~/.bashrc contains
inappropriate setting for LD_LIBRARY_PATH or some such.

Another variant is when .gdbinit has inappropriate 'set env LD_LIBRARY_PATH ...'

> Try looking at 'set debug infrun 1' and 'set debug lin-lwp 1' for more
> information about what events GDB sees.

And before that, try simple

(gdb) shell /mnt/NFS/debug/bin/strace

Cheers,
-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]