From nobody Fri Jul 10 02:01: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 4gxFSB1rMmz6lFFy for ; Fri, 10 Jul 2026 02:01: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 4gxFSB1Dnnz3Mlg for ; Fri, 10 Jul 2026 02:01:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783648890; 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=dk4IbnqLrWIVDvPsf1MzDJDXGkukSMx75dPlu/Bti9U=; b=DLqDgSXC09oX11joJOJlpt7yyaLKnH5vz+8P+FEwImD3Or2ka8E10aE93g/cqwEgDOAUVx 4i3NOtEYU0PwZbDV9yCQnkGNqfEAzr0dlAQeUZ0Zes7RJdzht8zIqlGAyhSM/edsZWewJT 0Xh4SVKDZezI6exe16Sxgo+J9CRGqc+YiwvIv+WBWDmCk/F9xTQE2zgOO2QhS/GuYcUODU 2bKiUXNbJocLr7roweHvUURlVxABkKcjmESbQn1DTlBXQYAmQ8lu4GIvyVOn4YwqgyFxSJ yszAWUSp/2CRlSltLxBuzs5UeDMfUXYP5XPfzVPOkeKx1WMfLxLxa5Sjug3c4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783648890; a=rsa-sha256; cv=none; b=X1VxCMq30JLxZBMY2uSD/K+aw7JxYee6kWvEGsPRQrfN7LkhhFu2AL/VS1seLBwk7jko31 JtCu3FOc4XdUTaJWJ4btbUK2DIBw0WbRKklGJt74+ZvDLZ4ehsfdm7+b0SDQ70rqmqIZJi sQ9ZelFOB52MtUKc4XMo9nJBpAT77r9DPFNOglAOdS0YbMo074n1RUzXlePL/OtkPoKs9P QNe+saIA/AKC4XgylxR8X7ITGJRfl9c8e+KhlvDiR5T4zri5NYsxiXxnngaPkexrFer8xS AXoDYKksiLYX4CZzxORrREpdyInGd6frCHGA5RThSdad1D/m4EwDVpY1U4mGyA== 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=1783648890; 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=dk4IbnqLrWIVDvPsf1MzDJDXGkukSMx75dPlu/Bti9U=; b=IWGV+XOY8keMO41OmJxYFw6hmUJVNUXzqEBXHmt7D3OooBJt2TSd4AvgoBH8ody9cgib6f l3XbKtLjYhaloqbvRARCSYIZeaG7VlLBTkkyIm7eWEUAQOeTsh4kQg9A6IYyqkgOVki17Y oIDEui9S4ObdvWNsGy/l1llxZx2qi9pxm4FGM/oAHQpK7NoERmfcuQVc35R2rR/crEDu/F j834WUnhCWZWaAdf6W5ruhCeXBllv8of8Mr0Ew8xGYNZgnzqqMAeB4YX2KcJEl8PgGFYJa lou1G+iTYxsD3b+0wXPdEsppKc1r1XCU21YMZvx7GDGh3sva3BZfwHV3sIelmA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gxFSB0H7CzbfM for ; Fri, 10 Jul 2026 02:01:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e68b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 10 Jul 2026 02:01:24 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: ab1af7bd2f42 - stable/15 - libcxxrt: Fix diagnostics for derived classes 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ab1af7bd2f425147e658a32f128a56176b1de059 Auto-Submitted: auto-generated Date: Fri, 10 Jul 2026 02:01:24 +0000 Message-Id: <6a505274.1e68b.1c537979@gitrepo.freebsd.org> The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ab1af7bd2f425147e658a32f128a56176b1de059 commit ab1af7bd2f425147e658a32f128a56176b1de059 Author: Ed Maste AuthorDate: 2026-06-24 15:06:51 +0000 Commit: Ed Maste CommitDate: 2026-07-10 02:01:12 +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) --- 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());