lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
This time I enabled lua_abort() [...]

You meant lua_assert, right?

Oh... yes.

and it's only after doing this a few times that I get the abort (from,
I imagine, checkliveness()):

Doesn't the abort give a more informative error message?

No, I only defined it to abort if false, as I recall, without
saying what the assert failed on (I thought the stack trace would
be illuminating enough, forgetting that Lua asserts from macros
a lot).

#2  0x4017cbf8 in abort () from /lib/libc.so.6
#3  0x080eedd1 in luaV_execute (L=0x81cbb48, nexeccalls=1) at lvm.c:435

This second abort site is at a getupval operation. Asko Kauppi's bug
also seems to be related to upvalues...

I'll trust your judgement on that. :)

--Adam