Re: ptrace question



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.
.