|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Hello. I have an application that works on 10.4.4 but crashes on 10.3.9, and then it's only our deployment build that crashes (the debug build works fine, or so it seems). I've been poking at this problem for a while and am at a loss, so I'm posting here in hopes someone might be able to offer guidance, ideas, suggestions of what to try next, or perhaps a flat out solution. :-) Our application is a Cocoa-based app, but does mix in a lot of Carbon and C++. We have custom frameworks for code that we share between the app and the app's plugins. All we have to do is launch the deployment version of the app then quit the app. When we do, we get a crash with a backtrace that looks like this: Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand. 0xa0a35c98 in distantPastInterval () (gdb) bt #0 0xa0a35c98 in distantPastInterval () #1 0xc08cc934 in qpthr::QpCond::~QpCond() () #2 0xc0822fd4 in __static_initialization_and_destruction_0(int, int) () #3 0xc08230c8 in _GLOBAL__D__ZN5qpthr7QpTimer14TIMERJOB_MAGICE () #4 0x8fe17ce4 in __dyld__dyld_mod_term_funcs () #5 0x9002ce58 in exit () #6 0x92f5decc in -[NSApplication terminate:] () #7 0x92f276fc in -[NSApplication sendAction:to:from:] () #8 0x92f5cf48 in -[NSMenu performActionForItemAtIndex:] () #9 0x92fa17f4 in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] () #10 0x92ede89c in _NSHandleCarbonMenuEvent () #11 0x92e825fc in _DPSNextEvent () #12 0x92e98d2c in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #13 0x92ead0ac in -[NSApplication run] () #14 0x92f697bc in NSApplicationMain () #15 0x0000dc74 in ?? () #16 0x00008fb4 in ?? () #17 0x00008e5c in ?? () The "qpthr" stuff is the publicly available C++ QpThread library, which is compiled into one of our custom frameworks. Interesting to note that QpTimer::TIMERJOB_MAGIC is a global variable (well, it's a static data member of the QpTimer class, and it's an unsigned int); why would an int be in a stack crawl, unless something's really hosed here?. I don't think this crash has anything to do specifically with QpThread, just QpThread happens to be the thing it's choking on... I could be wrong tho. We are building with Xcode 2.2.1, the 10.4u SDK, gcc 4, and have a deployment target of 10.3. The previous version of our product (I believe built with Xcode 1.5) never exhibited this problem. Since the crashing happens with the deployment build and not the debug build, I started changing build settings one by one slowly changing the deployment settings to match the debug settings. I started with compiler optimizations and instruction scheduling, and tho at one point turning either of those off didn't reproduce the problem, it didn't stick... it managed to still reproduce. Eventually I discovered if I turned off "deployment post-processing" that the deployment build wouldn't crash no matter how I tried. Why would this affect anything? And then, why would this only affect things under 10.3.9 and not 10.4.4? And just what is "distantPastInterval"? Seeking information.... thanx for any help you can give. -- John C. Daub }:-)>= <mailto:email@hidden> <http://www.hsoi.com/> Peace on the Earth, goodwill to men. _______________________________________________ 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
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.