From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: tarantool-patches@dev.tarantool.org,
Sergey Kaplun <skaplun@tarantool.org>,
e.temirgaleev@tarantool.org
Subject: [Tarantool-patches] [PATCH luajit 0/3] Fix sysprof crash due to insufficient free disk space
Date: Mon, 2 Nov 2026 16:11:07 +0300 [thread overview]
Message-ID: <cover.1793624427.git.estetus@gmail.com> (raw)
The patch series adds a unit test for lj_wbuf.c file, a patch
with fix for sysprof crash with regression test and a fix for
release resources on a halted profiler.
Unfortunately, we don't have a unit test for lj_wbuf, so before
applying the fix for sysprof, I decided to add a test that
provides not just line code coverage, but also branch coverage.
The LuaJIT code coverage before (master):
https://github.com/tarantool/luajit/actions/runs/38898752231/job/116965510306
lines: 93.0% (21919 out of 23560)
functions: 95.0% (1448 out of 1524)
branches: 80.9% (12757 out of 15761)
The LuaJIT code coverage after (gh-11620-insufficient-free-disk-space-sysprof):
lines: 93.2% (21951 out of 23564)
functions: 95.1% (1449 out of 1524)
branches: 80.9% (12768 out of 15777)
CI: https://github.com/tarantool/luajit/tree/ligurio/gh-11620-insufficient-free-disk-space-sysprof
Related links:
- https://github.com/tarantool/tarantool/issues/11620
- https://coveralls.io/github/tarantool/luajit?branch=ligurio/gh-11620-insufficient-free-disk-space-sysprof
Sergey Bronnikov (3):
test: add unit tests for the write buffer
sysprof: fix crash on a failed stream flush
sysprof: release resources on a halted profiler
src/lj_sysprof.c | 4 +-
src/lj_wbuf.c | 20 +-
.../gh-11620-sysprof-enospc-crash.test.c | 182 +++++++
test/tarantool-c-tests/unit-wbuf.test.c | 490 ++++++++++++++++++
4 files changed, 691 insertions(+), 5 deletions(-)
create mode 100644 test/tarantool-c-tests/gh-11620-sysprof-enospc-crash.test.c
create mode 100644 test/tarantool-c-tests/unit-wbuf.test.c
--
2.56.0
next reply other threads:[~2026-11-02 13:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 13:11 Sergey Bronnikov via Tarantool-patches [this message]
2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 1/3] test: add unit tests for the write buffer Sergey Bronnikov via Tarantool-patches
2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 2/3] sysprof: fix crash on a failed stream flush Sergey Bronnikov via Tarantool-patches
2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 3/3] sysprof: release resources on a halted profiler Sergey Bronnikov 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=cover.1793624427.git.estetus@gmail.com \
--to=tarantool-patches@dev.tarantool.org \
--cc=e.temirgaleev@tarantool.org \
--cc=estetus@gmail.com \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 0/3] Fix sysprof crash due to insufficient free disk space' \
/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