Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
- Subject: Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
- From: "John C. Daub" <email@hidden>
- Date: Fri, 03 Feb 2006 10:25:03 -0600
- Thread-topic: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
on 1/31/06 5:00 PM, Steve Checkoway at email@hidden wrote:
> Since you're crashing in a static dtor, my guess would be that you
> have code that depends on the order of destruction.
As a final comment on this...
I did find 3 static objects in the QpThread code, two of which depended upon
the third. I converted the static objects into pointers and allocated them
dynamically at the first possible instance (and then just left them around
for the duration). That did cause my crash to no longer reproduce. So, thank
you Mr. Checkoway for heading me down this path. :-)
Does this truly fix the problem? I can't say for sure. It's still a mystery
to me why the objects were being deallocated in the first place, and then
why this "premature" static destruction phase was only happening in stripped
versions of the binary under Mac OS X 10.3.9. But even if removing the
statics didn't fix the problem, it still was a problem that needed fixing.
So, I'm able to get going and things are generally better. I tried
contacting the QpThread author about the matter, but all email and web
addresses I could find aren't working. :-(
--
John C. Daub }:-)>=
<mailto:email@hidden> <http://www.hsoi.com/>
"If you don't trust the people, you make them untrustworthy." -- Tao Te
Ching #17
_______________________________________________
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