Hello!
On Sun, Oct 9, 2016 at 4:57 AM, Tim Burgess wrote:
> I've been receiving the following in some Openresty/Luajit code I have been
> running that uses the FFI:
>
> 2016/10/04 18:45:09 [error] 25391#0: *328 lua entry thread aborted: runtime
> error: table overflow
>
This is a common FFI usage mistake and also a FAQ. This is usually
because that you call the FFI API in the wrong way. It's wrong to call
ffi.cdef() repeatedly for the same things (like on every request
served by nginx). Always call it on the top-level scope of your own
Lua module files. See lua-resty-string and lua-resty-core for the
correct usage in the real world.
BTW, the next time you see an error, better google for it :) I believe
you can find my previous answers to this same question ;)
Regards,
-agentzh