Hi,
attached are a couple of backtraces of kind of randomly failing gnustep-base
tests. I tested on OpenBSD 5.0 -current i386. I tested the following
combinations, whichever doesn't matter:
gcc-4.2.1 with gcc system libobjc
gcc-4.2.1 with libobjc2 svn
clang-3.0rc1 with gcc system libobjc
clang-3.0rc1 with libobjc2 svn
so the compiler doesn't seem to matter, nor which libobjc is used. For me it
seems that some buffers are read/written past its end.
Sebastian
WITH GCC and libobjc2
--- Running tests in base/NSTimeZone ---
--- Running tests in base/NSURL ---
base/NSURL/test00.m:
Failed test: test00.m:121 ... respond with keepalive 0 (pause 0) OK
Failed test: test00.m:121 ... respond with keepalive 1 (pause 0) OK
Failed test: test00.m:121 ... respond with keepalive 0 (pause 4) OK
Failed test: test00.m:121 ... respond with keepalive 1 (pause 4) OK
Failed test: test00.m:121 ... respond with keepalive 0 (pause 8) OK
Failed test: test00.m:121 ... respond with keepalive 1 (pause 8) OK
Failed test: test00.m:121 ... respond with keepalive 0 (pause 12) OK
Failed test: test00.m:121 ... respond with keepalive 1 (pause 12) OK
base/NSURL/test01.m:
Failed test: test01.m:56 ... keep-alive test 0 OK
Failed test: test01.m:56 ... keep-alive test 1 OK
Failed test: test01.m:56 ... keep-alive test 2 OK
Failed test: test01.m:56 ... keep-alive test 3 OK
Failed test: test01.m:56 ... keep-alive test 4 OK
Failed test: test01.m:56 ... keep-alive test 5 OK
Failed test: test01.m:56 ... keep-alive test 6 OK
Failed test: test01.m:56 ... keep-alive test 7 OK
Failed test: test01.m:56 ... keep-alive test 8 OK
Failed test: test01.m:56 ... keep-alive test 9 OK
--- Running tests in base/NSURLConnection ---
--- Running tests in base/NSURLHandle ---
--- Running tests in base/NSURLProtocol ---
===========================================================================
base/NSRunLoop/thread.m:
Failed file: thread.m aborted without running all tests!
--- Running tests in base/NSScanner ---
--- Running tests in base/NSSet ---
--- Running tests in base/NSSortDescriptor ---
--- Running tests in base/NSStream ---
--- Running tests in base/NSString ---
--- Running tests in base/NSTask ---
--- Running tests in base/NSTimeZone ---
--- Running tests in base/NSURL ---
base/NSURL/test00.m:
Failed test: test00.m:121 ... respond with keepalive 0 (pause 8) OK
Failed test: test00.m:121 ... respond with keepalive 1 (pause 8) OK
Failed test: test00.m:121 ... respond with keepalive 0 (pause 12) OK
Failed test: test00.m:121 ... respond with keepalive 1 (pause 12) OK
base/NSURL/test01.m:
Failed test: test01.m:56 ... keep-alive test 0 OK
Failed test: test01.m:56 ... keep-alive test 1 OK
Failed test: test01.m:56 ... keep-alive test 2 OK
Failed test: test01.m:56 ... keep-alive test 3 OK
Failed test: test01.m:56 ... keep-alive test 4 OK
Failed test: test01.m:56 ... keep-alive test 5 OK
Failed test: test01.m:56 ... keep-alive test 6 OK
Failed test: test01.m:56 ... keep-alive test 7 OK
Failed test: test01.m:56 ... keep-alive test 8 OK
Failed test: test01.m:56 ... keep-alive test 9 OK
--- Running tests in base/NSURLConnection ---
gdb -c base/NSRunLoop/thread.core base/NSRunLoop/obj/thread
#0 0x6728373d in kill () from /usr/lib/libc.so.60.1
(gdb) thread apply all bt
Thread 4 (process 7242, thread 0x5dcf3800):
#0 _thread_kern_sched (scp=0xcfbd351c) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:496
#1 0x633e62c0 in _thread_sig_handler (sig=27, info=0xcfbd3570, scp=0xcfbd351c)
at /usr/src/lib/libpthread/uthread/uthread_sig.c:86
#2 <signal handler called>
#3 0x619341b0 in SparseArrayFind (sarray=0x61942dfc, index=0xcfbd387c) at
sarray2.c:79
#4 0x61934231 in SparseArrayFind (sarray=0x5fff4bf0, index=0xcfbd387c) at
sarray2.c:95
#5 0x619342b5 in SparseArrayNext (sarray=0x5fff4bf0, idx=0xcfbd387c) at
sarray2.c:120
#6 0x6192b3ac in installMethodsInClass (cls=0x5e4cc260, owner=0x5e4cc260,
methods=0x5fff4bf0, replaceExisting=1 '\001') at dtable.c:427
#7 0x6192b727 in add_method_list_to_class (cls=0x5e4cc260, list=0x695f0e60) at
dtable.c:486
#8 0x61932dd0 in class_addMethod (cls=0x5e4cc260, name=0x6258b468,
imp=0x5e16b2d5 <-[GSArray isEqualToArray:]>, types=0x5e4cb775 "C12@0:4@8") at
runtime.c:191
#9 0x5e3653b9 in GSObjCAddMethods (cls=0x5e4cc260, list=0x5d6d4b80, replace=0
'\0') at GSObjCRuntime.m:559
#10 0x5e3663d9 in GSObjCAddClassBehavior (receiver=0x5e4cc260,
behavior=0x5e4cc4e0) at GSObjCRuntime.m:902
#11 0x5e16ba49 in +[GSMutableArray initialize] (self=0x5e4cc260,
_cmd=0x6258b730) at GSArray.m:444
#12 0x6192bdab in objc_send_initialize (object=0x5e4cc260) at dtable.c:733
#13 0x6193684a in objc_msg_lookup_internal (receiver=0xcfbd3a80,
selector=0x5e4dd2a8, sender=0x0) at sendmsg2.c:67
#14 0x619373b2 in objc_msg_lookup (receiver=0x5e4cc260, selector=0x5e4dd2a8) at
sendmsg2.c:375
#15 0x5e1b8ac3 in +[NSArray initialize] (self=0x5e4dd260, _cmd=0x6258b730) at
NSArray.m:128
#16 0x6192bdab in objc_send_initialize (object=0x5e4dd260) at dtable.c:733
#17 0x6193684a in objc_msg_lookup_internal (receiver=0xcfbd3ba0,
selector=0x5e4d3ff0, sender=0x0) at sendmsg2.c:67
#18 0x619373b2 in objc_msg_lookup (receiver=0x5e4dd260, selector=0x5e4d3ff0) at
sendmsg2.c:375
#19 0x5e188d30 in +[GSSet initialize] (self=0x5e4d3ea0, _cmd=0x6258b730) at
GSSet.m:127
#20 0x6192bdab in objc_send_initialize (object=0x5e4d3ea0) at dtable.c:733
#21 0x6193684a in objc_msg_lookup_internal (receiver=0xcfbd3ca0,
selector=0x5e522f40, sender=0x0) at sendmsg2.c:67
#22 0x619373b2 in objc_msg_lookup (receiver=0x5e4d3ea0, selector=0x5e522f40) at
sendmsg2.c:375
#23 0x5e2d700d in +[NSSet initialize] (self=0x5e522f00, _cmd=0x6258b730) at
NSSet.m:79
#24 0x6192bdab in objc_send_initialize (object=0x5e522f00) at dtable.c:733
#25 0x6192bbea in objc_send_initialize (object=0x5e522c20) at dtable.c:666
#26 0x6193684a in objc_msg_lookup_internal (receiver=0xcfbd3e10,
selector=0x5e51b160, sender=0x0) at sendmsg2.c:67
#27 0x619373b2 in objc_msg_lookup (receiver=0x5e522c20, selector=0x5e51b160) at
sendmsg2.c:375
#28 0x5e2b6a6f in _gnu_process_args (argc=1, argv=0xcfbd3f38, env=0xcfbd3f40)
at NSProcessInfo.m:351
#29 0x5e2b7060 in main (argc=1, argv=0xcfbd3f38, env=0xcfbd3f40) at
NSProcessInfo.m:975
#30 0x1c000fd7 in ___start ()
#31 0x1c000f52 in _start ()
Thread 3 (process 7242, thread 0x67332000):
#0 _thread_kern_sched (scp=0x0) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:496
#1 0x633e57c6 in _thread_kern_sched_state (state=PS_SLEEP_WAIT,
fname=0x833d21fc "/usr/src/lib/libpthread/uthread/uthread_nanosleep.c",
lineno=84) at /usr/src/lib/libpthread/uthread/uthread_kern.c:571
#2 0x633d8972 in nanosleep (time_to_sleep=0x6183df6c, time_remaining=0x0) at
/usr/src/lib/libpthread/uthread/uthread_nanosleep.c:84
---Type <return> to continue, or q <return> to quit---
#3 0x672646de in usleep (useconds=Variable "useconds" is not available.
) at /usr/src/lib/libc/gen/usleep.c:46
#4 0x61934e0a in selector_table_collect_garbage (t=0x630ac680) at
hash_table.h:182
#5 0x6193770a in runloop (q=0x63f2a400) at toydispatch.c:197
#6 0x633dc5ce in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#7 0x0000002b in ?? ()
#8 0x00000000 in ?? ()
Thread 2 (process 7242, thread 0x67332400):
#0 0x6728373d in kill () from /usr/lib/libc.so.60.1
#1 0x672c0a03 in __stack_smash_handler (func=0x833d2fd6 "_spinlock_debug",
damaged=-2093144264) at /usr/src/lib/libc/sys/stack_protector.c:89
#2 0x633e643d in _spinlock_debug (lck=Variable "lck" is not available.
) at /usr/src/lib/libpthread/uthread/uthread_spinlock.c:109
#3 0x633ddc72 in _thread_malloc_lock () at
/usr/src/lib/libpthread/thread/thread_malloc_lock.c:14
#4 0x672e9d95 in malloc (size=3) at /usr/src/lib/libc/stdlib/malloc.c:1106
#5 0x672cf3f2 in strdup (str=0x833d25fa "GC") at
/usr/src/lib/libc/string/strdup.c:45
#6 0x633e651a in pthread_set_name_np (thread=0x67332400, name=0x833d25fa "GC")
at /usr/src/lib/libpthread/uthread/uthread_info_openbsd.c:474
#7 0x633dca0e in _thread_gc (arg=0x0) at
/usr/src/lib/libpthread/uthread/uthread_gc.c:73
#8 0x633dc5ce in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#9 0x0000002b in ?? ()
#10 0x00000000 in ?? ()
Thread 1 (process 7242):
#0 0x6728373d in kill () from /usr/lib/libc.so.60.1
#1 0x672c0a03 in __stack_smash_handler (func=0x833d2fd6 "_spinlock_debug",
damaged=-2093144264) at /usr/src/lib/libc/sys/stack_protector.c:89
#2 0x633e643d in _spinlock_debug (lck=Variable "lck" is not available.
) at /usr/src/lib/libpthread/uthread/uthread_spinlock.c:109
#3 0x633ddc72 in _thread_malloc_lock () at
/usr/src/lib/libpthread/thread/thread_malloc_lock.c:14
#4 0x672e9d95 in malloc (size=3) at /usr/src/lib/libc/stdlib/malloc.c:1106
#5 0x672cf3f2 in strdup (str=0x833d25fa "GC") at
/usr/src/lib/libc/string/strdup.c:45
#6 0x633e651a in pthread_set_name_np (thread=0x67332400, name=0x833d25fa "GC")
at /usr/src/lib/libpthread/uthread/uthread_info_openbsd.c:474
#7 0x633dca0e in _thread_gc (arg=0x0) at
/usr/src/lib/libpthread/uthread/uthread_gc.c:73
#8 0x633dc5ce in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#9 0x0000002b in ?? ()
#10 0x00000000 in ?? ()
(gdb)
===============================================================================================
$ gdb -c base/NSUserDefaults/basic.core base/NSUserDefaults/obj/basic
#0 0x5ec39d21 in strlen () from /usr/lib/libc.so.60.1
(gdb) thread apply all bt
Thread 4 (process 31775, thread 0x5d906c00):
#0 0x5ec39d21 in strlen () from /usr/lib/libc.so.60.1
#1 0x5ebcb1a1 in sscanf (str=0x69eb4bd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x63aec1d4 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x639a733c in -[NSXMLParser _parseEntity:] (self=0x65300304,
_cmd=0x63bad298, result=0xcfbc2f94) at NSXMLParser.m:1388
#3 0x639a8026 in -[NSXMLParser parse] (self=0x65300304, _cmd=0x63b882d8) at
NSXMLParser.m:1679
#4 0x63924bdb in -[GSXMLPListParser parse] (self=0x661f6b84, _cmd=0x63b884c0)
at NSPropertyList.m:369
#5 0x6392cbf0 in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x63b87fe0, _cmd=0x63b884b0,
data=0x65301ae4, anOption=1, aFormat=0xcfbc30f0, error=0xcfbc308c) at
NSPropertyList.m:2590
#6 0x6392c8ab in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x63b87fe0, _cmd=0x63b95300, data=0x65301ae4, anOption=1,
aFormat=0xcfbc30f0, anErrorString=0xcfbc30ec) at NSPropertyList.m:2510
#7 0x63964c94 in -[NSString propertyList] (self=0x65300ac4, _cmd=0x63b5e238)
at NSString.m:5202
#8 0x6389701c in -[NSDictionary initWithContentsOfFile:] (self=0x661f6a04,
_cmd=0x63ba8010, path=0x5eb68b04) at NSDictionary.m:620
#9 0x6399a750 in -[NSUserDefaults readDefaults] (self=0x661f6f04,
_cmd=0x63ba7ea8) at NSUserDefaults.m:1707
#10 0x6399aa19 in -[NSUserDefaults synchronize] (self=0x661f6f04,
_cmd=0x63ba7d68) at NSUserDefaults.m:1753
#11 0x63995f33 in +[NSUserDefaults standardUserDefaults] (self=0x63ba7c20,
_cmd=0x1c008b78) at NSUserDefaults.m:667
#12 0x1c006057 in gnustep_base_user_main () at basic.m:12
#13 0x63922078 in main (argc=1, argv=0xcfbc3478, env=0xcfbc3480) at
NSProcessInfo.m:978
#14 0x1c000e27 in ___start ()
#15 0x1c000da2 in _start ()
Thread 3 (process 31775, thread 0x622e5800):
#0 _thread_kern_sched (scp=0x0) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:496
#1 0x6409f7c6 in _thread_kern_sched_state (state=PS_SLEEP_WAIT,
fname=0x8408c1fc "/usr/src/lib/libpthread/uthread/uthread_nanosleep.c",
lineno=84) at /usr/src/lib/libpthread/uthread/uthread_kern.c:571
#2 0x64092972 in nanosleep (time_to_sleep=0x65fbff6c,
time_remaining=0x65fbff64) at
/usr/src/lib/libpthread/uthread/uthread_nanosleep.c:84
#3 0x5ec01087 in sleep (seconds=30) at /usr/src/lib/libc/gen/sleep.c:45
#4 0x5d1e0e37 in selector_table_collect_garbage (t=0x5d82c680) at
hash_table.h:189
#5 0x5d1e370a in runloop (q=0x5efb1800) at toydispatch.c:197
#6 0x640965ce in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#7 0x0000002b in ?? ()
#8 0x00000000 in ?? ()
Thread 2 (process 31775, thread 0x622e5400):
#0 _thread_kern_sched (scp=0x0) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:496
#1 0x6409f75f in _thread_kern_sched_state_unlock (state=PS_COND_WAIT,
lock=0x606fb918, fname=0x8408ce14
"/usr/src/lib/libpthread/uthread/uthread_cond.c", lineno=432) at
/usr/src/lib/libpthread/uthread/uthread_kern.c:602
#2 0x6409bae7 in pthread_cond_timedwait (cond=0x8408e120, mutex=0x8408e11c,
abstime=0x66e83fc0) at /usr/src/lib/libpthread/uthread/uthread_cond.c:431
#3 0x64096bae in _thread_gc (arg=0x0) at
/usr/src/lib/libpthread/uthread/uthread_gc.c:181
#4 0x640965ce in _thread_start () at
/usr/src/lib/libpthread/uthread/uthread_create.c:242
#5 0x0000002b in ?? ()
#6 0x00000000 in ?? ()
Thread 1 (process 31775):
#0 0x5ec39d21 in strlen () from /usr/lib/libc.so.60.1
#1 0x5ebcb1a1 in sscanf (str=0x69eb4bd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x63aec1d4 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x639a733c in -[NSXMLParser _parseEntity:] (self=0x65300304,
_cmd=0x63bad298, result=0xcfbc2f94) at NSXMLParser.m:1388
#3 0x639a8026 in -[NSXMLParser parse] (self=0x65300304, _cmd=0x63b882d8) at
NSXMLParser.m:1679
#4 0x63924bdb in -[GSXMLPListParser parse] (self=0x661f6b84, _cmd=0x63b884c0)
at NSPropertyList.m:369
#5 0x6392cbf0 in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x63b87fe0, _cmd=0x63b884b0,
data=0x65301ae4, anOption=1, aFormat=0xcfbc30f0, error=0xcfbc308c) at
NSPropertyList.m:2590
#6 0x6392c8ab in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x63b87fe0, _cmd=0x63b95300, data=0x65301ae4, anOption=1,
aFormat=0xcfbc30f0, anErrorString=0xcfbc30ec) at NSPropertyList.m:2510
#7 0x63964c94 in -[NSString propertyList] (self=0x65300ac4, _cmd=0x63b5e238)
at NSString.m:5202
#8 0x6389701c in -[NSDictionary initWithContentsOfFile:] (self=0x661f6a04,
_cmd=0x63ba8010, path=0x5eb68b04) at NSDictionary.m:620
#9 0x6399a750 in -[NSUserDefaults readDefaults] (self=0x661f6f04,
_cmd=0x63ba7ea8) at NSUserDefaults.m:1707
#10 0x6399aa19 in -[NSUserDefaults synchronize] (self=0x661f6f04,
_cmd=0x63ba7d68) at NSUserDefaults.m:1753
#11 0x63995f33 in +[NSUserDefaults standardUserDefaults] (self=0x63ba7c20,
_cmd=0x1c008b78) at NSUserDefaults.m:667
#12 0x1c006057 in gnustep_base_user_main () at basic.m:12
#13 0x63922078 in main (argc=1, argv=0xcfbc3478, env=0xcfbc3480) at
NSProcessInfo.m:978
#14 0x1c000e27 in ___start ()
#15 0x1c000da2 in _start ()
=======================================================
the same with gcc and libobjc that comes with gcc:
$ gdb -c base/NSUserDefaults/basic.core base/NSUserDefaults/obj/basic
#0 0x64ed8d21 in strlen () from /usr/lib/libc.so.60.1
(gdb) thread apply all bt
Thread 2 (process 29670, thread 0x64050c00):
#0 0x64ed8d21 in strlen () from /usr/lib/libc.so.60.1
#1 0x64e6a1a1 in sscanf (str=0x5f8bcbd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x5e777174 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x5e62fd54 in -[NSXMLParser _parseEntity:] (self=0x63c61924,
_cmd=0x5e7f97f8, result=0xcfbf26e4) at NSXMLParser.m:1388
#3 0x5e630a3e in -[NSXMLParser parse] (self=0x63c61924, _cmd=0x5e7d4938) at
NSXMLParser.m:1679
#4 0x5e5aeb23 in -[GSXMLPListParser parse] (self=0x5c9c1e84, _cmd=0x5e7d4b20)
at NSPropertyList.m:369
#5 0x5e5b676e in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x5e7d4640, _cmd=0x5e7d4b10,
data=0x68a6b8f4, anOption=1, aFormat=0xcfbf2860, error=0xcfbf27dc) at
NSPropertyList.m:2590
#6 0x5e5b6429 in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x5e7d4640, _cmd=0x5e7e18a0, data=0x68a6b8f4, anOption=1,
aFormat=0xcfbf2860, anErrorString=0xcfbf285c) at NSPropertyList.m:2510
#7 0x5e5eddc3 in -[NSString propertyList] (self=0x63c61044, _cmd=0x5e7aaa98)
at NSString.m:5202
#8 0x5e521a08 in -[NSDictionary initWithContentsOfFile:] (self=0x5c9c1d04,
_cmd=0x5e7f4570, path=0x5c9c3a04) at NSDictionary.m:620
#9 0x5e623396 in -[NSUserDefaults readDefaults] (self=0x5f0a0184,
_cmd=0x5e7f4408) at NSUserDefaults.m:1707
#10 0x5e623639 in -[NSUserDefaults synchronize] (self=0x5f0a0184,
_cmd=0x5e7f42c8) at NSUserDefaults.m:1753
#11 0x5e61ed6f in +[NSUserDefaults standardUserDefaults] (self=0x5e7f4180,
_cmd=0x1c0078b8) at NSUserDefaults.m:667
#12 0x1c005bf5 in gnustep_base_user_main () at basic.m:12
#13 0x5e5abfc0 in main (argc=1, argv=0xcfbf2b78, env=0xcfbf2b80) at
NSProcessInfo.m:978
#14 0x1c000e67 in ___start ()
#15 0x1c000de2 in _start ()
Thread 1 (process 29670):
#0 0x64ed8d21 in strlen () from /usr/lib/libc.so.60.1
#1 0x64e6a1a1 in sscanf (str=0x5f8bcbd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x5e777174 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x5e62fd54 in -[NSXMLParser _parseEntity:] (self=0x63c61924,
_cmd=0x5e7f97f8, result=0xcfbf26e4) at NSXMLParser.m:1388
#3 0x5e630a3e in -[NSXMLParser parse] (self=0x63c61924, _cmd=0x5e7d4938) at
NSXMLParser.m:1679
#4 0x5e5aeb23 in -[GSXMLPListParser parse] (self=0x5c9c1e84, _cmd=0x5e7d4b20)
at NSPropertyList.m:369
#5 0x5e5b676e in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x5e7d4640, _cmd=0x5e7d4b10,
data=0x68a6b8f4, anOption=1, aFormat=0xcfbf2860, error=0xcfbf27dc) at
NSPropertyList.m:2590
#6 0x5e5b6429 in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x5e7d4640, _cmd=0x5e7e18a0, data=0x68a6b8f4, anOption=1,
aFormat=0xcfbf2860, anErrorString=0xcfbf285c) at NSPropertyList.m:2510
#7 0x5e5eddc3 in -[NSString propertyList] (self=0x63c61044, _cmd=0x5e7aaa98)
at NSString.m:5202
#8 0x5e521a08 in -[NSDictionary initWithContentsOfFile:] (self=0x5c9c1d04,
_cmd=0x5e7f4570, path=0x5c9c3a04) at NSDictionary.m:620
#9 0x5e623396 in -[NSUserDefaults readDefaults] (self=0x5f0a0184,
_cmd=0x5e7f4408) at NSUserDefaults.m:1707
#10 0x5e623639 in -[NSUserDefaults synchronize] (self=0x5f0a0184,
_cmd=0x5e7f42c8) at NSUserDefaults.m:1753
#11 0x5e61ed6f in +[NSUserDefaults standardUserDefaults] (self=0x5e7f4180,
_cmd=0x1c0078b8) at NSUserDefaults.m:667
#12 0x1c005bf5 in gnustep_base_user_main () at basic.m:12
#13 0x5e5abfc0 in main (argc=1, argv=0xcfbf2b78, env=0xcfbf2b80) at
NSProcessInfo.m:978
#14 0x1c000e67 in ___start ()
#15 0x1c000de2 in _start ()
==============================================================================
gdb -c base/NSKeyedArchiver/basic.core base/NSKeyedArchiver/obj/basic
(gdb) thread apply all bt
Thread 2 (process 5353, thread 0x6c004c00):
#0 0x64ea6d21 in strlen () from /usr/lib/libc.so.60.1
#1 0x64e381a1 in sscanf (str=0x61538bd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x5d711174 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x5d5c9d54 in -[NSXMLParser _parseEntity:] (self=0x61552f04,
_cmd=0x5d7937f8, result=0xcfbc65e4) at NSXMLParser.m:1388
#3 0x5d5caa3e in -[NSXMLParser parse] (self=0x61552f04, _cmd=0x5d76e938) at
NSXMLParser.m:1679
#4 0x5d548b23 in -[GSXMLPListParser parse] (self=0x61548144, _cmd=0x5d76eb20)
at NSPropertyList.m:369
#5 0x5d55076e in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x5d76e640, _cmd=0x5d76eb10,
data=0x5e1d7ff4, anOption=1, aFormat=0xcfbc6760, error=0xcfbc66dc) at
NSPropertyList.m:2590
#6 0x5d550429 in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x5d76e640, _cmd=0x5d77b8a0, data=0x5e1d7ff4, anOption=1,
aFormat=0xcfbc6760, anErrorString=0xcfbc675c) at NSPropertyList.m:2510
#7 0x5d587dc3 in -[NSString propertyList] (self=0x61552824, _cmd=0x5d744a98)
at NSString.m:5202
#8 0x5d4bba08 in -[NSDictionary initWithContentsOfFile:] (self=0x61548084,
_cmd=0x5d78e570, path=0x649f6504) at NSDictionary.m:620
#9 0x5d5bd396 in -[NSUserDefaults readDefaults] (self=0x669cb944,
_cmd=0x5d78e408) at NSUserDefaults.m:1707
#10 0x5d5bd639 in -[NSUserDefaults synchronize] (self=0x669cb944,
_cmd=0x5d78e2c8) at NSUserDefaults.m:1753
#11 0x5d5b8d6f in +[NSUserDefaults standardUserDefaults] (self=0x5d78e180,
_cmd=0x5d76ead8) at NSUserDefaults.m:667
#12 0x5d54fcef in +[NSPropertyListSerialization
dataWithPropertyList:format:options:error:] (self=0x5d76e640, _cmd=0x5d76ead0,
aPropertyList=0x669cb144, aFormat=200, anOption=0, error=0xcfbc69fc) at
NSPropertyList.m:2379
#13 0x5d54fc58 in +[NSPropertyListSerialization
dataFromPropertyList:format:errorDescription:] (self=0x5d76e640,
_cmd=0x5d753288, aPropertyList=0x669cb144, aFormat=200,
anErrorString=0xcfbc6a40) at NSPropertyList.m:2360
#14 0x5d4ea5fe in -[NSKeyedArchiver finishEncoding] (self=0x669cba44,
_cmd=0x5d7531b0) at NSKeyedArchiver.m:833
#15 0x5d4e6f49 in +[NSKeyedArchiver archivedDataWithRootObject:]
(self=0x5d752fe0, _cmd=0x1c007848, anObject=0x6aeeede4) at NSKeyedArchiver.m:458
#16 0x1c005d1b in gnustep_base_user_main () at basic.m:9
#17 0x5d545fc0 in main (argc=1, argv=0xcfbc6b98, env=0xcfbc6ba0) at
NSProcessInfo.m:978
#18 0x1c000e57 in ___start ()
#19 0x1c000dd2 in _start ()
Thread 1 (process 5353):
#0 0x64ea6d21 in strlen () from /usr/lib/libc.so.60.1
#1 0x64e381a1 in sscanf (str=0x61538bd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x5d711174 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x5d5c9d54 in -[NSXMLParser _parseEntity:] (self=0x61552f04,
_cmd=0x5d7937f8, result=0xcfbc65e4) at NSXMLParser.m:1388
#3 0x5d5caa3e in -[NSXMLParser parse] (self=0x61552f04, _cmd=0x5d76e938) at
NSXMLParser.m:1679
#4 0x5d548b23 in -[GSXMLPListParser parse] (self=0x61548144, _cmd=0x5d76eb20)
at NSPropertyList.m:369
#5 0x5d55076e in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x5d76e640, _cmd=0x5d76eb10,
data=0x5e1d7ff4, anOption=1, aFormat=0xcfbc6760, error=0xcfbc66dc) at
NSPropertyList.m:2590
#6 0x5d550429 in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x5d76e640, _cmd=0x5d77b8a0, data=0x5e1d7ff4, anOption=1,
aFormat=0xcfbc6760, anErrorString=0xcfbc675c) at NSPropertyList.m:2510
#7 0x5d587dc3 in -[NSString propertyList] (self=0x61552824, _cmd=0x5d744a98)
at NSString.m:5202
#8 0x5d4bba08 in -[NSDictionary initWithContentsOfFile:] (self=0x61548084,
_cmd=0x5d78e570, path=0x649f6504) at NSDictionary.m:620
#9 0x5d5bd396 in -[NSUserDefaults readDefaults] (self=0x669cb944,
_cmd=0x5d78e408) at NSUserDefaults.m:1707
#10 0x5d5bd639 in -[NSUserDefaults synchronize] (self=0x669cb944,
_cmd=0x5d78e2c8) at NSUserDefaults.m:1753
#11 0x5d5b8d6f in +[NSUserDefaults standardUserDefaults] (self=0x5d78e180,
_cmd=0x5d76ead8) at NSUserDefaults.m:667
#12 0x5d54fcef in +[NSPropertyListSerialization
dataWithPropertyList:format:options:error:] (self=0x5d76e640, _cmd=0x5d76ead0,
aPropertyList=0x669cb144, aFormat=200, anOption=0, error=0xcfbc69fc) at
NSPropertyList.m:2379
#13 0x5d54fc58 in +[NSPropertyListSerialization
dataFromPropertyList:format:errorDescription:] (self=0x5d76e640,
_cmd=0x5d753288, aPropertyList=0x669cb144, aFormat=200,
anErrorString=0xcfbc6a40) at NSPropertyList.m:2360
#14 0x5d4ea5fe in -[NSKeyedArchiver finishEncoding] (self=0x669cba44,
_cmd=0x5d7531b0) at NSKeyedArchiver.m:833
#15 0x5d4e6f49 in +[NSKeyedArchiver archivedDataWithRootObject:]
(self=0x5d752fe0, _cmd=0x1c007848, anObject=0x6aeeede4) at NSKeyedArchiver.m:458
#16 0x1c005d1b in gnustep_base_user_main () at basic.m:9
#17 0x5d545fc0 in main (argc=1, argv=0xcfbc6b98, env=0xcfbc6ba0) at
NSProcessInfo.m:978
#18 0x1c000e57 in ___start ()
#19 0x1c000dd2 in _start ()
==========================================================================
here just using CLANG with libobjc installed in -base system:
$ gdb -c base/NSUserDefaults/basic.core base/NSUserDefaults/obj/basic
#0 0x66e4fd21 in strlen () from /usr/lib/libc.so.60.1
(gdb) thread apply all bt
Thread 2 (process 6630, thread 0x6a7f6c00):
#0 0x66e4fd21 in strlen () from /usr/lib/libc.so.60.1
#1 0x66de11a1 in sscanf (str=0x6536bbd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x63572cc3 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x633cd91c in -[NSXMLParser _parseEntity:] (self=0x5c538364,
_cmd=0x63621020, result=0xcfbe428c) at NSXMLParser.m:1388
#3 0x633ceb15 in -[NSXMLParser parse] (self=0x5c538364, _cmd=0x63605c90) at
NSXMLParser.m:1679
#4 0x632f782b in -[GSXMLPListParser parse] (self=0x60576fc4, _cmd=0x63605c90)
at NSPropertyList.m:369
#5 0x632ffcb6 in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x636056f0, _cmd=0x63605840,
data=0x5e34ffd4, anOption=1, aFormat=0xcfbe4570, error=0xcfbe449c) at
NSPropertyList.m:2590
#6 0x632ff72e in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x636056f0, _cmd=0x6360d978, data=0x5e34ffd4, anOption=1,
aFormat=0xcfbe4570, anErrorString=0xcfbe456c) at NSPropertyList.m:2510
#7 0x6335ec21 in -[NSString propertyList] (self=0x5c538604, _cmd=0x635e5da0)
at NSString.m:5202
#8 0x6320d8e1 in -[NSDictionary initWithContentsOfFile:] (self=0x60576884,
_cmd=0x6361cae0, path=0x61423a84) at NSDictionary.m:620
#9 0x633b7b55 in -[NSUserDefaults readDefaults] (self=0x697a4244,
_cmd=0x6361c8c8) at NSUserDefaults.m:1707
#10 0x633b7fd1 in -[NSUserDefaults synchronize] (self=0x697a4244,
_cmd=0x6361cb00) at NSUserDefaults.m:1753
#11 0x633af5e1 in +[NSUserDefaults standardUserDefaults] (self=0x6361c7c0,
_cmd=0x1c004a10) at NSUserDefaults.m:667
#12 0x1c001409 in gnustep_base_user_main () at basic.m:12
#13 0x632f20d7 in main (argc=1, argv=0xcfbe4cf4, env=0xcfbe4cfc) at
NSProcessInfo.m:978
#14 0x1c0010a7 in ___start ()
#15 0x1c001022 in _start ()
Thread 1 (process 6630):
#0 0x66e4fd21 in strlen () from /usr/lib/libc.so.60.1
#1 0x66de11a1 in sscanf (str=0x6536bbd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x63572cc3 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x633cd91c in -[NSXMLParser _parseEntity:] (self=0x5c538364,
_cmd=0x63621020, result=0xcfbe428c) at NSXMLParser.m:1388
#3 0x633ceb15 in -[NSXMLParser parse] (self=0x5c538364, _cmd=0x63605c90) at
NSXMLParser.m:1679
#4 0x632f782b in -[GSXMLPListParser parse] (self=0x60576fc4, _cmd=0x63605c90)
at NSPropertyList.m:369
#5 0x632ffcb6 in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x636056f0, _cmd=0x63605840,
data=0x5e34ffd4, anOption=1, aFormat=0xcfbe4570, error=0xcfbe449c) at
NSPropertyList.m:2590
#6 0x632ff72e in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x636056f0, _cmd=0x6360d978, data=0x5e34ffd4, anOption=1,
aFormat=0xcfbe4570, anErrorString=0xcfbe456c) at NSPropertyList.m:2510
#7 0x6335ec21 in -[NSString propertyList] (self=0x5c538604, _cmd=0x635e5da0)
at NSString.m:5202
#8 0x6320d8e1 in -[NSDictionary initWithContentsOfFile:] (self=0x60576884,
_cmd=0x6361cae0, path=0x61423a84) at NSDictionary.m:620
#9 0x633b7b55 in -[NSUserDefaults readDefaults] (self=0x697a4244,
_cmd=0x6361c8c8) at NSUserDefaults.m:1707
#10 0x633b7fd1 in -[NSUserDefaults synchronize] (self=0x697a4244,
_cmd=0x6361cb00) at NSUserDefaults.m:1753
#11 0x633af5e1 in +[NSUserDefaults standardUserDefaults] (self=0x6361c7c0,
_cmd=0x1c004a10) at NSUserDefaults.m:667
#12 0x1c001409 in gnustep_base_user_main () at basic.m:12
#13 0x632f20d7 in main (argc=1, argv=0xcfbe4cf4, env=0xcfbe4cfc) at
NSProcessInfo.m:978
#14 0x1c0010a7 in ___start ()
#15 0x1c001022 in _start ()
============================================================
with CLANG and libobjc from -base:
$ gdb -c base/NSKeyedArchiver/general.core base/NSKeyedArchiver/obj/general
#0 0x6381bd21 in strlen () from /usr/lib/libc.so.60.1
(gdb) thread apply all bt
Thread 2 (process 21872, thread 0x61364400):
#0 0x6381bd21 in strlen () from /usr/lib/libc.so.60.1
#1 0x637ad1a1 in sscanf (str=0x696d8bd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x63482cc3 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x632dd91c in -[NSXMLParser _parseEntity:] (self=0x696f14c4,
_cmd=0x63531020, result=0xcfbbd09c) at NSXMLParser.m:1388
#3 0x632deb15 in -[NSXMLParser parse] (self=0x696f14c4, _cmd=0x63515c90) at
NSXMLParser.m:1679
#4 0x6320782b in -[GSXMLPListParser parse] (self=0x5f81a9c4, _cmd=0x63515c90)
at NSPropertyList.m:369
#5 0x6320fcb6 in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x635156f0, _cmd=0x63515840,
data=0x5da07f44, anOption=1, aFormat=0xcfbbd380, error=0xcfbbd2ac) at
NSPropertyList.m:2590
#6 0x6320f72e in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x635156f0, _cmd=0x6351d978, data=0x5da07f44, anOption=1,
aFormat=0xcfbbd380, anErrorString=0xcfbbd37c) at NSPropertyList.m:2510
#7 0x6326ec21 in -[NSString propertyList] (self=0x696f17e4, _cmd=0x634f5da0)
at NSString.m:5202
#8 0x6311d8e1 in -[NSDictionary initWithContentsOfFile:] (self=0x5f81a484,
_cmd=0x6352cae0, path=0x69bcde84) at NSDictionary.m:620
#9 0x632c7b55 in -[NSUserDefaults readDefaults] (self=0x676145c4,
_cmd=0x6352c8c8) at NSUserDefaults.m:1707
#10 0x632c7fd1 in -[NSUserDefaults synchronize] (self=0x676145c4,
_cmd=0x6352cb00) at NSUserDefaults.m:1753
#11 0x632bf5e1 in +[NSUserDefaults standardUserDefaults] (self=0x6352c7c0,
_cmd=0x63515928) at NSUserDefaults.m:667
#12 0x6320f15e in +[NSPropertyListSerialization
dataWithPropertyList:format:options:error:] (self=0x635156f0, _cmd=0x63515848,
aPropertyList=0x67614884, aFormat=100, anOption=0, error=0xcfbbda40) at
NSPropertyList.m:2379
#13 0x6320f03c in +[NSPropertyListSerialization
dataFromPropertyList:format:errorDescription:] (self=0x635156f0,
_cmd=0x63500ee8, aPropertyList=0x67614884, aFormat=100,
anErrorString=0xcfbbdb0c) at NSPropertyList.m:2360
#14 0x63169efb in -[NSKeyedArchiver finishEncoding] (self=0x6446adc4,
_cmd=0x1c0065f8) at NSKeyedArchiver.m:833
#15 0x1c001b2d in gnustep_base_user_main () at general.m:34
#16 0x632020d7 in main (argc=1, argv=0xcfbbe2dc, env=0xcfbbe2e4) at
NSProcessInfo.m:978
#17 0x1c001527 in ___start ()
#18 0x1c0014a2 in _start ()
Thread 1 (process 21872):
#0 0x6381bd21 in strlen () from /usr/lib/libc.so.60.1
#1 0x637ad1a1 in sscanf (str=0x696d8bd3 "x001B;</key>\n\t <string>22 259 68
202 0 0 1024 768 </string>\n\t</dict>\n\t<key>NSWindow Frame
LoadedFiles</key>\n\t<string>-1 291 222 355 0 0 1024 768
</string>\n\t<key>NSWindow Frame LogPanel</key>\n\t<st"...,
fmt=0x63482cc3 "x%x;") at /usr/src/lib/libc/stdio/sscanf.c:59
#2 0x632dd91c in -[NSXMLParser _parseEntity:] (self=0x696f14c4,
_cmd=0x63531020, result=0xcfbbd09c) at NSXMLParser.m:1388
#3 0x632deb15 in -[NSXMLParser parse] (self=0x696f14c4, _cmd=0x63515c90) at
NSXMLParser.m:1679
#4 0x6320782b in -[GSXMLPListParser parse] (self=0x5f81a9c4, _cmd=0x63515c90)
at NSPropertyList.m:369
#5 0x6320fcb6 in +[NSPropertyListSerialization
propertyListWithData:options:format:error:] (self=0x635156f0, _cmd=0x63515840,
data=0x5da07f44, anOption=1, aFormat=0xcfbbd380, error=0xcfbbd2ac) at
NSPropertyList.m:2590
#6 0x6320f72e in +[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:]
(self=0x635156f0, _cmd=0x6351d978, data=0x5da07f44, anOption=1,
aFormat=0xcfbbd380, anErrorString=0xcfbbd37c) at NSPropertyList.m:2510
#7 0x6326ec21 in -[NSString propertyList] (self=0x696f17e4, _cmd=0x634f5da0)
at NSString.m:5202
#8 0x6311d8e1 in -[NSDictionary initWithContentsOfFile:] (self=0x5f81a484,
_cmd=0x6352cae0, path=0x69bcde84) at NSDictionary.m:620
#9 0x632c7b55 in -[NSUserDefaults readDefaults] (self=0x676145c4,
_cmd=0x6352c8c8) at NSUserDefaults.m:1707
#10 0x632c7fd1 in -[NSUserDefaults synchronize] (self=0x676145c4,
_cmd=0x6352cb00) at NSUserDefaults.m:1753
#11 0x632bf5e1 in +[NSUserDefaults standardUserDefaults] (self=0x6352c7c0,
_cmd=0x63515928) at NSUserDefaults.m:667
#12 0x6320f15e in +[NSPropertyListSerialization
dataWithPropertyList:format:options:error:] (self=0x635156f0, _cmd=0x63515848,
aPropertyList=0x67614884, aFormat=100, anOption=0, error=0xcfbbda40) at
NSPropertyList.m:2379
#13 0x6320f03c in +[NSPropertyListSerialization
dataFromPropertyList:format:errorDescription:] (self=0x635156f0,
_cmd=0x63500ee8, aPropertyList=0x67614884, aFormat=100,
anErrorString=0xcfbbdb0c) at NSPropertyList.m:2360
#14 0x63169efb in -[NSKeyedArchiver finishEncoding] (self=0x6446adc4,
_cmd=0x1c0065f8) at NSKeyedArchiver.m:833
#15 0x1c001b2d in gnustep_base_user_main () at general.m:34
#16 0x632020d7 in main (argc=1, argv=0xcfbbe2dc, env=0xcfbbe2e4) at
NSProcessInfo.m:978
#17 0x1c001527 in ___start ()
#18 0x1c0014a2 in _start ()
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep