This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: "closures" not working on OS X 10.8 (Mountain Lion)?
- From: Andrew Haley <aph at redhat dot com>
- To: Nathan Rajlich <nathan at tootallnate dot net>
- Cc: libffi-discuss <libffi-discuss at sourceware dot org>
- Date: Tue, 14 Aug 2012 15:40:11 +0100
- Subject: Re: "closures" not working on OS X 10.8 (Mountain Lion)?
- References: <CAN5MXofeRKBOLQDU=WQujhkf9EyvgV2NP4LfEAgdHwqkGyCu=w@mail.gmail.com>
On 08/13/2012 07:28 PM, Nathan Rajlich wrote:
> It seems to me that closures are no longer working on OS X v10.8
> (a.k.a. Mountain Lion). I first noticed this when the node-ffi test
> suite started failing with a "Bus Error", so just now I ran a simple
> closure example from the internet and encounter the same error when I
> try to run that. Note that this is using the libffi v3.0.11 tag. My
> test case and shell session are outlined in this gist here:
> https://gist.github.com/3342783.
>
> I don't personally know what's going on here, but am hoping somebody
> on this list will. I can provide any more additional information
> necessary. Cheers and thanks in advance!
This is probably because of heap execute protection. Unfortunately I
don't know how it works on OS X: you need an Apple export.
Andrew.