[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Script terminated unexpectedly
- From: Shmuel Zeigerman <shmuz@...>
- Date: Thu, 25 Sep 2008 10:42:57 +0300
Shmuel Zeigerman wrote:
-- Windows XP SP2, Lua 5.1.4
local N = 1e5
local patt = "^\n?[^\n]*" .. ("\n[^\n]*"):rep(N-1)
local subj = (("a"):rep(19).."\n"):rep(40000)
subj:match(patt) --> terminated here; no error message
print("OK") --> not printed
It seems, the reason for failure was stack overflow.
I've rebuilt lua.exe, adding a new file lua.def to the link command.
lua.def contained just 1 line:
The rebuilt lua.exe executes the above test case OK. So, this is not a