And how exactly am I misusing the API? ________________________________ From: Alex <initrd.gz@xxxxxxxxx> To: luajit@xxxxxxxxxxxxx Sent: Saturday, December 13, 2014 4:00 PM Subject: Re: [BUG?] Segmentation fault in lua_error() - easily reproducible Wait, I misread the docs, again. Just so you know, segfaults can be triggered by misusing the API. It's not irrelevant. On Sat, Dec 13, 2014 at 9:53 AM, Alex <initrd.gz@xxxxxxxxx> wrote: Whoops, I was wrong about the stack index; lua_resume takes nargs, not a stack index. > >However, the documentation for lua_resume [1] states that it must take a >thread; it doesn't say it can take a function. > > >[1] http://www.lua.org/manual/5.1/manual.html#lua_resume > >-- > >Sincerely, >Alex Parrill -- Sincerely, Alex Parrill