[Openmcl-devel] process-interrupt and locks leading to deadlocks

Florian Dietz Florian.Dietz2 at gmx.de
Tue Aug 6 11:55:32 PDT 2013


I have two threads, A and B. I am using process-interrupt to interrupt 
thread A. The interruption can only finish once thread B has also 
processed some information and waits on thread B via a semaphore. This 
can lead to a deadlock if A gets interrupted while holding a lock that 
is needed in B. I have tried to prevent this problem by encapsulating 
all locks with without-interrupts.

Unfortunately, some processes seem to use implicit locks that I am not 
aware of. Is there an easy way to find out which functions could be at 
fault without manually looking up the definition of every function I am 
using? Also, could error-handling have something to do with this error?



More information about the Openmcl-devel mailing list