[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSLock bug?
From: |
Larry Campbell |
Subject: |
NSLock bug? |
Date: |
Thu, 18 Jan 2001 10:34:17 -0500 |
This seems to be a bug, just wanted to know if maybe it's already fixed in a
later distribution of either GNUstep or gcc.
This trivial program:
#import <Foundation/Foundation.h>
main()
{
NSLock *theLock;
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
theLock = [[NSLock alloc] init];
[theLock lock];
[theLock unlock]; // crashes here
[theLock release];
[pool release];
}
Crashes when releasing the lock with:
Uncaught exception NSLockException, reason: invalid mutex
This is on Redhat Linux 2.2.12. I'm using gcc version egcs-2.91.66 and GNUstep
core libraries version 0.6.6.
I'm perfectly willing to believe I just need a new gcc or Linux but it would be
nice to know exactly what I need before flailing around upgrading everything in
sight.
Thanks!
- Larry
- NSLock bug?,
Larry Campbell <=