You should attach to the process as root, or replace the binary with a
script along the lines of:
# mv binary binary.real
# echo '#!/bin/sh' > binary
# echo 'exec strace -ff -s 256 -o /tmp/binary.trace binary.real "$*"' >> binary
That should give you a file in /tmp called binary.trace, and a
seperate file for each child it spawns.
-Peter
On Mon, Oct 28, 2002 at 12:40:00AM +0000, Michael Carmack wrote:
> On Sun, Oct 27, 2002 at 09:33:34AM -0500, Sam Varshavchik wrote:
> > Michael Carmack writes:
> >
> > >It happened sooner than I expected. The strace (minus the library
> > >bits) is fairly short, so I pasted it below:
> >
> > The error occurs in the forked child process. The parent's trace is
> > meaningless.
> >
> > Use strace -f next time.
>
>
> Can't seem to get at the forked process as a regular user:
>
>
> personality(0 /* PER_??? */) = 0
> getpid() = 15891
> setgid(10001) = -1 EPERM (Operation not permitted)
> getuid() = 1
> setuid(1) = 0
> rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
> getuid() = 1
> brk(0) = 0x80506d0
> brk(0x80506f8) = 0x80506f8
> brk(0x8051000) = 0x8051000
> pipe([3, 4]) = 0
> pipe([5, 6]) = 0
> fork(PTRACE_ATTACH: Operation not permitted
> Too late?
> ) = 15892
> sendmail: ERR: Permission denied
> close(3) = 0
> close(6) = 0
> fcntl(4, F_SETFD, FD_CLOEXEC) = 0
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ApacheCon, November 18-21 in
> Las Vegas (supported by COMDEX), the only Apache event to be
> fully supported by the ASF. http://www.apachecon.com
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users