• 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: Crash reporter starting stack trace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash reporter starting stack trace


  • Subject: Re: Crash reporter starting stack trace
  • From: Terry Lambert <email@hidden>
  • Date: Tue, 6 Oct 2009 14:56:48 -0700

On Oct 6, 2009, at 2:12 PM, Dave Keck wrote:
PS: It works for your main app only because you have not enabled ASLR for

I can't seem to find much info on ASLR on OS X. Is it synonymous with 'position-independent code,' and 'enabling ASLR' == the -pie ld flag?

Yes, -pie; you can only use it with code compiled as PIC, for obvious reasons. The ld man page has better detail.


If you run your code as 64 bit, you will also automatically get NX data and stacks; you can request this for i386, but too much commercial 32 bit code breaks if it's on by default there, so you have to specify it as a segment flag for a stack segment you provide, or you have to vm_protect() yourself. Whether it's enabled is controllable by the kern.nx sysctl value (1 is enabled, which is the default). This is controlled by the VM_PROT_EXECUTE bit on pmap creation. This has basically been supported since 10.4.4.

There's a lot of safety stuff there that people tend not to use. 8-).

-- 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: 
 >Crash reporter starting stack trace (From: Arnab Ganguly <email@hidden>)
 >Re: Crash reporter starting stack trace (From: Terry Lambert <email@hidden>)
 >Re: Crash reporter starting stack trace (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Crash reporter starting stack trace
  • Next by Date: Snow Leopard, filter scheme prevents shutdown
  • Previous by thread: Re: Crash reporter starting stack trace
  • Next by thread: Re: Crash reporter starting stack trace
  • Index(es):
    • Date
    • Thread