lua-users home
lua-l archive

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


It was thus said that the Great Egor Skriptunoff once stated:
> [FUN] here means both "fun" and "function" :-)
> 
> function segfault()
>    for k = 1, 1/0 do
>       x = debug.getinfo(k) or x.func()
>    end
> end
> 
> Actually, this code invokes pmain()

  And it actually crashes in collectargs() because argv is NULL and there
are no checks for that.  This also happens in Lua 5.1 and 5.2 as well.  Now,
*why* argv is NULL is another question ... 

  -spc