From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit 1/3] ci: add track-fds Valgrind scenario
Date: Fri, 6 Jun 2025 16:56:46 +0300 [thread overview]
Message-ID: <d432a89e-e01d-47a5-95c5-ae7093500ba4@tarantool.org> (raw)
In-Reply-To: <c3fc5e24abd3112b5f0017d67cdec239c911d8ce.1749101434.git.skaplun@tarantool.org>
[-- Attachment #1: Type: text/plain, Size: 1932 bytes --]
Hello, Sergey,
Thanks for the patch! See my comments below.
On 6/5/25 08:44, Sergey Kaplun wrote:
> This patch adds a new field, track-fds [1], in the Valgrind workflow
> matrix to detect descriptor leakage in the tests.
>
> [1]:https://valgrind.org/docs/manual/manual-core.html#opt.track-fds
>
> Needed for tarantool/tarantool#11278
> ---
> .github/workflows/valgrind-testing.yaml | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/.github/workflows/valgrind-testing.yaml b/.github/workflows/valgrind-testing.yaml
> index e6606478..b3c7bc80 100644
> --- a/.github/workflows/valgrind-testing.yaml
> +++ b/.github/workflows/valgrind-testing.yaml
> @@ -38,7 +38,11 @@ jobs:
> # Therefore, testing on this platform is currently
> # disabled.
> BUILDTYPE: [Debug, Release]
> - VALGRIND_SCENARIO: [full, malloc-free-fill-0x00, malloc-free-fill-0xff]
> + VALGRIND_SCENARIO:
> + - full
> + - malloc-free-fill-0x00
> + - malloc-free-fill-0xff
> + - track-fds
Why we cannot add "track-fds" to the existed scenario?
> include:
> - BUILDTYPE: Debug
> CMAKEFLAGS: -DCMAKE_BUILD_TYPE=Debug -DLUA_USE_ASSERT=ON -DLUA_USE_APICHECK=ON
> @@ -59,6 +63,9 @@ jobs:
> - VALGRIND_SCENARIO: malloc-free-fill-0xff
> VALGRIND_OPTS: --leak-check=no --malloc-fill=0xff --free-fill=0xff
> JOB_POSTFIX: "malloc/free-fill: 0xff"
> + - VALGRIND_SCENARIO: track-fds
According to documentation, the option "print out a list of open file
descriptors on exit or on request".
So the fd leak detection is semi-automated. How it should work on CI?
> + VALGRIND_OPTS: --leak-check=no --track-fds=yes
> + JOB_POSTFIX: "track-fds"
> runs-on: [self-hosted, regular, Linux, x86_64]
> name: >
> LuaJIT with Valgrind (Linux/x86_64)
[-- Attachment #2: Type: text/html, Size: 2863 bytes --]
next prev parent reply other threads:[~2025-06-06 13:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 5:44 [Tarantool-patches] [PATCH luajit 0/3] Fix descriptor leak in loadfile Sergey Kaplun via Tarantool-patches
2025-06-05 5:44 ` [Tarantool-patches] [PATCH luajit 1/3] ci: add track-fds Valgrind scenario Sergey Kaplun via Tarantool-patches
2025-06-06 13:56 ` Sergey Bronnikov via Tarantool-patches [this message]
2025-06-06 14:03 ` Sergey Kaplun via Tarantool-patches
2025-06-06 14:54 ` Sergey Bronnikov via Tarantool-patches
2025-06-06 15:31 ` Sergey Kaplun via Tarantool-patches
2025-06-05 5:44 ` [Tarantool-patches] [PATCH luajit 2/3] Fix potential file descriptor leak in luaL_loadfile*() Sergey Kaplun via Tarantool-patches
2025-06-06 14:47 ` Sergey Bronnikov via Tarantool-patches
2025-06-06 15:14 ` Sergey Kaplun via Tarantool-patches
2025-06-06 15:49 ` Sergey Bronnikov via Tarantool-patches
2025-06-05 5:44 ` [Tarantool-patches] [PATCH luajit 3/3] Fix another " Sergey Kaplun via Tarantool-patches
2025-06-09 9:42 ` Sergey Bronnikov via Tarantool-patches
2025-07-25 9:06 ` [Tarantool-patches] [PATCH luajit 0/3] Fix descriptor leak in loadfile 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=d432a89e-e01d-47a5-95c5-ae7093500ba4@tarantool.org \
--to=tarantool-patches@dev.tarantool.org \
--cc=sergeyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 1/3] ci: add track-fds Valgrind scenario' \
/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