From nobody Fri Jul 10 02:03:22 2026 X-Original-To: dev-commits-src-branches@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 4gxFVL5ppWz6lFdQ for ; Fri, 10 Jul 2026 02:03:22 +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 4gxFVL2wNMz3Nf8 for ; Fri, 10 Jul 2026 02:03:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783649002; 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=NLNoJa5TnJ/+tYZFw9YjSdq7SU5psIpudr8EROszHEw=; b=jjFca2fi8Qd/NkSGkHV9SOM9JTuIlp5CK6LZQoQGUSRe4ySU+et796i1OlnGSH+R0w4Kcl 6u2AAMXAy79od+6bj49fv8uX2QAv7WyU1zQ22hbf4peBtI1wQwqCfeeug7Hl41i1+PKuBi Ete6CH0dh605oFtiZQ2va0bnrq/j25q9J8yqjH7VSf09WxjLw+HRhQmXcymkMRAcGeFAt5 kL9MYRoc4OGz7rTnSPfOe58Z8nMi8O0gNgPIWYxqY6ufExtVWDqc6blgT5A7n1vDYsZIAq Kqh4mmjKkw2wav1XCpdxH4eVoRbwPX+VfwNCEJjJQO3zJqyEWrv1CBrbXPCGTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783649002; a=rsa-sha256; cv=none; b=x39WReIuJa2AeU3IYB9PCMnX4n2SrXKmSmjw6Kjr9V1k0w7Dy+08Uu9GUR45StJ0aLn5EI Vfpq1efw29oLfncinfkHnfK5+MKA5Bg4n4/gp0YMwaF6npYbIYVDtZx3oT8MJOxJXXguZq p89I5rpNXNFLsSp0sZHXGimqy5q05/jZxzxcBQPE++OToAsZHb3HQMKu5bkAr4/NCD00Ps iH/0g9hvhai4j9MsTJ/bDHE65OD6+3qULNqkB0RcaMYCbST5P1s79uuHI/YX0PxryU7DGL yOxclcEyRolKCfbhZ+i1HU3ekbBaeEUl9CUZfR5xUj/Wn9bFn/5iACxXD0dgIA== 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=1783649002; 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=NLNoJa5TnJ/+tYZFw9YjSdq7SU5psIpudr8EROszHEw=; b=yIegCt6+4zJxuwlhIsBTP2g91NJNlhBV12jlosF+hky7AXje0ES69U8Ig9wNZzQD1X90PJ pnp5MeAMxLAj1njiNqZVV/NKO6GmcAuCgElnr/N14nTUU+HBLStPyoifeg/oO8IK1M/bZ3 8FV4GCk+oaFIQeBUg6tN442RU4Suo83Lp1n6zqDh+6sQ2JmhHb321aWaRSnIQpaTocYGJX QqzcQK7qPfCz4ScHZb5It/q7UNYVjRG+OwSaXUOsAur3X21KSiJFW/e1L2GBftwfKPDewE J3NVMTwH0LjN/ZByRo1HfjcG3WpdORw/w27kY+x2TB666elsHY+28QTkhVMDWg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gxFVL1tZ9zZqB for ; Fri, 10 Jul 2026 02:03:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1cb72 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 10 Jul 2026 02:03:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: fe0d7d6ba549 - stable/14 - libcxxrt: Fix diagnostics for derived classes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fe0d7d6ba549673b58d5ef3bb2bc89dd52e8a9c0 Auto-Submitted: auto-generated Date: Fri, 10 Jul 2026 02:03:22 +0000 Message-Id: <6a5052ea.1cb72.1b46bcc8@gitrepo.freebsd.org> The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=fe0d7d6ba549673b58d5ef3bb2bc89dd52e8a9c0 commit fe0d7d6ba549673b58d5ef3bb2bc89dd52e8a9c0 Author: Ed Maste AuthorDate: 2026-06-24 15:06:51 +0000 Commit: Ed Maste CommitDate: 2026-07-10 02:03:06 +0000 libcxxrt: Fix diagnostics for derived classes In terminate_with_diagnostics the cast_to arguments were swapped, so it always failed. The diagnostic handler produced output like "Terminating due to uncaught exception 0x24891e08000 of type std::runtime_error". Now, e->what() will actually be included in the output, e.g. "Terminating due to uncaught exception 0x2bba49208000 'Model file doesn't exist' of type std::runtime_error". Reviewed by: dim Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57822 (cherry picked from commit 3a5c2899fc7bd0865b5aacccc3465e46e9bc6df3) (cherry picked from commit ab1af7bd2f425147e658a32f128a56176b1de059) --- contrib/libcxxrt/exception.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libcxxrt/exception.cc b/contrib/libcxxrt/exception.cc index 5034809a1380..883361bff084 100644 --- a/contrib/libcxxrt/exception.cc +++ b/contrib/libcxxrt/exception.cc @@ -344,7 +344,7 @@ static void terminate_with_diagnostics() { if (throw_ti) { std::exception *e = - static_cast(e_ti->cast_to(static_cast(ex+1), throw_ti)); + static_cast(throw_ti->cast_to(static_cast(ex+1), e_ti)); if (e) { fprintf(stderr, " '%s'", e->what());