From d1a229ae9f1f4b9b82df815d88de2d0597faf933 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 8 Apr 2019 12:20:20 +0200 Subject: [PATCH] lua resolve*(): fix a problem with JIT It caused crashes somewhere inside LuaJIT or the JIT-ed code. --- daemon/lua/sandbox.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/lua/sandbox.lua.in b/daemon/lua/sandbox.lua.in index 56af63cfa..6996d479d 100644 --- a/daemon/lua/sandbox.lua.in +++ b/daemon/lua/sandbox.lua.in @@ -37,6 +37,7 @@ local function prep_resolve_cb(finish, init) if finish then -- Create callback for finalization finish_cb = ffi.cast('trace_callback_f', function (req) + jit.off(true, true) -- JIT for (C -> lua)^2 nesting isn't allowed req = kres.request_t(req) finish(req.answer, req) finish_cb:free() -- 2.47.2