From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id EB2156ECEC; Mon, 2 Nov 2026 16:12:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org EB2156ECEC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1793625155; bh=LQaw/mjPqeG6Xahxkahw3TFz7s3qBtkKSJmRfIfY+cs=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=pLWLYp5empRqvItD1/gf1Fwv+UAKA8x10wUju2YWNmoPjp5LeGITtLHA54/SawhEE e1PIIlaum/co5/aGwc+vTB9SQeiO9+N+Xw2Cjhc8I2R8x0zFZvXWA0v64iBzaDo1Ab +Zg6Hu5Q/q62GQPASl9TnXhquVNTd2KdnfacoLXs= Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 760EC6ECEC for ; Mon, 2 Nov 2026 16:12:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 760EC6ECEC Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5ba3fba0080so2091664e87.1 for ; Mon, 02 Nov 2026 05:12:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793625152; x=1794229952; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=SHR00IEU34ZB2/PzYt1BPr9elriXxF3ZkdwMWVWF5NE=; b=pJaDPk1kl267Ekz3LBGT1WnI5DIOgM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7qJQbFLeUSQEIPwUU/hIEdw6oI6BFHGrI= X-Received: by 2002:a05:6512:33d3:b0:5bc:c9e3:d5bc with SMTP id 2adb3069b0e04-5bfd9584f1amr3029430e87.29.1793625152083; Mon, 02 Nov 2026 05:12:32 -0800 (PST) Received: from localhost ([79.164.223.111]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5bfe074666csm1657981e87.67.2026.11.02.05.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 05:12:31 -0800 (PST) To: tarantool-patches@dev.tarantool.org, Sergey Kaplun , e.temirgaleev@tarantool.org Date: Mon, 2 Nov 2026 16:11:07 +0300 Message-ID: X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit 0/3] Fix sysprof crash due to insufficient free disk space X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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