OS X 10.7 (Lion) breaks DMD-compiled executables due to ASLR (?)
Jacob Carlborg
doob at me.com
Mon Jul 25 12:00:48 PDT 2011
On 2011-07-25 20:49, Walter Bright wrote:
> On 7/25/2011 5:57 AM, Jacob Carlborg wrote:
>> I created a patch back then but it was never applied. The patch
>> removed those
>> "hacks" and uses "getsectdatafromheader" instead, but it never fixed
>> the "Hello
>> world fails on OSX!" issue completely.
>>
>> http://d.puremagic.com/issues/show_bug.cgi?id=4854
>
>
> Why didn't it work?
As you can see in my last post in that issue I didn't get the original
error, which was in "__tls_get_addr". But instead I got a different
error in "strncmp":
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x97655133 in strncmp ()
(gdb) bt
#0 0x97655133 in strncmp ()
#1 0x0000101c in ?? ()
Previous frame inner to this frame (gdb could not unwind past this frame)
(gdb)
Either I messed something up or the solution we thought of couldn't fix
the problem. In either case it might good to apply anyway, it woks on
Snow Leopard.
I guess now that we have github it should be pull request.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list