[Tarantool-patches] [PATCH luajit 0/3] Fix sysprof crash due to insufficient free disk space
Sergey Bronnikov
estetus at gmail.com
Mon Nov 2 16:11:07 MSK 2026
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
More information about the Tarantool-patches
mailing list