[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] LuaJIT-2.0.0-beta7
- From: Peter Cawley <lua@...>
- Date: Thu, 5 May 2011 20:28:02 +0100
On Thu, May 5, 2011 at 9:24 PM, Shmuel Zeigerman <shmuz@013net.net> wrote:
> The following little program crashes on my machine (Windows; GCC 4.4.1).
> ...
> lua_Alloc f = lua_getallocf(L, &dummy);
> lua_setallocf(L, f, &val);
> lua_pushcfunction(L, cfunc); // crash here
This is not surprising, as IIRC, there is no guarantee that the
default allocator doesn't use the opaque UD value, and you go and
change the opaque UD value.