next one
Posted: Wed Feb 08, 2006 12:16 pm
and last one for this session:
after cpu load resumes to normal:
(gdb) cont
Continuing.
Program received signal SIGINT, Interrupt.
0x4095cb66 in poll () from /lib/i686/libc.so.6
(gdb) list
55 [controller applicationDidFinishLaunching: nil];
56 #else
57 return NSApplicationMain(argc, (const char *)argv);
58 #endif
59
60 // never reached
61 return 0;
62 }
63
64 /*
(gdb) bt
#0 0x4095cb66 in poll () from /lib/i686/libc.so.6
#1 0x40723429 in -[GSRunLoopCtxt pollUntil:within:] (self=0x83235b8, _cmd=0x4082bfe8, milliseconds=4, contexts=0x831fd78) at GSRunLoopCtxt.m:342
#2 0x4069a430 in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x831f3e0, _cmd=0x4082c000, mode=0x4082c0d8, limit_date=0xa368728) at NSRunLoop.m:1062
#3 0x4069a7ce in -[NSRunLoop runMode:beforeDate:] (self=0x831f3e0, _cmd=0x4082c010, mode=0x4082c0d8, date=0x8323e50) at NSRunLoop.m:1134
#4 0x4069a9f8 in -[NSRunLoop runUntilDate:] (self=0x831f3e0, _cmd=0x4082c008, date=0x8323e50) at NSRunLoop.m:1165
#5 0x4069a963 in -[NSRunLoop run] (self=0x831f3e0, _cmd=0x815fed8) at NSRunLoop.m:1148
#6 0x0805bb73 in -[GameController applicationDidFinishLaunching:] (self=0x831e420, _cmd=0x8162af0, notification=0x0) at GameController.m:388
#7 0x0806ce0c in main (argc=1, argv=0xbfffec84) at main.m:55
next cpu load rising to 100% (but a lot time passed without problems):
(gdb) bt
#0 0x405ce779 in -[GSDictionary objectForKey:] (self=0x9f1e798, _cmd=0x8175240, aKey=0x8175734) at GSIMap.h:315
#1 0x080ed8c5 in -[StationEntity dockingInstructionsForShip:] (self=0x55728010, _cmd=0x8170a00, ship=0x55ff8010) at StationEntity.m:357
#2 0x080cbd7e in -[ShipEntity(AI) requestDockingCoordinates] (self=0x55ff8010, _cmd=0x823c460) at ShipEntity (AI).m:1799
#3 0x40677bbd in -[NSObject performSelector:] (self=0x55ff8010, _cmd=0x815d820, aSelector=0x823c460) at NSObject.m:1756
#4 0x08051461 in -[AI takeAction:] (self=0x9a516e0, _cmd=0x815d7e8, action=0x8a2e078) at AI.m:307
#5 0x08051168 in -[AI reactToMessage:] (self=0x9a516e0, _cmd=0x815d7c0, message=0x815d92c) at AI.m:249
#6 0x08050f2f in -[AI setState:] (self=0x9a516e0, _cmd=0x815d7d8, stateName=0xe9cf200) at AI.m:209
#7 0x0805155c in -[AI takeAction:] (self=0x9a516e0, _cmd=0x815d7e8, action=0x8a2cfb0) at AI.m:300
#8 0x08051168 in -[AI reactToMessage:] (self=0x9a516e0, _cmd=0x815d7c0, message=0x81757e8) at AI.m:249
#9 0x080516ed in -[AI think] (self=0x9a516e0, _cmd=0x81781e8) at AI.m:344
#10 0x0810db08 in -[Universe update:] (self=0x8549e10, _cmd=0x815ff00, delta_t=0.010002990296925418) at Universe.m:5087
#11 0x0805bd12 in -[GameController doStuff:] (self=0x831e420, _cmd=0x81634e8, sender=0x0) at GameController.m:444
#12 0x0806ebe6 in -[MyOpenGLView pollControls:] (self=0x82e4810, _cmd=0x815fea8, sender=0x98787d0) at MyOpenGLView.m:976
#13 0x40677cd0 in -[NSObject performSelector:withObject:] (self=0x82e4810, _cmd=0x40831458, aSelector=0x815fea8, anObject=0x98787d0) at NSObject.m:1782
#14 0x406c1239 in -[NSTimer fire] (self=0x98787d0, _cmd=0x4082bf80) at NSTimer.m:218
#15 0x406995ac in -[NSRunLoop limitDateForMode:] (self=0x831f3e0, _cmd=0x4082bee0, mode=0x4082c0d8) at NSRunLoop.m:815
#16 0x4069a75f in -[NSRunLoop runMode:beforeDate:] (self=0x831f3e0, _cmd=0x4082c010, mode=0x4082c0d8, date=0x8323e50) at NSRunLoop.m:1107
#17 0x4069a9f8 in -[NSRunLoop runUntilDate:] (self=0x831f3e0, _cmd=0x4082c008, date=0x8323e50) at NSRunLoop.m:1165
#18 0x4069a963 in -[NSRunLoop run] (self=0x831f3e0, _cmd=0x815fed8) at NSRunLoop.m:1148
#19 0x0805bb73 in -[GameController applicationDidFinishLaunching:] (self=0x831e420, _cmd=0x8162af0, notification=0x0) at GameController.m:388
#20 0x0806ce0c in main (argc=1, argv=0xbfffec84) at main.m:55
(gdb) list
55 [controller applicationDidFinishLaunching: nil];
56 #else
57 return NSApplicationMain(argc, (const char *)argv);
58 #endif
59
60 // never reached
61 return 0;
62 }
63
64 /*
(gdb) cont
Continuing.
Program received signal SIGINT, Interrupt.
0x408fd057 in malloc () from /lib/i686/libc.so.6
(gdb) bt
#0 0x408fd057 in malloc () from /lib/i686/libc.so.6
/usr/GNUstep/System/Tools/debugapp: line 235: 9762 Speicherzugriffsfehler "$GDB" $args "$file_appname" "$@"
end of the story
so i don't know if this helps a bit more, it still seems to be in the underlying system a bit
what i saw and found disturbing though, was the use of malloc together with the obj-c memory management (ofwhich i know nothing)
is it maybe possible, that both don't mix so well, so there has to be another allocation method used in interfacing c code?
after cpu load resumes to normal:
(gdb) cont
Continuing.
Program received signal SIGINT, Interrupt.
0x4095cb66 in poll () from /lib/i686/libc.so.6
(gdb) list
55 [controller applicationDidFinishLaunching: nil];
56 #else
57 return NSApplicationMain(argc, (const char *)argv);
58 #endif
59
60 // never reached
61 return 0;
62 }
63
64 /*
(gdb) bt
#0 0x4095cb66 in poll () from /lib/i686/libc.so.6
#1 0x40723429 in -[GSRunLoopCtxt pollUntil:within:] (self=0x83235b8, _cmd=0x4082bfe8, milliseconds=4, contexts=0x831fd78) at GSRunLoopCtxt.m:342
#2 0x4069a430 in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x831f3e0, _cmd=0x4082c000, mode=0x4082c0d8, limit_date=0xa368728) at NSRunLoop.m:1062
#3 0x4069a7ce in -[NSRunLoop runMode:beforeDate:] (self=0x831f3e0, _cmd=0x4082c010, mode=0x4082c0d8, date=0x8323e50) at NSRunLoop.m:1134
#4 0x4069a9f8 in -[NSRunLoop runUntilDate:] (self=0x831f3e0, _cmd=0x4082c008, date=0x8323e50) at NSRunLoop.m:1165
#5 0x4069a963 in -[NSRunLoop run] (self=0x831f3e0, _cmd=0x815fed8) at NSRunLoop.m:1148
#6 0x0805bb73 in -[GameController applicationDidFinishLaunching:] (self=0x831e420, _cmd=0x8162af0, notification=0x0) at GameController.m:388
#7 0x0806ce0c in main (argc=1, argv=0xbfffec84) at main.m:55
next cpu load rising to 100% (but a lot time passed without problems):
(gdb) bt
#0 0x405ce779 in -[GSDictionary objectForKey:] (self=0x9f1e798, _cmd=0x8175240, aKey=0x8175734) at GSIMap.h:315
#1 0x080ed8c5 in -[StationEntity dockingInstructionsForShip:] (self=0x55728010, _cmd=0x8170a00, ship=0x55ff8010) at StationEntity.m:357
#2 0x080cbd7e in -[ShipEntity(AI) requestDockingCoordinates] (self=0x55ff8010, _cmd=0x823c460) at ShipEntity (AI).m:1799
#3 0x40677bbd in -[NSObject performSelector:] (self=0x55ff8010, _cmd=0x815d820, aSelector=0x823c460) at NSObject.m:1756
#4 0x08051461 in -[AI takeAction:] (self=0x9a516e0, _cmd=0x815d7e8, action=0x8a2e078) at AI.m:307
#5 0x08051168 in -[AI reactToMessage:] (self=0x9a516e0, _cmd=0x815d7c0, message=0x815d92c) at AI.m:249
#6 0x08050f2f in -[AI setState:] (self=0x9a516e0, _cmd=0x815d7d8, stateName=0xe9cf200) at AI.m:209
#7 0x0805155c in -[AI takeAction:] (self=0x9a516e0, _cmd=0x815d7e8, action=0x8a2cfb0) at AI.m:300
#8 0x08051168 in -[AI reactToMessage:] (self=0x9a516e0, _cmd=0x815d7c0, message=0x81757e8) at AI.m:249
#9 0x080516ed in -[AI think] (self=0x9a516e0, _cmd=0x81781e8) at AI.m:344
#10 0x0810db08 in -[Universe update:] (self=0x8549e10, _cmd=0x815ff00, delta_t=0.010002990296925418) at Universe.m:5087
#11 0x0805bd12 in -[GameController doStuff:] (self=0x831e420, _cmd=0x81634e8, sender=0x0) at GameController.m:444
#12 0x0806ebe6 in -[MyOpenGLView pollControls:] (self=0x82e4810, _cmd=0x815fea8, sender=0x98787d0) at MyOpenGLView.m:976
#13 0x40677cd0 in -[NSObject performSelector:withObject:] (self=0x82e4810, _cmd=0x40831458, aSelector=0x815fea8, anObject=0x98787d0) at NSObject.m:1782
#14 0x406c1239 in -[NSTimer fire] (self=0x98787d0, _cmd=0x4082bf80) at NSTimer.m:218
#15 0x406995ac in -[NSRunLoop limitDateForMode:] (self=0x831f3e0, _cmd=0x4082bee0, mode=0x4082c0d8) at NSRunLoop.m:815
#16 0x4069a75f in -[NSRunLoop runMode:beforeDate:] (self=0x831f3e0, _cmd=0x4082c010, mode=0x4082c0d8, date=0x8323e50) at NSRunLoop.m:1107
#17 0x4069a9f8 in -[NSRunLoop runUntilDate:] (self=0x831f3e0, _cmd=0x4082c008, date=0x8323e50) at NSRunLoop.m:1165
#18 0x4069a963 in -[NSRunLoop run] (self=0x831f3e0, _cmd=0x815fed8) at NSRunLoop.m:1148
#19 0x0805bb73 in -[GameController applicationDidFinishLaunching:] (self=0x831e420, _cmd=0x8162af0, notification=0x0) at GameController.m:388
#20 0x0806ce0c in main (argc=1, argv=0xbfffec84) at main.m:55
(gdb) list
55 [controller applicationDidFinishLaunching: nil];
56 #else
57 return NSApplicationMain(argc, (const char *)argv);
58 #endif
59
60 // never reached
61 return 0;
62 }
63
64 /*
(gdb) cont
Continuing.
Program received signal SIGINT, Interrupt.
0x408fd057 in malloc () from /lib/i686/libc.so.6
(gdb) bt
#0 0x408fd057 in malloc () from /lib/i686/libc.so.6
/usr/GNUstep/System/Tools/debugapp: line 235: 9762 Speicherzugriffsfehler "$GDB" $args "$file_appname" "$@"
end of the story
so i don't know if this helps a bit more, it still seems to be in the underlying system a bit
what i saw and found disturbing though, was the use of malloc together with the obj-c memory management (ofwhich i know nothing)
is it maybe possible, that both don't mix so well, so there has to be another allocation method used in interfacing c code?