lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2


From: Ludovic Courtès
Subject: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2
Date: Tue, 23 Feb 2010 11:46:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi,

Todd Rovito <address@hidden> writes:

> This GDB was configured as "x86_64-apple-darwin"...Reading symbols for

[...]

> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x0000000100001100
> 0x0000000100001100 in codeBuffer ()

Could it be that Darwin clears the execution bit on data segments?

You could try allocating ‘codeBuffer’ like this:

  codeBuffer = mmap (NULL, 1024, PROT_EXEC | PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_ANONYMOUS, -1, -1);

Hope this helps,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]