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 2/3] Fix potential file descriptor leak in luaL_loadfile*(). Date: Fri, 6 Jun 2025 18:49:20 +0300 [thread overview] Message-ID: <36145b26-9f2e-4983-b8d5-cb5e4012c9ef@tarantool.org> (raw) In-Reply-To: <aEMF7Bna3Er0efoF@root> [-- Attachment #1: Type: text/plain, Size: 1313 bytes --] LGTM On 6/6/25 18:14, Sergey Kaplun wrote: > Hi, Sergey! > Thanks for the review! > > On 06.06.25, Sergey Bronnikov wrote: >> Hello, Sergey, >> >> the test is passed when CMake option -DLUAJIT_USE_VALGRIND=ON is used and >> >> patch with fix is reverted. > You should run it with the corresponding env variable (like it is done > in the CI), see the comment in the test header: > > | VALGRIND_OPTS="--track-fds=yes" ctest -V -R lj-1249 It works, thanks, but the test is still passed. In private conversation, we have found a reason - I have a version of Valgrind, that doesn't fail on detected fd leak: Release 3.24.0 (31 Oct 2024) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... * ==================== CORE CHANGES =================== * Bad file descriptor usage now generates a real error with --track-fds=yes that is suppressible and shows up in the xml output with full execution backtrace. The warnings shown without using the option are deprecated and will be removed in a future valgrind version. The same behavior is in our CI, because Valgrind 3.24.0 is in 25.04+, but in GHA the latest version is 24.04. 1. https://repology.org/project/valgrind/versions 2. https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners >> Sergey [-- Attachment #2: Type: text/html, Size: 2604 bytes --]
next prev parent reply other threads:[~2025-06-06 15:49 UTC|newest] Thread overview: 11+ 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 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 [this message] 2025-06-05 5:44 ` [Tarantool-patches] [PATCH luajit 3/3] Fix another " 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=36145b26-9f2e-4983-b8d5-cb5e4012c9ef@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit 2/3] Fix potential file descriptor leak in luaL_loadfile*().' \ /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