[OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD

Sebastian Reitenbach gnustep-port@opengroupware.org
Tue, 29 May 2007 06:40:26 +0200


gnustep-port@opengroupware.org wrote: 
> Hi,
> gnustep-port@opengroupware.org wrote: 
> > On May 28, 2007, at 21:49, Sebastian Reitenbach wrote:
> > > 2007-05-28 21:27:00.115 ogo-webui-1.1[9507] dict:  
> > > {NSTargetObjectUserInfoKey
> > > = 0; NSUnknownUserInfoKey = news_blocksize; }, [self class]:  
> > > LSUserDefaults,
> > > [self] <LSUserDefaults: 0x8b66fa48>
> > 
> > Possibly fixed in r1961. Probably more classes are to come ...
> Thanks, it is fixed, now I can login. More exceptions in NSKeyValueCoding 
> comes here:
> 
> This exception happens when opening the preferences -> mail:
> 
> May 29 06:23:23 ogo-webui-1.1 [31345]: [ERROR] SkyCollapsibleContent 
unable 
> to set 'nil' for key: 'visibility'
> [Switching to process 31345, thread 0x8bb25000]
> 
> Breakpoint 1, -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at 
> NSException.m:782
> 782       if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES
> (gdb) bt
> #0  -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at 
> NSException.m:782
> #1  0x0a6304ca in +[NSException raise:format:arguments:] (self=0x2a650380, 
> _cmd=0x2a650560, name=0x2a6506bc, format=0x2a656248,
>     
> argList=0xcfbc7880
> "&#65533;X&#65533;\206hX&#65533;\206\210&#65533;w\202HW&#65533;
\206=&#65533;b*\210&#65533;w\202&#65533;x&#65533;&#65533;&#65533;
\003c\n=&#65533;b*&#65533;Ph*")
> 
> at NSException.m:753
> #2  0x0a63041b in +[NSException raise:format:] (self=0x2a650380, 
> _cmd=0x2a656070, name=0x2a6506bc, format=0x2a656248) at NSException.m:739
> #3  0x0a650c1f in -[NSObject(KeyValueCoding) setNilValueForKey:] 
> (self=0x8277ff88, _cmd=0x2a67d188, aKey=0x86ac5748) at 
> NSKeyValueCoding.m:275
> #4  0x0a706e5c in GSObjCSetVal (self=0x8277ff88, 
> key=0xcfbc7950 "visibility", val=0x0, sel=0x82e6f690, 
type=0x85147156 "C8", 
> size=10, offset=91545226) at GSObjCRuntime.m:1817
> #5  0x0a651e2f in -[NSObject(KeyValueCoding) takeValue:forKey:] 
> (self=0x8277ff88, _cmd=0x256ef770, anObject=0x0, aKey=0x7e01d508) at 
> NSKeyValueCoding.m:595
> #6  0x056f720a in WOComponent_syncFromParent () 
> from /usr/local/lib/libNGObjWeb.so.4.7.9
> #7  0x056fb9bf in WOContext_enterComponent () 
> from /usr/local/lib/libNGObjWeb.so.4.7.9
> #8  0x0571fb80 in WOApplicationMain () 
> from /usr/local/lib/libNGObjWeb.so.4.7.9
> #9  0x0576dfb1 in NGDecodeUrlFormParameters () 
> from /usr/local/lib/libNGObjWeb.so.4.7.9
> 
> 
> NSKeyValueCoding.m:275 is method:
> 
> - (void) setNilValueForKey: (NSString*)aKey
> {
>   static IMP    o = 0;
> 
>   /* Backward compatibility hack */
>   if (o == 0)
>     {
>       o = [NSObject instanceMethodForSelector:
>         @selector(unableToSetNilForKey:)];
>     }
>   if ([self methodForSelector: @selector(unableToSetNilForKey:)] != o)
>     {
>       [self unableToSetNilForKey: aKey];
>     }
> 
>   [NSException raise: NSInvalidArgumentException
>               format: @"%@ -- %@ 0x%x: Given nil value to set for key 
> \"%@\"",
>     NSStringFromSelector(_cmd), NSStringFromClass([self class]), self, 
> aKey];
> }
> 
> 
> =========================================================================
> =========================================================================
> 10.0.0.9 - - [29/May/2007:06:30:57 
> GMT] "POST /OpenGroupware.woa/x/login?da=&o=1180413050 HTTP/1.1" 200 
> 3742/122 3.148 20207 81% -
> 2007-05-29 06:31:02.720 ogo-webui-1.1[22767] ERROR: missing bundle: 
> OGoPalmDS
> 
> (Palm stuff is not installed)
> 
> (gdb) bt
> #0  -[NSException raise] (self=0x8480c3c8, _cmd=0x230af578) at 
> NSException.m:782
> #1  0x0308f4ca in +[NSException raise:format:arguments:] (self=0x230af380, 
> _cmd=0x230af560, name=0x230af6a4, format=0x230c5394, 
> argList=0xcfbec780 "\bG\203\213&#65533;&#510;&#65533;\004")
>     at NSException.m:753
> #2  0x0308f41b in +[NSException raise:format:] (self=0x230af380, 
> _cmd=0x230c4ba8, name=0x230af6a4, format=0x230c5394) at NSException.m:739
> #3  0x03118f9c in -[NSString propertyList] (self=0x7ef395c8, 
> _cmd=0x230ad458) at NSString.m:4492
> #4  0x03086527 in -[NSDictionary initWithContentsOfFile:] 
(self=0x7da25948, 
> _cmd=0x215c0cd0, path=0x7d6c7088) at NSDictionary.m:594
> #5  0x015c46ff in +[SkyHolidayCalculator initialize] (self=0x215c0bc0, 
> _cmd=0x230ce968) at SkyHolidayCalculator.m:95
> #6  0x0bb58c0c in __objc_send_initialize (class=0x215c0bc0) 
> at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:324
> #7  0x0bb58aa4 in __objc_init_install_dtable (receiver=0x215c0bc0, 
> op=0x20e061a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:266
> #8  0x0bb59a28 in objc_msg_lookup (receiver=0x215c0bc0, op=0x20e061a8) 
> at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:184
> #9  0x00e0b0b4 in -[SkySchedulerPage _newHolidaysCalculator] 
> (self=0x7f448408, _cmd=0x20e06278) at SkySchedulerPage.m:107
> #10 0x00e0b879 in -[SkySchedulerPage init] (self=0x7f448408, 
> _cmd=0x201f8de8) at SkySchedulerPage.m:177
> 
> 
> below NSSTring.m the method with the exception:
> - (id) propertyList
> {
>   NSData                *data;
>   id                    result = nil;
>   NSPropertyListFormat  format;
>   NSString              *error = nil;
> 
>   if ([self length] == 0)
>     {
>       return nil;
>     }
>   data = [self dataUsingEncoding: NSUTF8StringEncoding];
>   NSAssert(data, @"Couldn't get utf8 data from string.");
> 
>   result = [NSPropertyListSerialization
>     propertyListFromData: data
>     mutabilityOption: NSPropertyListMutableContainers
>     format: &format
>     errorDescription: &error];
> 
>   if (result == nil)
>     {
>       [NSException raise: NSGenericException
>                   format: @"Parse failed  - %@", error];
>     }
>   return result;
> }
> 
After the exception, it continues and runs, until it segfaults:

(gdb) c
Continuing.
2007-05-29 06:36:02.804 ogo-webui-1.1[22767] File NSDictionary.m: 609. In 
[GSDictionary -initWithContentsOfFile:] Contents of 
file '/usr/local/share/opengroupware.org-1.1/Holidays.plist' does not 
contain a dictionary
2007-05-29 06:36:02.805 ogo-webui-1.1[22767] WARNING: could not load holiday 
configuration: '/usr/local/share/opengroupware.org-1.1/Holidays.plist'
2007-05-29 06:36:03.334 ogo-webui-1.1[22767] here in SetValueForKey!!!!!!!
2007-05-29 06:36:03.334 ogo-webui-1.1[22767] GSObjCSetVal(self 
<LSWLabelHandler: 0x83b64e28>, key misc, anObject Verschiedenes, sel (nil), 
type (nil), size 4, off -809582224)
2007-05-29 06:36:03.334 ogo-webui-1.1[22767] here in 
Source/Additions/GSObjCRuntime.m: I am going to do: [self setValue: val 
forUndefinedKey: [NSString stringWithUTF8String: key]], where self is 
<LSWLabelHandler: 0x83b64e28> LSWLabelHandler, aKey is misc
2007-05-29 06:36:03.335 ogo-webui-1.1[22767] val: Verschiedenes [val class] 
GSCInlineString
2007-05-29 06:36:03.335 ogo-webui-1.1[22767] here in SetValueForKey!!!!!!!
2007-05-29 06:36:03.335 ogo-webui-1.1[22767] GSObjCSetVal(self 
<LSWLabelHandler: 0x83b64e28>, key misc, anObject Verschiedenes, sel (nil), 
type (nil), size 4, off -809580832)
2007-05-29 06:36:03.336 ogo-webui-1.1[22767] here in 
Source/Additions/GSObjCRuntime.m: I am going to do: [self setValue: val 
forUndefinedKey: [NSString stringWithUTF8String: key]], where self is 
<LSWLabelHandler: 0x83b64e28> LSWLabelHandler, aKey is misc
2007-05-29 06:36:03.336 ogo-webui-1.1[22767] val: Verschiedenes [val class] 
GSCInlineString
2007-05-29 06:36:03.397 ogo-webui-1.1[22767] here in SetValueForKey!!!!!!!

Program received signal SIGSEGV, Segmentation fault.
objc_msg_lookup (receiver=0x80f351f0, op=0x2309adb8) at sarray.h:160
160     sarray.h: No such file or directory.
        in sarray.h
Current language:  auto; currently c
(gdb) bt
#0  objc_msg_lookup (receiver=0x80f351f0, op=0x2309adb8) at sarray.h:160
#1  0x03004522 in GSPrivateFormat (s=0xcfbebba0, format=0xcfbeb3a0, 
ap=0xcfbec4d4
"\b\204D\177P&#382;&#65533;H\213&#65533;\212&#65533;Q&#65533;\200", locale=0x0)
at 
GSFormat.m:1862
#2  0x03018090 in -[GSPlaceholderString initWithFormat:locale:arguments:] 
(self=0x82b08a78, _cmd=0x230c4ca0, format=0x8a531388, locale=0x0,
    argList=0xcfbec4d4
"\b\204D\177P&#382;&#65533;H\213&#65533;\212&#65533;Q&#65533;\200") at
GSString.m:716
#3  0x0311058b in -[NSString initWithFormat:arguments:] (self=0x82b08a78, 
_cmd=0x230dbc98, format=0x8a531388, 
argList=0xcfbec4d4
"\b\204D\177P&#382;&#65533;H\213&#65533;\212&#65533;Q&#65533;\200")
    at NSString.m:1047
#4  0x0316191d in +[NSString(GSCategories) stringWithFormat:arguments:] 
(self=0x230c4b40, _cmd=0x230b6418, format=0x8a531388,
    argList=0xcfbec4d4
"\b\204D\177P&#382;&#65533;H\213&#65533;\212&#65533;Q&#65533;\200") at 
GSCategories.m:1100
#5  0x030b6600 in NSLogv (format=0x8a531388, 
args=0xcfbec4d4
"\b\204D\177P&#382;&#65533;H\213&#65533;\212&#65533;Q&#65533;\200") at
NSLog.m:346
#6  0x030b6246 in NSLog (format=0x230b51b8) at NSLog.m:253
#7  0x030af2a4 in SetValueForKey (self=0x7f448408, anObject=0x8aa18b48, 
key=0xcfbec550 "fetchSpecification", size=18) at NSKeyValueCoding.m:114
#8  0x030afcc5 in -[NSObject(KeyValueCoding) setValue:forKey:] 
(self=0x7f448408, _cmd=0x20210fe8, anObject=0x8aa18b48, aKey=0x85be75a8) at 
NSKeyValueCoding.m:289
#9  0x00257c35 in NGDecodeUrlFormParameters () 
from /usr/local/lib/libNGObjWeb.so.4.7.9
#10 0x00257e1d in NGDecodeUrlFormParameters () 
from /usr/local/lib/libNGObjWeb.so.4.7.9
#11 0x001fef9e in WOGetKVCValueUsingMethod () 
from /usr/local/lib/libNGObjWeb.so.4.7.9


kind regards
Sebastian