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: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?



That's kind of a scary tech note - but not as scary as the dyld sources ;)

The other factor to consider is that the 3 different dylib models that are
available all have different life cycle models. I wrote a series of test
programs that explored the loading/unloading cycle for dynamic libs,
frameworks and bundles and they have different unloading properties.


My suggestion is to hook the mach load/unload entry points and dump
some stuff to the console log to make sure your frameworks are loading
and unloading the way you expect them to.

Gen

On Feb 1, 2006, at 10:10 AM, Steve Checkoway wrote:

Jens Krüger wrote:
There was a change in the order terminators are called in 10.4. Before 10.4 global objects were destructed in the same order they were constructed (not good). In 10.4 objects are destructed in the reverse order they were constructed.
Not related to this problem, there is also a problem with initializers before 10.4. Basically, initializers are run too lazily before 10.4.
http://developer.apple.com/releasenotes/DeveloperTools/dyld.html

That is very good to know. Thank you for pointing that page out.

- Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/gk0001% 40digigami.com


This email sent to email@hidden


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

This email sent to email@hidden
References: 
 >Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4? (From: Jens Krüger <email@hidden>)
 >Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4? (From: Steve Checkoway <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.