Mailing Lists: Apple Mailing Lists

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

Static initialization crashing with bad instruction



Title: Static initialization crashing with bad instruction

We are trying to move a Netscape-style plug-in to a universal binary. When the plug-in is loaded, it crashes while running the static initializers. This behavior occurs only on the i386 architecture -- the ppc works fine.

The specific error is a "bad instruction" which seems to be called by a branch into uninitialized memory. We tracked one instance down, replaced it by a singleton, and the problem moved to another static initialization.

Is this a known bug with a known workaround (e.g., a compiler switch)? (I did some searching before I posted this and didn't find anything that seemed pertinent.)

Thanks,
Fred

P.S. Is this question better posted on a different list? If so, suggestions would be appreciated.

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

This email sent to 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.