[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: assert in luaopen_io()
- From: "Adam D. Moss" <adam@...>
- Date: Mon, 11 Apr 2005 15:35:04 +0100
Adam D. Moss wrote:
The code which reproduces this is simply:
lua_State *lstate;
lstate = (void*)lua_open();
if (lstate) {
lua_atpanic(lstate, l_panic);
luaopen_base(lstate);
luaopen_table(lstate);
luaopen_math(lstate);
luaopen_io(lstate);
luaopen_string(lstate);
luaopen_debug(lstate);
}
If I remove the luaopen_io() (my app doesn't really
need it), things are fine. Wherever I move the luaopen_io()
to in the lib-opening order, it still seems to trigger the
assertion, so I don't think it's simply luaopen_io() being
the victim of earlier heap corruption (assuming valgrind is
untrustworthy in that regard).
If I change the lib-opening convention to match
luaopen_stdlibs()'s, opening the io library still
asserts.
--Adam
--
Adam D. Moss - adam@gimp.org