• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes


  • Subject: Re: mstackrealign, update_prebinding and the misaligned_stack_error crashes
  • From: Terry Lambert <email@hidden>
  • Date: Thu, 30 Oct 2008 10:10:45 -0700



On Oct 30, 2008, at 4:06 AM, Sorin Negoita <email@hidden> wrote:

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 <http://developer.apple.com>.

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

References: 
 >mstackrealign, update_prebinding and the misaligned_stack_error crashes (From: "Sorin Negoita" <email@hidden>)

  • Prev by Date: mstackrealign, update_prebinding and the misaligned_stack_error crashes
  • Next by Date: Re: setuid for priv sockets?
  • Previous by thread: mstackrealign, update_prebinding and the misaligned_stack_error crashes
  • Next by thread: malloc errors / fragmentation?
  • Index(es):
    • Date
    • Thread