Here is a bit more info. It is associated with using the @"" syntax to pass an 
NSString convenience variable. (0.23 did not have this problem.)

(gdb) b main
(gdb) r
(gdb) b 9
(gdb) c
(gdb) p [ud objectForKey:str]
$1 = (struct objc_object *) 0x0
(gdb) po [ud presistentDomainNames]
Target does not respond to this message selector.
(gdb) po [ud persistentDomainNames]
(gorm, ProjectCenter, MyTool, SystemPreferences, NSGlobalDomain)
(gdb) set $a = [NSString stringWithString:str]
Reading in symbols for NSString.m...done.
(gdb) po $a
foo
(gdb) set $a = [NSString stringWithString:@"foo”]
Segmentation fault
Debugger exited abnormally with code 5

#import <Foundation/Foundation.h>

int main( int argc, const char *argv[] )
{
    id pool = [NSAutoreleasePool new];
    id ud   = [NSUserDefaults standardUserDefaults];
    id foo  = [ud objectForKey:@"foo"];
    id str  = @"foo";
    printf("foo = %s\n", foo ? [foo cString] : "missing"); fflush(stdout);
#line 10
    [pool release];
    return 0;
}


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to