From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Bronnikov <sergeyb@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit v2 4/5] build: introduce LUAJIT_USE_ASAN option Date: Wed, 26 Jul 2023 13:06:29 +0000 [thread overview] Message-ID: <ZMEaVTKegY5Da4Qp@tarantool.org> (raw) In-Reply-To: <1330e6f3-18f1-c180-9de5-3db1fd52757c@tarantool.org> Sergey, Thanks for your review! See my answers below. On 24.07.23, Sergey Bronnikov wrote: > Thanks for the patch! See comments below. > > > On 7/21/23 11:12, Igor Munkin wrote: <snipped> > > +# ASan enabled. > > +option(LUAJIT_USE_ASAN "Build LuaJIT with AddressSanitizer" OFF) > > +if(LUAJIT_USE_ASAN) > > + if(NOT LUAJIT_USE_SYSMALLOC) > > + message(WARNING > > + "Unfortunately, internal LuaJIT memory allocator is not instrumented yet," > > + " so to find any memory errors it's better to build LuaJIT with system" > > + " provided memory allocator (i.e. run CMake configuration phase with" > > + " -DLUAJIT_USE_SYSMALLOC=ON)." > > + ) > > + endif() > > + # Use all recomendations described in AddressSanitize docs: > > typo: recomendations -> recommendations Fixed, thanks! > <snipped> > > With applied patch tests below failed: My bad: I've made inaccurate rebase on the bleeding master and forgotten to update tests added by Max and Sergey. See the iterative diff: ================================================================================ diff --git a/test/tarantool-tests/lj-1024-varg-maxslot.test.lua b/test/tarantool-tests/lj-1024-varg-maxslot.test.lua index e33ddba2..81fb1eea 100644 --- a/test/tarantool-tests/lj-1024-varg-maxslot.test.lua +++ b/test/tarantool-tests/lj-1024-varg-maxslot.test.lua @@ -60,4 +60,4 @@ end test:ok(true, 'BC_VARG recording with VARG slots defined on trace') -os.exit(test:check() and 0 or 1) +test:done(true) diff --git a/test/tarantool-tests/lj-128-fix-union-init.test.lua b/test/tarantool-tests/lj-128-fix-union-init.test.lua index 93cbf3af..b36758fc 100644 --- a/test/tarantool-tests/lj-128-fix-union-init.test.lua +++ b/test/tarantool-tests/lj-128-fix-union-init.test.lua @@ -55,4 +55,4 @@ for i = 1, NITERATIONS do test:ok(union_type(i).u == i, 'first member init only') end -os.exit(test:check() and 0 or 1) +test:done(true) ================================================================================ Thanks for manual testing this, since it was covered by another bug in CI (see the explanation in the next patch). > <snipped> > -- Best regards, IM
next prev parent reply other threads:[~2023-07-26 13:18 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-21 8:12 [Tarantool-patches] [PATCH luajit v2 0/5] Add ASan support in LuaJIT Igor Munkin via Tarantool-patches 2023-07-21 8:12 ` [Tarantool-patches] [PATCH luajit v2 1/5] ci: clean up workflow for exotic builds Igor Munkin via Tarantool-patches 2023-07-24 10:36 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 9:37 ` Sergey Kaplun via Tarantool-patches 2023-07-21 8:12 ` [Tarantool-patches] [PATCH luajit v2 2/5] memprof: remove invalid assertions Igor Munkin via Tarantool-patches 2023-07-24 10:46 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 9:41 ` Sergey Kaplun via Tarantool-patches 2023-07-21 8:12 ` [Tarantool-patches] [PATCH luajit v2 3/5] test: introduce test:done TAP helper Igor Munkin via Tarantool-patches 2023-07-24 10:53 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 10:43 ` Sergey Kaplun via Tarantool-patches 2023-07-26 12:42 ` Igor Munkin via Tarantool-patches 2023-07-21 8:12 ` [Tarantool-patches] [PATCH luajit v2 4/5] build: introduce LUAJIT_USE_ASAN option Igor Munkin via Tarantool-patches 2023-07-24 11:41 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 13:06 ` Igor Munkin via Tarantool-patches [this message] 2023-07-25 12:26 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 12:54 ` Igor Munkin via Tarantool-patches 2023-07-27 11:06 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 11:03 ` Sergey Kaplun via Tarantool-patches 2023-07-21 8:12 ` [Tarantool-patches] [PATCH luajit v2 5/5] ci: introduce testing workflow with sanitizers Igor Munkin via Tarantool-patches 2023-07-24 11:54 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 14:53 ` Igor Munkin via Tarantool-patches 2023-07-27 11:13 ` Sergey Bronnikov via Tarantool-patches 2023-07-26 11:29 ` Sergey Kaplun via Tarantool-patches 2023-07-26 16:35 ` Igor Munkin via Tarantool-patches 2023-08-03 7:31 ` [Tarantool-patches] [PATCH luajit v2 0/5] Add ASan support in LuaJIT Igor Munkin via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=ZMEaVTKegY5Da4Qp@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=sergeyb@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit v2 4/5] build: introduce LUAJIT_USE_ASAN option' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox