Re: segmentation fault in lj_vm_growstack_f

  • From: Zhang Chao <zchao1995@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 11 Aug 2018 16:51:46 +0800

If I remember correctly, we don’t have the logic that switches to
another task in a C function which called by LuaJIT. The OpenSSL
co-routine (fiber) switched always by Nginx’s code.

Still not convinced. Certificate callback is invoked in a context of
OpenSSL fiber. The callback invokes Lua.

Yes.

Is it possible that Lua calls something from OpenSSL that causes it to
switch to a different fiber or return to Nginx?

The Lua code really uses some OpenSSL functions written by OpenResty Inc,
but theses OpenSSL functions are irrelevant with the fiber context
switches. As far as I know, I will do a deep investigation to make sure
that I haven't missed.

Best regards
Alex Zhang

Other related posts: