Larry Campbell
Larry Campbell
The following snippet: ``` NSPredicate *p = [NSPredicate predicateWithFormat:@"'a' in {'a'}"]; BOOL b = [p evaluateWithObject:self]; NSLog(@"b = %d", b); ``` logs "b = 1" on Mac OS X but...
The following code, which works on Mac OS, fails on gnustep: ``` void testFirst(void) { NSArray *object = @[ @1, @2, @3 ]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF[FIRST] = 1"];...
Here's an annotated stack dump: ``` (gdb) thread apply all bt Thread 2 (Thread 0x7f1c5767d700 (LWP 2242095)): #0 0x00007f1c5c489170 in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x00007f1c5c481131 in pthread_mutex_lock () from...
I boiled this down from a large codebase into the tiniest example I could manage, but it's still six files (including the GNUmakefile) so I'm attaching a [tarball](https://github.com/user-attachments/files/18049169/libobjc-crash.tgz). The code...