From: Vladimír Čunát Date: Mon, 8 Apr 2019 10:20:20 +0000 (+0200) Subject: lua resolve*(): fix a problem with JIT X-Git-Tag: v4.0.0~10^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a229ae9f1f4b9b82df815d88de2d0597faf933;p=thirdparty%2Fknot-resolver.git lua resolve*(): fix a problem with JIT It caused crashes somewhere inside LuaJIT or the JIT-ed code. --- 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()