From nobody Fri Jul 10 15:28:29 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 4gxbML2t81z6lJ6R for ; Fri, 10 Jul 2026 15:28:30 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gxbMK6q90z44CK for ; Fri, 10 Jul 2026 15:28:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783697310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MtTTfaqcgAsp0LCNOUL2AO7+1cWAeURcuXw9Chn4Luw=; b=FKaFY38FeIPrkwMbtKKVQ9K+Ve1w1FaFjd2FYOlW33M4q7vC8Ya03bFnEkUAVnyhVjC9P2 pO6hmBLjM8f6X0Q06vslr91aVgHcYNuL3w5BmC0adfJ56TsHhFJ0M9AFNIG+abm8ahpd7N 3u+kdGaKnhyt00fsZqAzAnYdB71Ce/ELQgj3a5xTYN+ijV3r4sckescufI7cKOdVE7tQhQ uBWfzgzL0AEB3/ctZ8FvD0LP2D96AAlWVaS/rXhAbj258zlOEU3q33N7zli0XhiYGwVCIp CAA193zlHzDIbbFE8Y8BlpQ5aN/U3RUqtrlfvY/RYdQEDjbwFCia+po+fZZlyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783697310; a=rsa-sha256; cv=none; b=EVgM4zVRldQ6Z3ilTLL3unUCKxgChBrCfaDLd16e7FJpFKjoIf8nI1lJHxN7sF+U3sa6FJ Y3deepo/aSX0qb3op1ZCiArYC/9M+CB3+RwIrRyuCwVyTh3LEnE7e6b4HRA32uC1IvqI1V QXyPnziN3wjO0hRW+reV01tabo/Ccf8CTL4X3SxdnzDNeniHWUwdPCIoIQG0tGYC2zC04M YAU1roOdO1VzEEAPKcskTTCqyau2BO3ahCK804wTIbo5RYkYLJElMl1wyGPH5cX0E2TW1O kN0h7P0fEGk0doza9HU+/RdAJcaZHhNDlbapEhppTKT9jSDQVrba2ybFdPuQKw== 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=1783697310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MtTTfaqcgAsp0LCNOUL2AO7+1cWAeURcuXw9Chn4Luw=; b=PR2qo1Tf24zbWtgZQaMtKlDz64vF1vKGN9gFO+yOwkyAeuIWvB9c6glFshhVLobkVRDOVl DGrzjeotvPObrpO3p2B6LyV2g21JHWpR0CyQSio1lMxKw7n8Ni24vVhsSmtbnTJHp9Hu0R D182vkf0VoxGnU9aHqFW8SOHNCf5U7Kf9dejqGrJ2Dtd9XdDZJeVFMi/JbDCX1NlRJW12a oLfl1f3ozwblj0moahiqhwb1+LpFI48d35ur9yeoklxZLHWlOoXaD8R/xLOBzpiyNnjSDH yjeYC1hOvx9vzWIF73wRhsiRFTGPX+EqXsGaxtHV+seN2MCEZoh5U4s93Av8Ug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gxbMK5qC4z11QP for ; Fri, 10 Jul 2026 15:28:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31569 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 10 Jul 2026 15:28:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ricardo Branco From: Mitchell Horne Subject: git: c794fe2a9462 - stable/15 - crashinfo: Create core.txt.last symlink 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: c794fe2a9462e706d0aa47a819de6957e6c1d677 Auto-Submitted: auto-generated Date: Fri, 10 Jul 2026 15:28:29 +0000 Message-Id: <6a510f9d.31569.526f87b0@gitrepo.freebsd.org> The branch stable/15 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=c794fe2a9462e706d0aa47a819de6957e6c1d677 commit c794fe2a9462e706d0aa47a819de6957e6c1d677 Author: Ricardo Branco AuthorDate: 2026-05-15 14:58:41 +0000 Commit: Mitchell Horne CommitDate: 2026-07-10 15:28:09 +0000 crashinfo: Create core.txt.last symlink When saving a coredump, savecore(8) maintains .last symlinks for the info and vmcore artifacts, but not for the crashinfo text report. Make crashinfo(8) create the link, pointing at the current core.txt. file. This makes /var/crash/core.txt.last track the same core dump as info.last and vmcore.last. [mhorne: I tweaked the submission, such that the link will be created as soon as the core.txt.X file is generated; not only after a successful report has been written.] Signed-off-by: Ricardo Branco Reviewed by: mhorne MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/2199 (cherry picked from commit 4dfc78e0e3bb096514455e9bb6cf63e46e84db13) --- usr.sbin/crashinfo/crashinfo.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/crashinfo/crashinfo.sh b/usr.sbin/crashinfo/crashinfo.sh index 68115f09f9d4..87e5565b98e3 100755 --- a/usr.sbin/crashinfo/crashinfo.sh +++ b/usr.sbin/crashinfo/crashinfo.sh @@ -149,11 +149,13 @@ fi VMCORE=$CRASHDIR/vmcore.$DUMPNR INFO=$CRASHDIR/info.$DUMPNR FILE=$CRASHDIR/core.txt.$DUMPNR +LINK=$CRASHDIR/core.txt.last HOSTNAME=`hostname` if $BATCH; then echo "Writing crash summary to $FILE." exec > $FILE 2>&1 + ln -sf $FILE $LINK fi GDB=/usr/local/bin/gdb @@ -204,6 +206,7 @@ machine=$(gdb_command $KERNEL 'printf "%s", machine') if ! $BATCH; then echo "Writing crash summary to $FILE." exec > $FILE 2>&1 + ln -sf $FILE $LINK fi echo "$HOSTNAME dumped core - see $VMCORE"