[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Crash in luaM_realloc_()
- From: Julien Hamaide <julien.hamaide@...>
- Date: Wed, 14 Jun 2006 16:24:28 +0200
g->ud is null if you use lua_open.
The normal allocator is using realloc, so my idea is that you broke the
allocator by freeing an invalid pointer out side of lua.
Alexander Gladysh a écrit :
I'm trying to move to Lua 5.1.1 from Lua 5.0.2.
While porting, I experience crash in luaM_realloc_() call inside
garbage collection inside lua_close() call.
block = (*g->frealloc)(g->ud, block, osize, nsize);
Debugger shows that g->ud is NULL. Can anyone give me any hints on how
to debug such crashes in Lua?
More information follows.
10Tacle Studios Belgium / Elsewhere Entertainment