gnustep-dev
[Top][All Lists]
Advanced

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

Buggy change to NSPropertyList.m ?


From: Philippe Roussel
Subject: Buggy change to NSPropertyList.m ?
Date: Fri, 11 Feb 2011 00:27:55 +0100

Hi,

With commit 32031 to NSPropertyList.m (and latest libobjc2) my
application crashes in weird ways. Reverting to 31997 on that file
apparently fixes it for me but I have no idea if the bug is in my
application or in NSPropertyList.

Here's backtrace with the latest change :

Program received signal SIGSEGV, Segmentation fault.
0xb770eeef in object_getClass (obj=0xb7adce30) at runtime.c:613
613                     while ((Nil != isa) && objc_test_class_flag(isa, 
objc_class_flag_hidden_class))
(gdb) bt
#0  0xb770eeef in object_getClass (obj=0xb7adce30) at runtime.c:613
#1  0xb78d8f12 in OAppend (obj=0x832c5c8, loc=<value optimized out>, lev=1, 
step=2, x=100, dest=0x82bf448) at NSPropertyList.m:2179
#2  0xb78d9084 in OAppend (obj=<value optimized out>, loc=<value optimized 
out>, lev=0, step=2, x=100, dest=0x82bf448) at NSPropertyList.m:2266
#3  0xb78d944d in +[NSPropertyListSerialization 
dataWithPropertyList:format:options:error:] (self=0xb7adcbc0, _cmd=0xb7add078, 
aPropertyList=0x896b258, aFormat=100, anOption=0, 
    error=0xbfffe3b8) at NSPropertyList.m:2411
#4  0xb78d355c in +[NSPropertyListSerialization 
dataFromPropertyList:format:errorDescription:] (self=0xb7adcbc0, 
_cmd=0xb7afb060, aPropertyList=0x896b258, aFormat=100, 
    anErrorString=0xbfffe428) at NSPropertyList.m:2377
#5  0xb793d5e0 in writeDictionary (dict=0x896b258, file=<value optimized out>) 
at NSUserDefaults.m:157
#6  0xb793b947 in -[NSUserDefaults synchronize] (self=0x8244090, 
_cmd=0xb7afb298) at NSUserDefaults.m:1772
#7  0xb78967a4 in -[NSNotificationCenter _postAndRelease:] (self=0x8176f58, 
_cmd=0xb7acaa28, notification=0x83a9348) at NSNotificationCenter.m:1161
#8  0xb7895c4b in -[NSNotificationCenter postNotification:] (self=0x8176f58, 
_cmd=0xb7adfa70, notification=0x83a9348) at NSNotificationCenter.m:1190
#9  0xb714163f in ffi_call_SYSV () from /usr/lib/libffi.so.5
#10 0xb714146f in ffi_call () from /usr/lib/libffi.so.5
#11 0xb796a6c5 in GSFFIInvokeWithTargetAndImp (inv=0x83b4fb8, 
anObject=0x8176f58, imp=0xb7895be0 <-[NSNotificationCenter postNotification:]>) 
at GSFFIInvocation.m:406
#12 0xb796a88a in -[GSFFIInvocation invokeWithTarget:] (self=0x83b4fb8, 
_cmd=0xb7ac0eb8, anObject=0x8176f58) at GSFFIInvocation.m:481
#13 0xb7873643 in -[NSInvocation invoke] (self=0x83b4fb8, _cmd=0xb7aec070) at 
NSInvocation.m:640
#14 0xb7914b39 in -[NSTimer fire] (self=0x83c6670, _cmd=0xb7adfae8) at 
NSTimer.m:242
#15 0xb78e5a81 in -[NSRunLoop limitDateForMode:] (self=0x83b2038, 
_cmd=0xb7adfb40, mode=0xb7adfba0) at NSRunLoop.m:983
#16 0xb78e2375 in -[NSRunLoop runMode:beforeDate:] (self=0x83b2038, 
_cmd=0xb7fa6120, mode=0xb7adfba0, date=0x83c9cd0) at NSRunLoop.m:1247
#17 0xb7e52ac9 in -[GSDisplayServer(EventOps) 
getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x838c440, 
_cmd=0xb5364418, mask=4294967295, limit=0x83c9cd0, mode=0xb7adfba0, 
    flag=1 '\001') at GSDisplayServer.m:1003
#18 0xb5332b5e in -[XGServer(X11Ops) 
getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x838c440, 
_cmd=0xb7efeeb0, mask=4294967295, limit=0x83c9cd0, mode=0xb7adfba0, 

Philippe




reply via email to

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