lua-users home
lua-l archive

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


On Thu, Apr 5, 2012 at 01:54, Alexander Gladysh <agladysh@gmail.com> wrote:
> Hi, Mike, all,
>
> LuaJIT v2.0.0-beta9-39-gc3e1d72
> Linux localhost-ag 2.6.38-13-virtual #53-Ubuntu SMP Mon Nov 28
> 19:59:56 UTC 2011 i686 i686 i386 GNU/Linux
> Ubuntu 11.04
>
> While trying to optimize my Lua serialization library, luatexts[1],
> I've stumbled upon this strange crash in LJ2:
>
> ./luajit: /usr/local/share/lua/5.1/lua-nucleo/tdeepequals.lua:0:
> attempt to index a boolean value
> stack traceback:
>        /usr/local/share/lua/5.1/lua-nucleo/tdeepequals.lua: in function 'tdeepequals'
>        /usr/local/share/lua/5.1/lua-nucleo/ensure.lua:318: in function
> 'ensure_returns'
>        test/test.lua:2238: in main chunk
>        [C]: ?
>
> Note strangely missing line info. This happens during generative test
> suite when I'm trying to load mutated data — so all kinds of bad
> things may happen.

Here is another kind of crash:

luajit2: /usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:192:
attempt to get length of local 'keys1' (a function value)
stack traceback:
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:192: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:186: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:186: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:186: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:207: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:203: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:107: in function
</usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:104>
	[C]: in function 'table_sort'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:199: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:203: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:203: in function 'tmore'
	/usr/local/share/lua/5.1//lua-nucleo/tdeepequals.lua:227: in function
'tdeepequals'
	/usr/local/share/lua/5.1//lua-nucleo/ensure.lua:318: in function
'ensure_returns'
	test/test.lua:2238: in main chunk
	[C]: ?

Valgrind complains about this and nothing else:

==12808== Conditional jump or move depends on uninitialised value(s)
==12808==    at 0x8054FE7: ??? (in /usr/bin/luajit-2.0.0-beta9)

But I assume this is due to some LJ2 specifics and not an error.

Any thoughts?

Thanks,
Alexander.