lua-users home
lua-l archive

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


I have also experienced some crashes on just one computer when Lua 
collects garbage. Sometimes when it is marking the array part of a 
table and sometimes in something related to strings. As a can't
reproduce the problem in Lua compiled with gcc 3.2.3, I suspect the
source of the problems could be the version of gcc on that system
(I can't recall the version at the moment).

E.g. a script similar to the following can cause a crash on that system:

foo={}

collectgarbage(1000^2*20)

for k=1, 100 do
    print(k)
    foo[k]={}
    for l=1, 1000 do
	foo[k][l]={}
	for m=1, 100 do
	    foo[k][l][m]=tostring(math.random())
	end
    end
end

-- 
Tuomo