Debugging deadlocks using SV semaphores via PROC FS
Steffen Rumler
Steffen.Rumler at siemens.com
Tue Apr 27 17:38:38 EST 2004
Hi,
I have extended the PROC FS entry in ipc/sem.c for the 2.4.20 DEVEL
in order to debug deadlock problems; see attachment.
For each semaphore array, now also all array elements: (last-pid, sem.-value)
will be traced.
In this way, I can easy answer the question:
"Which process is holding a distinct semaphore in a permanent way ?"
An subsequent strace of the found process provides additional information.
Steffen
--
--------------------------------------------------------------
Steffen Rumler
ICN CP D NT SW 3
Siemens AG
Hofmannstr. 51 Email: Steffen.Rumler at siemens.com
D-81359 Munich Phone: +49 89 722-44061
Germany Fax : +49 89 722-36703
--------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sem.c
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20040427/cc1dc26e/attachment.txt
More information about the Linuxppc-embedded
mailing list