From nobody Thu Oct 16 09:14:33 2025 X-Original-To: dev-commits-doc-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 4cnMj52HrFz6Cqsg for ; Thu, 16 Oct 2025 09:14:33 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cnMj51bqCz3XsZ; Thu, 16 Oct 2025 09:14:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760606073; 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=VzTJWV4PMwZVBmBAvRxCbs5HNPb2bU6OIMt9wIvTUWE=; b=S1vbCt6nzX8o7oT59vhjP7n7Pwg+cEqA4D20oaJ8M0hutUupbk5Nv1W5kcnhei2E/awbpF RS+cyp7t4rRf7BQLekE6E5c9R3lSef0jkY1MQmVqtZvtF6WU6/jf5sbOlNjtYGjqzw5JcP ncxSj+hT70VO9SNfm3goNIIwAFjBu7eu1jEWuNwXAbk7a0io+E/57SQHur0uLLCINimewz Pe3kRX0l8ftBp6qt0+pcA9RqCyFStFYvg8eC90CQI1wfTQgIX6wfuuEv0yHeuSBicdFz7d Gj/8pCJRm2Vp+9CZkRiCYlRyut7BTFmsKixpmyf/ahJQwLY/3v1iwcRTGbdiRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760606073; 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=VzTJWV4PMwZVBmBAvRxCbs5HNPb2bU6OIMt9wIvTUWE=; b=YNd5XBDHfTgCWD1R43a4kIRoODSU3eHZHScL6HX3ndtUXQfl83D81J99UI/fiJ2mS03aIo gg0Apmr0gnHXxQkNgHAziKaM54giCiuGtb6YJ559G5v+QF+kxPsJJN5SOOmdgP7po+lXnR JaYaeQ0NHzEkqKlV4XiF1IYEH61movVMpvJdl5zz5dIzDDStRbk15t7S3HmZKhza8wxbtR v7CxVy7OdB/ehbMEkjCk8cY/gMn72oy/saTRFAfae7Km5la0Um+JpKE6o3Yv0uDrfyk+Lt vZFmqQXx/l50qvWMCOGCuBGcSMX3YUkwqkCX8XGf0xifAY+nRcSniHHkTZ9cMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760606073; a=rsa-sha256; cv=none; b=xjfnxgkX29Gx2P03+/bXiUQkGPtuvEdVCoRYxHn5esq90IcmiK07lD3HzTpu/tegYxu1sh zyOWx6YbVIahiXImDf7eBP2Gnv9pgVSiyBm3VCBnbbv6Rp455A52N7RgdRCXxaI7hUFclQ I8TARw4INreQEu/hskCl3qg50DDM2Mx63TojwnNoc42JFLGolkkUOe6lBGOPovfY9WtbOC UYDOSrd9CHPATAflZXC0o3J4Vj6wYrklGvtu/1DYdMd59tP89FSQWI+GJ5il69Gz2RkB6o 2hSXZuO73Fd/uvF62/jvcBvzySLeCJ1ySAM8SotmL0q9zul1JZVfZlOSWmQ7Ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cnMj510hJz1H9S; Thu, 16 Oct 2025 09:14:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59G9EXMB090635; Thu, 16 Oct 2025 09:14:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59G9EXTX090632; Thu, 16 Oct 2025 09:14:33 GMT (envelope-from git) Date: Thu, 16 Oct 2025 09:14:33 GMT Message-Id: <202510160914.59G9EXTX090632@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Lorenzo Salvadore Subject: git: 3ab15c9d20 - main - Status/2025Q3/valgrind.adoc: Add report List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3ab15c9d2015e763c008e3577c4c57576581320c Auto-Submitted: auto-generated The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=3ab15c9d2015e763c008e3577c4c57576581320c commit 3ab15c9d2015e763c008e3577c4c57576581320c Author: Paul Floyd AuthorDate: 2025-09-26 17:02:12 +0000 Commit: Lorenzo Salvadore CommitDate: 2025-10-16 09:13:44 +0000 Status/2025Q3/valgrind.adoc: Add report Pull Request: https://github.com/freebsd/freebsd-doc/pull/553 --- .../en/status/report-2025-07-2025-09/valgrind.adoc | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/website/content/en/status/report-2025-07-2025-09/valgrind.adoc b/website/content/en/status/report-2025-07-2025-09/valgrind.adoc new file mode 100644 index 0000000000..d836878b21 --- /dev/null +++ b/website/content/en/status/report-2025-07-2025-09/valgrind.adoc @@ -0,0 +1,53 @@ +=== Valgrind: preparing for 15.0-RELEASE + +Links: + +link:https://www.valgrind.org/[Valgrind Home Page] URL: link:https://www.valgrind.org/[] + +link:https://www.valgrind.org/docs/manual/dist.news.html[Valgrind News] URL: link:https://www.valgrind.org/docs/manual/dist.news.html[] + +link:https://github.com/paulfloyd/freebsdarm64_valgrind[arm64 port] URL: link:https://github.com/paulfloyd/freebsdarm64_valgrind[] + +Contact: Paul Floyd + +I have not submitted any reports for over a year. On the whole that is good news as it means that there have not been any major issues. Back then I said that aarch64 support was about to land and indeed it dit in mid April 2024. + +I added a nice little script for use with Valgrind called `vgscript`. This works in a similar manner to `pstack` (or `bstack` on FreeBSD) in that you give it a PID and it will generate a stack trace for that process. If you use `bstack` with a Valgrind process you will see the Valgrind call stack which is probabably of no use to you. If you run `vgstack` with a Valgrind PID it will print the call stack of the test exe running under Valgrind. + +If you use Valgrind regularly could you take a look and answer the survey that I posted on the forums (if you have not done so already). +Here is the link:https://forums.freebsd.org/threads/valgrind-feature-poll.98707/#post-716085[link]. + +Valgrind 3.26 is due out at the end of October 2025 and package:devel/valgrind[] will be updated shortly after that. + +package:devel/valgrind-devel[] will get one (or maybe more) updates as I fix issues with FreeBSD 15.0. + +The oustanding issues that I have on FreeBSD 15.0 are +* aarch64: there is a problem when using Valgrind with gdb/vgdb. Hitting ctrl-c to interrupt the process running under Valgrind does not work and Valgrind crashes with an assert. +* aarch64: a known old issue that was infrequent regarding initialisation of thread memory now seems to occur much more often. +* amd64: maybe similar to the first issue with gdb/vgdb and interrupting a process, but this time I'm seeing `select` return an 'impossible' value. +* amd64: a test for `setcred` is getting an extra "Conditional jump" error message. + +Most of the above are not too serious unless you are a heavy user of gdb/vgdb. + +Here is a list of bugfixes since my last report, Q1 2024. + +* Several suppressions added for libc, libc++ and libstdc++ functions +* Improvements to `setcontest` argument checking +* Some more `aio_*` fixes +* Syscall `_sysctlname` was checking the wrong length of the name argument +* New syscall wrappers for `kcmp`, `getrlimitusage`, `close_range`, `fchroot`, `setcred`, `exterrctl`, `inotify_add_watch_at`, `inotify_rm_awtch`, `jail_attach_jd` and `jail_remove_jd` +* Started adding better `ioctl` argument checking +* Fixes to Valgrinds self-checking modes +* Support aarch64 auxv AT_HWCAP, AT_CHERI_STATS, AT_HWCAP3 and AT_HWCAP4 +* Valgrind file descriptor checking has been significantly enhanced and this includes FreeBSD +* Some old code that I could never test for FreeBSD 10 has been removed +* Removed as much as possible FreeBSD version dependent code. This reduces everyday maintenance at the cost of making version-independent regression tests more difficult +* Turn off check for lock created during text handling that will deliberately leak +* Syscall `sigwait` was not correctly dealing with its atypical return value +* Improved checking of `utrace` syscall arguments +* amd64: syscall arguments 7 and 8 were swapped (it turns out that argument 8 is never needed and has been removed) +* amd64: added `sysarch` subcommands `AMD64_SET_TLSBASE` and `AMD_GET_TLSBASE` +* Reduced warnings that get printed in quiet (-q) mode +* Improved checking done by `sysctl` kern.proc.pathname +* Handle `mmap` MAP_STACK and MAP_GUARD +* Syscalls `open*` now produce an error if you try to open the guest exe for writing +* Syscalls `sigwait` and `sigwaitingfo` were too lax in accepting NULL arguments +* Many of the `*at` system calls (like `faccessat`) were not checking that the directory fd is not one of the file descriptors reserved for Valgrind's use +* Function `memalign` now accepts a size of zero