[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: segfault with Lua 5.2.0 alpha rc2
- From: François Perrad <francois.perrad@...>
- Date: Sun, 21 Nov 2010 10:23:56 +0100
I obtain a segfault with the following script :
local u = io.tmpfile()
local t = {}
local r = debug.setuservalue(u, t)
assert(r == u)
assert(debug.getuservalue(u) == t)
print 'ok'
-- segfault during the finalization of u
--[[
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0807522e in aux_close ()
#2 0x080755d9 in io_gc ()
#3 0x08052fcb in luaD_precall ()
#4 0x080536e5 in luaD_call ()
#5 0x08055559 in dothecall ()
#6 0x0805209f in luaD_rawrunprotected ()
#7 0x08052124 in luaD_pcall ()
#8 0x08055438 in GCTM ()
#9 0x080564df in luaC_freeallobjects ()
#10 0x0805d360 in close_state ()
#11 0x0805d483 in lua_close ()
#12 0x0804b353 in main ()
(gdb)
--]]
François.