But "Foundation" (ie, gnustep-base) is not a framework ... and is not a bundle.
So how could you crash in NSBundle while loading Foundation ? ;-) Thanks -----Original Message----- From: Marc Brünink <[EMAIL PROTECTED]> Sent: Tuesday, December 5, 2006 11:49 am To: [email protected] Subject: Re: SeqFault in [NSBundle(Private) _addFrameworkFromClass:] Sorry, but perhaps I should mention, that it does not segfault while loading SRMapKit, but while loading Foundation. At least I guess its Foundation.... Marc > Hi all, > > ok it segfaults in > len = strlen (frameworkClass->name); > > Perhaps its a broken GNUMakefile for the framework? Do I miss a key > point? Am I dumb? :-) > > include $(GNUSTEP_MAKEFILES)/common.make > GNUSTEP_BUILD_DIR = /Build/SRMapKit > > FRAMEWORK_NAME = SRMapKit > > GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT) > SRMapKit_HEADER_FILES = UMNController.h SRMap.h Definitions.h SRMapKit.h > SRMapKit_HEADER_FILES_INSTALL_DIR = SRMapKit > SRMapKit_OBJC_FILES = UMNController.m SRMap.m > SRMapKit_C_FILES > VERSION = 1.0.0 > ADDITIONAL_OBJCFLAGS += -Wno-parentheses -Wno-import > > SRMapKit_RESOURCE_FILES = htmlTemplate.html > SRMapKit_LOCALIZED_RESOURCE_FILES > SRMapKit_LANGUAGES > include $(GNUSTEP_MAKEFILES)/framework.make > > > Thanks > Marc > > > Marc Brünink wrote: >> Hi all >> >> I'm trying to load a framework in an application. Shouldn't be a >> major task, but it is :-) >> I'm getting a segfault in [NSBundle(Private) >> _addFrameworkFromClass:]. The strange thing about it: I do not have >> any problems using this framework with another tool. >> >> It segfaults at the first use of any Foundation code. For example at >> the NSLog in: printf("HALLo"); >> fflush(stdout); >> NSLog(@"main A"); >> >> >> Any hints? >> >> Thanks >> Marc >> >> >> Program received signal SIGSEGV, Segmentation fault. >> 0xfe2bfd79 in +[NSBundle(Private) _addFrameworkFromClass:] >> (self=0xfe522880, >> _cmd=0xfe522ae0, frameworkClass=0xb6c0) at NSBundle.m:461 >> 461 len = strlen (frameworkClass->name); >> >> >> (gdb) bt >> #0 0xfe2bfd79 in +[NSBundle(Private) _addFrameworkFromClass:] ( >> self=0xfe522880, _cmd=0xfe522ae0, frameworkClass=0xb6c0) at >> NSBundle.m:461 >> #1 0xfe2c0c7b in +[NSBundle initialize] (self=0xfe522880, >> _cmd=0xfe54a5a8) >> at NSBundle.m:805 >> #2 0xfe3f0ad7 in __objc_send_initialize (class=0xfe522880) >> at /usr/share/src/gcc-3.4.4/libobjc/sendmsg.c:372 >> #3 0xfe3f0fd0 in objc_msg_lookup (receiver=0xfe522880, op=0xfe548b68) >> at /usr/share/src/gcc-3.4.4/libobjc/sendmsg.c:314 >> #4 0xfe39f467 in +[NSUserDefaults standardUserDefaults] >> (self=0xfe548a20, >> _cmd=0xfe548ae8) at NSUserDefaults.m:515 >> #5 0xfe3a3ce6 in GSUserDefaultsFlag (type=46784) at >> NSUserDefaults.m:1981 >> #6 0xfe329ef1 in NSLogv (format=0x80ae19c, args=0x8047774 >> "Há\n\bpÀÿþ\001") >> at NSLog.m:305 >> #7 0xfe329e77 in NSLog (format=0x80ae19c) at NSLog.m:252 >> #8 0x08072739 in main (argc=1, argv=0x80477e8, env=0x80477f0) >> at LKWOffice_main.m:42 >> >> >> >> _______________________________________________ >> Discuss-gnustep mailing list >> [email protected] >> http://lists.gnu.org/mailman/listinfo/discuss-gnustep > > > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
