Package: lua5.2
Version: 5.2.1-3+deb7u1

I tried to reproduce known Lua 5.2 bugs in my lua5.2 installed from
Debian Wheezy: http://www.lua.org/bugs.html#5.2.2-5

$ cat test.lua
-- When you call 'luac -l' over this chunk, it chokes the output
s="Lorem ipsum dolor sit amet, consectetur, "

$ luac5.2 -l test.lua

main <test.lua:0,0> (2 instructions at 0x155a3c0)
0+ params, 2 slots, 1 upvalue, 0 locals, 2 constants, 0 functions
        1       [2]     SETTABUP        0 -1 -2 ; _ENV "s" ? type=20
        2       [2]     RETURN          0 1

$ luac5.1 -l test.lua

main <test.lua:0,0> (3 instructions, 12 bytes at 0x1e60530)
0+ params, 2 slots, 0 upvalues, 0 locals, 2 constants, 0 functions
        1       [2]     LOADK           0 -2    ; "Lorem ipsum dolor
sit amet, consectetur, "
        2       [2]     SETGLOBAL       0 -1    ; s
        3       [2]     RETURN          0 1


I suggest applying the patch provided here: http://www.lua.org/bugs.html#5.2.2-5

I am using Debian GNU/Linux 7.7, kernel 3.2.0-4-amd64 and libc6 2.19-7.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to