Multithreaded app freezes strace
Submitted by vitki on Oct 28 2009 - 4:33am
in
Running "strace -f -o trace.log some_multithreaded_app" (BTW -f is importantas otherwise strace wouldn't print at least pids) on Fedora Core 2where the application links with the NPTL implementation by defaultcan very probably freeze sooner or later at a point like:
futex(0x583844, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call)
I found this can be helped by disabling NPTL via running strace as(don't ask me why 2.4.19 ;) )
export LD_ASSUME_KERNEL=2.4.19 strace -f -o trace.log some_multithreaded_app

Comments
Post new comment