lua-users home
lua-l archive

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

> Unfortunately, we can see that luaG_errormsg pushes two objects on the
> stack, and resizes it only afterward:

This shouldn't be a bug. The stack has some extra space (EXTRA_STACK) to
enable these kind of thing.

But I did not understand your calculations. You said that

> L->top-L->stack        181

Is sizeof(lua_TObject)==8 in your program?? If it is, L->top is already
seven positions after L->stack_last, which should not happen. (If it is
not, L->top is corrupted.)

-- Roberto