[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Found deadlock bug

From: Stephen Brandon
Subject: Found deadlock bug
Date: Wed, 20 Feb 2002 18:56:08 +0000


found the little scumbag of a bug, after spending all $%^&* day on it.

It's in NSUser.m:579 - the global lock was not being released except in the 
exception handler.

The patch:

diff -r1.56 NSUser.m
>   [gnustep_global_lock unlock];

The bug manifested itself by causing the main thread to always hog the first 
lock in the NSRecursiveLock. Thus any time any other thread tried to do an 
operation requiring gnustep_global_lock locking, it would deadlock.

Bah humbug.

Stephen Brandon

reply via email to

[Prev in Thread] Current Thread [Next in Thread]