Re: truss is buggy?

2008-12-23 Thread Laszlo Nagy
It looks like the ptrace() syscall is the problem: DESCRIPTION The ptrace() system call provides tracing and debugging facilities. It allows one process (the tracing process) to control another (the traced process). The tracing process must first attach to the traced

truss is buggy?

2008-12-22 Thread Laszlo Nagy
Apparently, the truss trace tool has a bug. At least I was told that the tracer program should not change the return value of the getppid() call inside the traced process. Here is an example program: %cat test.c #include stdio.h int main() { while(1) { sleep(5); printf(ppid =

Re: truss is buggy?

2008-12-22 Thread Dan Nelson
In the last episode (Dec 22), Laszlo Nagy said: Apparently, the truss trace tool has a bug. At least I was told that the tracer program should not change the return value of the getppid() call inside the traced process. Here is an example program: It looks like the ptrace() syscall is the