gnustep-dev
[Top][All Lists]
Advanced

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

Re: 32bit GS on 64bit Win rebuild base from src


From: Giah de Barag
Subject: Re: 32bit GS on 64bit Win rebuild base from src
Date: Sun, 21 Aug 2016 09:43:55 -0400

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;
}




reply via email to

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