• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Crash on parent app exit (CFBundleUnloadExecutable)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash on parent app exit (CFBundleUnloadExecutable)


  • Subject: Crash on parent app exit (CFBundleUnloadExecutable)
  • From: steve lu <email@hidden>
  • Date: Sun, 27 Aug 2006 20:58:32 -0400

Hi all,

I have developed this CFBundle that embeds "spidermonkey-JavaScript" into an application.

Three versions of the same plugin were developed.

(1) Mac ppc build that is compatible with OSX10.3.9 - 10.4.7
(2) Mac i386 that is compatible with OSX10.4.6-10.4.7.
(3) Windows build.

The development platform for each is listed below.
(1) On MacOSX 10.3.9 using XCode 1.5 against MacOSX10.2.8.sdk. (The JavaScript engine, a makefile project, was compiled against the same sdk.)
and the deployment platform is set to 10.3.
(2) On MacOSX 10.4.7 using XCode 2.4 against MacOSX10.4u.sdk.
(3) On Windows XP using VS


However, both (2) and (3) works flawlessly, only (1) exhibits this crash when the app unload the plugin.

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x083e9eb6

Thread 0 Crashed:
0 com.apple.CoreFoundation 0x901c1684 CFRelease + 0x24
1 com.apple.CoreFoundation 0x901c1880 CFRelease + 0x220
2 com.apple.CoreFoundation 0x901c8b18 CFDictionaryRemoveAllValues + 0x298
3 com.apple.CoreFoundation 0x901d6b20 __CFDictionaryDeallocate + 0x54
4 com.apple.CoreFoundation 0x901c1848 CFRelease + 0x1e8
5 com.apple.CoreFoundation 0x901c1848 CFRelease + 0x1e8
6 DBEngine 0x0fb054cc Draco::DBPlugIn::Unload() + 0x70
7 DBEngine 0x0fb04958 Draco::DBPlugIn::SetEnabled(bool) + 0xfc
8 DBEngine 0x0fb040cc Draco::DBPlugIn::ShutdownAll() + 0x30


This occurs in CFBundleUnloadExecutable.

Since the same code works perfectly on MacOSX10.4.7 built against 10.4u.sdk,
This led me to believe that this may be a problem in the 10.2.8.sdk on XCode 1.5?


Run "otool -L" against the plugin returns:

/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 122.0.0)
@executable_path/../Frameworks/FMWrapper.framework/Versions/A/FMWrapper (compatibility version 0.0.0, current version 0.0.0)
@executable_path/libmozjs.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/libnspr4.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/libplc4.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/libplds4.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/libxpcom.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/libxpcom_core.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 120.3.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0)


Is there something I am doing wrong?
or is this a known problem for a cross-development project on 10.3.9 using XCode 1.5 and against 10.2.8.sdk?


Thanks,
Steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Best approach for customized project templates?
  • Next by Date: Compiler Sometimes Not Handling Escape Sequences in C-Strings?
  • Previous by thread: Re: try/catch/throw/finally example?
  • Next by thread: Compiler Sometimes Not Handling Escape Sequences in C-Strings?
  • Index(es):
    • Date
    • Thread