bug-gnustep
[Top][All Lists]
Advanced

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

Fwd: NSLock bug?


From: Larry Campbell
Subject: Fwd: NSLock bug?
Date: Thu, 18 Jan 2001 10:51:15 -0500

oops, the comment "// crashes here" in the code below should have been on the next line -- the release.

- Larry


Begin forwarded message:

<x-tabstops>28L;56L;84L;112L;140L;168L;196L;224L;252L;280L;308L;336L;From: </x-tabstops><x-tabstops>28L;56L;84L;112L;140L;168L;196L;224L;252L;280L;308L;336L;Larry Campbell <address@hidden></x-tabstops><x-tabstops>28L;56L;84L;112L;140L;168L;196L;224L;252L;280L;308L;336L;
Date: Thu Jan 18, 2001 10:34:17 AM US/Eastern
To: address@hidden
Subject: NSLock bug?
X-Mailer: Apple Mail (2.343)

> 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
>
>
</x-tabstops>



reply via email to

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