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 BA1696ECED; Wed, 2 Dec 2026 11:34:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BA1696ECED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1796200474; bh=K2qNscPcXC+mLkNmsmOYqaN6CfgDtEh7EDAbL5mMkuw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=zB+nGsIJPKwx4evKqlY9Pxbt8NRtTRXXkcuH+EbbiiWyeLJdhwPGRvnmXexFQ+wO3 UxteeC8G3u3dJHJZB1OmJ4g1N7Pkk/ZgjQrJ0UAh9n9eIyZ7w1Ka8YBkRQKPffXNlf sXNnxcw+FWM1/x9RAyWcoJrbTP6rCCJyRF0KrDLM= Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 75E916ECED for ; Wed, 2 Dec 2026 11:34:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 75E916ECED Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-3ae81ae52ffso98325121fa.2 for ; Wed, 02 Dec 2026 00:34:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796200472; x=1796805272; 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=2CCTm2yhkuMrjYjWRMNg3c8I7Vj6CLFZ3k/zAowGMf4=; b=NrnP1HHlbLyg2F1XCo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h2jfC7XSLEEwp8XZX9bBmKv74EjoZDnZ0PbwwdldLnOzrxHi2SoQ== X-Received: by 2002:a05:6512:12c7:b0:5c1:ad5d:3307 with SMTP id 2adb3069b0e04-5c1bc8604cdmr10400267e87.47.1796200472075; Wed, 02 Dec 2026 00:34:32 -0800 (PST) Received: from localhost ([178.177.22.7]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c33fd6c1casm3708357e87.54.2026.12.02.00.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 00:34:31 -0800 (PST) To: tarantool-patches@dev.tarantool.org, Sergey Kaplun , e.temirgaleev@tarantool.org Date: Wed, 2 Dec 2026 11:34:20 +0300 Message-ID: X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 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 a good branch coverage. The LuaJIT code coverage before (master): 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 | 192 ++++++ test/tarantool-c-tests/unit-wbuf.test.c | 557 ++++++++++++++++++ 4 files changed, 768 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