From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 37F7643E89B for ; Fri, 27 Mar 2020 16:38:21 +0300 (MSK) Date: Fri, 27 Mar 2020 16:32:02 +0300 From: Igor Munkin Message-ID: <20200327133202.GD22874@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH 0/4] Enable LuaJIT tests written in C List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Ostanevich , Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org Sorry, forgot to add a ChangeLog entry. On 27.03.20, Igor Munkin wrote: > This series prepares the existing testing machinery to run LuaJIT tests > requiring libraries implemented in C and enables the existing ones: > * gh-4427-ffi-sandwich > * lj-flush-on-trace > @ChangeLog: * "FFI sandwich"(*) detection is introduced. If sandwich is detected while trace recording the recording is aborted. The sandwich detected while mcode execution leads to the platform panic. * luaJIT_setmode call is prohibited while mcode execution and leads to the platform panic. (*) The following stack mix is called FFI sandwich. | Lua-FFI -> ะก routine -> Lua-C API -> Lua VM This sort of re-entrancy is explicitly not supported by LuaJIT compiler. For more info see gh-4427. > Igor Munkin (4): > luajit: bump new version > test: adjust luajit-tap testing machinery > test: enable luajit-tap:gh-4427-ffi-sandwich tests > test: enable luajit-tap:lj-flush-on-trace tests > > test/CMakeLists.txt | 17 +++++++----- > test/app-tap/gh-4427-ffi-sandwich.test.lua | 30 ++++++++++++++++++++++ > test/app-tap/lj-flush-on-trace.test.lua | 30 ++++++++++++++++++++++ > third_party/luajit | 2 +- > 4 files changed, 72 insertions(+), 7 deletions(-) > create mode 100755 test/app-tap/gh-4427-ffi-sandwich.test.lua > create mode 100755 test/app-tap/lj-flush-on-trace.test.lua > > -- > 2.25.0 > -- Best regards, IM