Re: Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
Re: Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
- Subject: Re: Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
- From: Cristescu Alexandru <email@hidden>
- Date: Tue, 4 Nov 2008 01:26:14 -0800 (PST)
> 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:
This email sent to email@hidden