From nobody Thu Jun 11 11:22:24 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gbgGp4zwYz6hG4V for ; Thu, 11 Jun 2026 11:22:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gbgGm4mVsz47GW for ; Thu, 11 Jun 2026 11:22:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781176944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J+OZhE2OdBd3tEMF3/h3Q1w7Tvehp+fsT5Oy/a2u9tQ=; b=QjbdiqMqF9i1WR9CytDpuRxsPuiBabmkgz40vFqVSeO+kp5SqZ4ClhA7JmLptGX5I/ySUm L94vfBzEi+zXi6JDExQkliOiV0sKMopycrX3crYSDh/KurqMVql1krFWnSerM6PgdlZDPU LhNsJdVSNYFh1h9dmmb9GGt7QhLfvD0gmYevUHYHF4aJvWR/USXQRXvPbwSsJ04UQw/lU+ ab5oKkTQp6oiKHrYwk+sMsUskPNumjAtlSKWhyPKWjjlS1aqD05p4DfRG+PWROqOPwVrbE RKggI6aPCf49AOwnUbrhqCVUInTABKjcGIpeMFqhZD+8qeuNXnguA08c3cprYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781176944; a=rsa-sha256; cv=none; b=pcSVfyaLzU05LtGTq1XaxkyEoE3QrGfgMobVg5BYqlVpe0D4nRCmFqyZ+PFFxNtbxhxzcW qYNW5hpidWeElGuucFT9WHIwbYdISBNtKWHLhFTVEPlbx001Ln/fCRAEr+lfGqC8IqlNHT IOAE55uVmH8KtqtuZxWTdq04zVAXpui9jkwSUFm9z+gw4YIWn8bx+XCuv9kcF7LjBKfuqe SQ7C5wP/1qJ2zs9H8Az6rbW17vveRW6ienTBIy0XlxrLh3BcgfpROAPQacY8N2fO03KF3y s1eOLk1cczSaA7lrVNu0r2ahDEPTuNXRmRRNZdrp6Cw6sh1kdE+udQCv4iNU6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781176944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J+OZhE2OdBd3tEMF3/h3Q1w7Tvehp+fsT5Oy/a2u9tQ=; b=TfXhoiuT2jMiMrCmvxBNPIkslOab5CatOl52c3xu6wkuaO0tph/BNdovNzbGTmQjron3bZ VpDcLdQ8kv51FPMq8UPA/dNyQLdWnt+5+XppJBm21Oij6cdROog5616lp6RgqQwCdIGbJY siEgAJWR+7V7es57FNDrh3mQq4hYqmSegDSTePCk8O7i/zozHijPMr316Xz3PPwSKwrdzA GBEFKwAqplJY5EbVO2Grk81AKg1iZ+YJLvjg3sUx/tUk80KOU9wRxKVbelAucmKhnNo/Da gfGvlKcSj8QqC54u3lSPP9Du3xRyFHPXSHLwVamVvHzOCz/WKJ7s7dAKqw8VIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gbgGm4Kl8zpx4 for ; Thu, 11 Jun 2026 11:22:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3fa21 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 11 Jun 2026 11:22:24 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Stefa=?utf-8?Q?n E=C3=9Fer?= Subject: git: 6e5b990c5097 - main - tools/test/stress2/misc/all.debug.inc: skip undefined variables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e5b990c509777544b790cc8e490965166d04684 Auto-Submitted: auto-generated Date: Thu, 11 Jun 2026 11:22:24 +0000 Message-Id: <6a2a9a70.3fa21.333ef422@gitrepo.freebsd.org> The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=6e5b990c509777544b790cc8e490965166d04684 commit 6e5b990c509777544b790cc8e490965166d04684 Author: Stefan Eßer AuthorDate: 2026-06-11 11:15:12 +0000 Commit: Stefan Eßer CommitDate: 2026-06-11 11:15:12 +0000 tools/test/stress2/misc/all.debug.inc: skip undefined variables On my ZFS based systems, no allocations occur with tags "newblk" or "freework". This leads to errors executing the tests that check for memory leaks. Skip the checks if the output of wmstat -m does not contain lines corresponding to those allocations. MFC after: 3 days --- tools/test/stress2/misc/all.debug.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/test/stress2/misc/all.debug.inc b/tools/test/stress2/misc/all.debug.inc index 4042ca1f7718..419945154791 100644 --- a/tools/test/stress2/misc/all.debug.inc +++ b/tools/test/stress2/misc/all.debug.inc @@ -49,13 +49,15 @@ post_debug() { debug_statfs=$debug_new; } debug_new=`vmstat -m | grep -w freework | awk '{print $2}'` - [ $((debug_new - debug_freework)) -gt 0 -a $debug_new -gt 100 ] && + [ -n "$debug_new" ] && + [ $((debug_new - debug_freework)) -gt 0 -a $debug_new -gt 100 ] && { printf "stress2: freework leak: %d/%d.\r\n" \ $((debug_new - debug_freework)) $debug_new > $console debug_freework=$debug_new; } debug_new=`vmstat -m | grep -w newblk | awk '{print $2}'` - [ $((debug_new - debug_newblk)) -gt 0 -a $debug_new -gt 100 ] && + [ -n "$debug_new" ] && + [ $((debug_new - debug_newblk)) -gt 0 -a $debug_new -gt 100 ] && { printf "stress2: newblk leak: %d/%d.\r\n" \ $((debug_new - debug_newblk)) $debug_new > $console debug_newblk=$debug_new; }