From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Kaplun <skaplun@tarantool.org>, Sergey Bronnikov <estetus@gmail.com> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit 5/6] test: fix lj-802-panic-at-mcode-protfail GCC+ASan Date: Tue, 26 Mar 2024 18:22:04 +0300 [thread overview] Message-ID: <46dabb52-390b-44a5-89a4-9ab3a3918f93@tarantool.org> (raw) In-Reply-To: <ZgKeqSLppBAGkbvS@root> Sergey, On 3/26/24 13:08, Sergey Kaplun wrote: > Hi, Sergey! > Thanks for the patch! > LGTM, except 2 typos regarding the commit message and the comment. > > On 26.03.24, Sergey Bronnikov wrote: >> From: Sergey Kaplun <skaplun@tarantool.org> >> >> The aforementioned test uses `LD_PRELOAD` to mock the system call to >> `mprotect()`. The GCC implementation of libasan requires that the ASan >> library go first in the `LD_PRELOAD` list. This patch tweaks the >> behaviour to avoid failure of the test. OTOH, this patch intorduces > Typo: s/intorduces/introduces/ > Fixed. >> warnings related to the libc leaks for a couple of tests, but they are >> not treated as test failures. This should be fixed by target setting >> LD_PRELOAD only for necessary tests when we start using CTest instead of >> `prove`. >> >> Part of tarantool/tarantool#9656 >> >> Co-authored-by: Sergey Bronnikov <sergeyb@tarantool.org> >> --- >> test/tarantool-tests/CMakeLists.txt | 15 +++++++++++++++ >> test/tarantool-tests/utils/exec.lua | 14 ++++++++++++++ >> 2 files changed, 29 insertions(+) >> >> diff --git a/test/tarantool-tests/CMakeLists.txt b/test/tarantool-tests/CMakeLists.txt >> index e6d12984..35bcc5ef 100644 >> --- a/test/tarantool-tests/CMakeLists.txt >> +++ b/test/tarantool-tests/CMakeLists.txt >> @@ -110,6 +110,21 @@ else() >> list(APPEND LUA_TEST_ENV_MORE LD_LIBRARY_PATH=${LD_LIBRARY_PATH}) >> endif() >> >> +# Some tests use `LD_PRELOAD` to mock system calls (like >> +# <lj-802-panic-at-mcode-protfail.test.lua> overwrites >> +# `mprotect()`. When compiling with ASan support under GCC, it is >> +# required that the ASan library go first in the `LD_PRELOAD` >> +# list. Set it manually, test will append it to the executed > Typo: s/manually, test/manually. The test/ > Fixed. >> +# process. >> +# See also: https://github.com/tarantool/tarantool/issues/9656. > <snipped> > >> -- >> 2.34.1 >>
next prev parent reply other threads:[~2024-03-26 15:22 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-26 8:33 [Tarantool-patches] [PATCH luajit 0/6][v5] cmake: replace prove with CTest Sergey Bronnikov via Tarantool-patches 2024-03-26 8:33 ` [Tarantool-patches] [PATCH luajit 1/6] ci: execute LuaJIT tests with GCC 10 and ASAN Sergey Bronnikov via Tarantool-patches 2024-03-26 9:51 ` Sergey Kaplun via Tarantool-patches 2024-03-26 8:33 ` [Tarantool-patches] [PATCH luajit 2/6] test: refactor CMake macro LibRealPath Sergey Bronnikov via Tarantool-patches 2024-03-26 9:57 ` Sergey Kaplun via Tarantool-patches 2024-03-26 8:33 ` [Tarantool-patches] [PATCH luajit 3/6] test: move LibRealPath to the separate module Sergey Bronnikov via Tarantool-patches 2024-03-26 10:01 ` Sergey Kaplun via Tarantool-patches 2024-03-26 8:33 ` [Tarantool-patches] [PATCH luajit 4/6] test: more cautious usage of LD_PRELOAD for ASan Sergey Bronnikov via Tarantool-patches 2024-03-26 10:04 ` Sergey Kaplun via Tarantool-patches 2024-03-26 8:33 ` [Tarantool-patches] [PATCH luajit 5/6] test: fix lj-802-panic-at-mcode-protfail GCC+ASan Sergey Bronnikov via Tarantool-patches 2024-03-26 10:08 ` Sergey Kaplun via Tarantool-patches 2024-03-26 15:22 ` Sergey Bronnikov via Tarantool-patches [this message] 2024-03-26 8:33 ` [Tarantool-patches] [PATCH luajit 6/6] cmake: replace prove with CTest Sergey Bronnikov via Tarantool-patches 2024-03-26 11:03 ` Sergey Kaplun via Tarantool-patches 2024-04-01 14:28 ` Sergey Bronnikov via Tarantool-patches 2024-04-01 18:46 ` Sergey Kaplun via Tarantool-patches 2024-04-11 16:47 ` [Tarantool-patches] [PATCH luajit 0/6][v5] " Sergey Kaplun 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=46dabb52-390b-44a5-89a4-9ab3a3918f93@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=estetus@gmail.com \ --cc=sergeyb@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit 5/6] test: fix lj-802-panic-at-mcode-protfail GCC+ASan' \ /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