Re: ptrace question
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Mon, 26 Dec 2005 09:08:33 -0800
globtroter@xxxxxxxxx writes:
> So my debugger faults after first wait() call
> (ptrace(PTRACE_PEEKUSER, child_pid, 4*ORIG_EAX) returns -1). How can i
> check what happend (memory limit, smth. else) ?
You can't.
Well, you could ptrace() all system calls, observe that some mmap()
or brk() failed with ENOMEM, and deduce what happened from there.
You could also set a breakpoint on the executables' entry point.
If that point was not reached, clearly your inferior had some
"setup" problems.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- References:
- ptrace question
- From: globtroter
- ptrace question
- Prev by Date: Re: Static AND Dynamic linking at the same time
- Next by Date: Re: dynamic ELF -> static executable?
- Previous by thread: ptrace question
- Next by thread: Re: Why does Firefox use 47 MB of RAM?
- Index(es):