Re: Crash in heartbeat thread while progress indicator showing
Re: Crash in heartbeat thread while progress indicator showing
- Subject: Re: Crash in heartbeat thread while progress indicator showing
- From: Jerry Krinock <email@hidden>
- Date: Thu, 09 Aug 2012 12:11:28 -0700
On 2012 Aug 09, at 11:40, Ken Thomases <email@hidden> wrote:
> On Aug 9, 2012, at 11:41 AM, Jerry Krinock wrote:
>
>> A user reported a non-reproducible crash in the heartbeat thread while my app was showing an alert window with a progress indicator. In list archives I've read that this may be due to (a) a memory management bug in my code or (b) a bug in Mac OS X. Both of these seem unlikely since I've been shipping that code for 5 years, and the bug in Mac OS X was back in 2004.
>>
>> Any ideas?
>>
>> Thread 3 Crashed:: com.apple.appkit-heartbeat
>> 0 com.apple.CoreFoundation 0x94b28dfe CFStringCreateWithFormat + 46
>> 1 com.apple.CoreFoundation 0x94b63b09 __CFAllocateObject2 + 89
>> 2 com.apple.CoreFoundation 0x94c463e9 +[__NSArrayM __new:::::] + 73
>> 3 com.apple.CoreFoundation 0x94b63a06 -[__NSPlaceholderArray initWithCapacity:] + 134
>> 4 com.apple.CoreFoundation 0x94b29286 CFArrayCreateMutable + 198
>> 5 com.apple.AppKit 0x91c2b0bb -[NSFocusState addSpecialGStateView:] + 57
>
> First, it would be helpful if you were to indicate which version of Mac OS X this was on. Actually, there's a bunch of information in the crash log header that would be useful.
Thank you, Ken. Here's moreā¦
Code Type: X86 (Native)
Parent Process: launchd [305]
User ID: 501
Date/Time: 2012-08-09 17:13:50.369 +0200
OS Version: Mac OS X 10.8 (12A269)
Report Version: 10
Interval Since Last Report: 333341 sec
Crashes Since Last Report: 9
Per-App Crashes Since Last Report: 4
Crashed Thread: 3 com.apple.appkit-heartbeat
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000014
VM Regions Near 0x14:
--> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Applications/BookMacster.app/Contents/MacOS/BookMacster
__TEXT 0000000000001000-0000000000002000 [ 4K] r-x/rwx SM=COW /Applications/BookMacster.app/Contents/MacOS/BookMacster
> That said, looking at the disassembly of __CFAllocateObject2(), it seems to only call CFStringCreateWithFormat() with the following format string:
>
> *** NSAllocateObject(): attempt to allocate object of class '%s' failed
Great work!
> No doubt CFStringCreateWithFormat() then failed because it, too, could not allocate memory. I would say you've either smashed your heap so badly that malloc can't work or you really have exhausted your address space.
Oh, boy. Well, I'll poke around some. I'm currently working through warnings which appeared after migrating this project to Xcode 4. Maybe I'll find a "clanger".
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden