On 23/12/2008, at 10:32 AM, Rob Keniger wrote:

I've tried using the MallocStackLoggingNoCompact environment variable with malloc_history but my results have been inconclusive at best.

What is the best way to go about looking for this type of bug with Garbage Collection enabled?

Do you have backtraces from the point of the crash?

I haven't got any that I can post right now, but they are always different and very rarely contain my code. I will try and make it crash now and report back!


Here's one from a crash I just had:

[Switching to process 18032 thread 0x2e03]
(gdb) bt
#0  0x940a11c6 in mach_msg_trap ()
#1  0x940a89bc in mach_msg ()
#2  0x969260ae in CFRunLoopRunSpecific ()
#3  0x96926cd8 in CFRunLoopRunInMode ()
#4  0x94a8a2c0 in RunCurrentEventLoopInMode ()
#5  0x94a8a0d9 in ReceiveNextEventCommon ()
#6  0x94a89f4d in BlockUntilNextEventMatchingListInMode ()
#7  0x91de1d7d in _DPSNextEvent ()
#8 0x91de1630 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#9  0x91dda66b in -[NSApplication run] ()
#10 0x91da78a4 in NSApplicationMain ()
#11 0x0000871f in main (argc=1, argv=0xbffff658) at main.m:41
(gdb) continue
[Switching to process 18032 thread 0x2e03]
Program received signal:  “EXC_BAD_ACCESS”.
[Switching to process 18032 thread 0x2e03]
(gdb) bt
#0  0x96928cd0 in __CFTypeCollectionRelease ()
#1  0x968b5ad6 in CFArrayApplyFunction ()
#2  0x968b93fc in __CFArrayDeallocate ()
#3  0x90798f31 in -[NSCFArray finalize] ()
#4  0x92ba86b6 in finalizeOneObject ()
#5  0x92e9bdab in foreach_block_do ()
#6  0x92ba887b in batchFinalize ()
#7  0x92ba8b42 in batchFinalizeOnTwoThreads ()
#8  0x92e9cf0e in auto_collect_internal ()
#9  0x92e9db8f in auto_collection_thread ()
#10 0x940d2095 in _pthread_start ()
#11 0x940d1f52 in thread_start ()
(gdb)



--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to