Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFM to Mach-O Conversion Crash in CodeWarrior




On Oct 26, 2005, at 8:19 AM, Mark D. Gerl wrote:

On Oct 26, 2005, at 1:26 AM, Eric Schlegel wrote:
Posting a backtrace of the crash would probably be useful in diagnosis...

Sorry... I get more-or-less the same backtrack from both my PowerBook and my G5 (though, the G5 crashes in only 18 steps)...


(parts abbreviated, and addresses removed)

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 <<00000000>> 0xfffeff20 objc_msgSend_rtp + 32
1 com..CF CFURLCopyAbsoluteURL + 148
2 com..CF _CFBundleCopyExecutableName + 256
3 com..CF _CFBundleCopyResourceForkURLMayBeLocal + 52
4 com..CF _CFBundleCopyBundleDevelopmentRegionFromVersResource + 68
5 com..CF CFBundleGetDevelopmentRegion + 136
6 com..CF _CFBundleGetLanguageSearchList + 72
7 com..CF CFBundleCopyResourceURL + 44
8 com..CF CFBundleGetLocalInfoDictionary + 64
9 com..CF CFBundleGetValueForInfoDictionaryKey + 44
10 com..HITB GetCurrentAppNameAsCFString + 72
11 com..HITB SystemAppMenuHandler(CallRef*, EventRef*, void*) + 816
12 com..HITB DispatchEventToHandlers(TargetRec*, EventRef*, CallRec*)+692
13 com..HITB SendEventToEventTargetInternal(EventRef*, TargetRef*, CallRec*)+372
14 com..HITB SendEventToEventTargetWithOptions + 40
15 com..HITB PopulateMenu(MenuData*, unsigned long) + 256
16 com..HITB FindItemByCommandInMenu(MData*, ulong, ulong*, MData**, ushort*)+56
17 com..HITB FindItemByCommand(MData*, ulong, ulong*, MData**, ushort*) + 64
18 com..HITB FindItemByCommandInMenu(MData*, ulong, ulong*, MData**, ushort*)+348
19 com..HITB FindItemByCommand(MData*, ulong, ulong*, MData**, ushort*) + 64
20 com..HITB GetIndMenuItemWithCommandID(MData*, ulong, ulong*, MData**, ushort*)+124
21 com..HITB EnableMenuCommand + 64


From looking at the back trace, I thought that something in our package may be messed up, but upon comparing it to our working CFM package, I cannot find anything different that would be causing this problem.

Well, my first guess would be that you have over-released some object that was pulled from the app's Info.plist dictionary (via CFBundleGet<something>), and that this is causing CF to crash later when it tries to access an object that should be valid but is actually dead.


You might try using the CFZombieLevel environment variable (search developer.apple.com for more info) to disable deallocation of released objects, see if that makes the crash go away, and then you might be able to track down the object being overreleased.

-eric


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CFM to Mach-O Conversion Crash in CodeWarrior (From: "Mark D. Gerl" <email@hidden>)
 >Re: CFM to Mach-O Conversion Crash in CodeWarrior (From: "Mark D. Gerl" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.