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: Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes




> Hello,
>
> Our application must integrate some private dynamic library, let's
> call it A (that may load other private dynamic libraries, let's call
> them B1, B2, ..., Bn) with the stack alligned for 4 bytes (boundary
> 2), not the Mac OS X standard (16 bytes). Those private dynamic
> libraries (A, B1, B2, ..., Bn) use libSystem only, apparently.

You can stop right there. The stack alignment is a requirement if you
call into libSystem. The libSystem code is vectorized, which means
its going to do Altivec register spills (PPC) or SSE register spills
(Intel), and you'll take processor exceptions if it is not aligned.

This is discussed in detail at .

-- Terry
Hello,
 I have the same problem when restoring system image (Leopard 10.5.3). If I run the script attached then the problem goes away but this script doesn't fix your problem!

Attachment: fix_prebinding.sh.zip
Description: 305165815-fix_prebinding.sh.zip

 _______________________________________________
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.