tracing pthreads program on 2.2 kernels...

Ganesan R rganesan at myrealbox.com
Wed Apr 4 02:03:44 UTC 2001


On Tue, Apr 03, 2001 at 12:31:41PM -0400, Marty Leisner wrote:
> Anyway, I want to use strace to understand some pthreads programs...

Tracing pthreads programs with Linux kernel 2.2 is shaky at best. I've tried
to work around some of the problems (lack of __WALL) with my recent patch,
however you need to compile with 2.4 headers for the patch to take effect.
I strongly advise you to switch to the 2.4 kernels.

> [pid  3593] write(4, "\16\233\3@\5\0\0\0\346\201\0@\325\232\3@\325\232\3 at h8\1"..., 148) = 148
> [pid  3593] rt_sigprocmask(SIG_SETMASK, NULL, [32], 8) = 0
> [pid  3593] write(4, "@I\2@\0\0\0\0\0\0\0\0000\205\4\10\0\0\0\0\0\0\0\200\0\0"..., 148) = 148
> [pid  3593] rt_sigprocmask(SIG_SETMASK, NULL, [32], 8) = 0
> [pid  3593] rt_sigsuspend([] <unfinished ...>
>  and hangs...

Compile strace with 2.4 kernel headers and this problem will go away.

Ganesan

-- 
Ganesan R <rganesan at myrealbox.com>   | Ph: 91-422-549 860 (Home)
Novell India, Bangalore              | #include <std_disclaimer.h>




More information about the Strace-devel mailing list