2.2.4 breaks strace -f

Keith Owens (kaos@ocs.com.au)
Wed, 24 Mar 1999 10:12:32 -0800


strace-3.1-3. The -f option does not work for a normal user under
2.2.4. It gets

PTRACE_ATTACH: Operation not permitted
Too late?

It works for root under 2.2.4, it works without -f for a normal user
under 2.2.4, it works for everybody with or without -f on 2.2.3. For a
normal user doing -f on 2.2.4 it hangs shortly after fork and there is
no sign of the child in the trace.

1117 execve("/usr/local/bin/sgmltools", ["sgmltools", "-b", "oedg", "oedg.sgm"], [/* 35 vars */]) = 0
......
1117 pipe([5, 6]) = 0
1117 fork() = 1118
1117 close(6) = 0
1117 fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
1117 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000c000
1117 read(5, 0x4000c000, 4096) = ? ERESTARTSYS (To be restarted)
1117 --- SIGCHLD (Child exited) ---

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/