[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: segfault when lua_newtable called 100 times in a row
- From: Shmuel Zeigerman <shmuz@...>
- Date: Sun, 10 Apr 2016 21:27:34 +0300
On 10/04/2016 20:16, Jura Pk wrote:
I am stuck with a problem: when I'm trying to add 100 tables in Lua c
stack, I receive segfault on function end.
Code example:
lua_example.c: http://pastebin.com/GFvLwMY2
Makefile: http://pastebin.com/3EWJiVz7
test.lua: http://pastebin.com/1y22XvzK
See https://www.lua.org/manual/5.3/manual.html#lua_checkstack
--
Shmuel