From nobody Wed Jun 24 17:36:30 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 4glpyW56Mlz6jXyM for ; Wed, 24 Jun 2026 17:36:35 +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 4glpyW4MPtz3Yy9 for ; Wed, 24 Jun 2026 17:36:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782322595; 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=0ceMNsHF55UoB7oKG16eAmbjUIQ0CdXL0hbdA0slabc=; b=te42ZLf3WQhGofoL5n9p2px2+EMEwVRWKjyVe4yjnKRffi2F2SRGY0oWpztCixcg5GLmtR L84lDgUm0WbGet7AlWkTLkLms7QcL17LKA1OG9bwZr1WTuhN/wZGNQZKUvrlWee7d2mtao 5Nu3p48KVFLsK9VR6aj4dzlRUud+ddA+NaFt7dvLnJ/Qu6P6mMCjsF/CTMI64ccv4MT80Y 0JxRNbp8uKNhp6vhD+Gsd+sN7vE04Q5hdhEM+tM4gROrUdFgd5ajYJDlCQQtE9rdFjLVik 0XvPZhnyOMPBYZguWVuM6CiwHkNGQtqMWLasQN0I2iPtkr+qy43kn4Yj9nFpWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782322595; a=rsa-sha256; cv=none; b=IKiMqWoHD6HuECjLhrUXx4sEzyP1MQMrnzfGmA2RrWRVLZH6SRLl+yNVZj7nuJvWbgOmsT mAHnf4Qo8A6v0PJt51Z4VVpPLKpCqtYw6vsjSSOrH5vRU1BbvCIr01PtPrgLme5FFGUQ/5 acpTauDYUEHf56RtmdnVsZMSN+GltgaHSTIsg0WC+LTV5hiXxwrWQ3mSf0v9BwgUXCky/U 0vVswjmSjZcWvRCCIc43UkdYdYneRv6F+0IEJR0Ea61qdLfB0dkBblQpfglV7xheLX7FTR /CxRtoA9KpuamT8KzW0xoILCh8guKrKDFaxOp3+tPul3a9xuu4f7wfCvNsvB1A== 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=1782322595; 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=0ceMNsHF55UoB7oKG16eAmbjUIQ0CdXL0hbdA0slabc=; b=OfglQk9fpcGEXb8+rH9elirpbLTTiovWCMC7mr3fiuyTl9CRWq7uyNfIlFIDyuAM9wvYMD TNIqCNOMGLr1XhLRaSgDkZkwJBNzdV5VBCHk9hWcsGKy59R8FeJL7ZUda+cj1o4FEzfYOs FCg4492HV/e6FfiuP05n6vQpS5MjBll+6ZuePRfZOhPEA586IkehAcA4OstMO5xjlJu2Ju bFr0w+3TaDkCKHXQbS8AxzUooVRQkKEaxZCvLx5Z696RQsZ/0xTkPzsEMbc18eRveu6cxS IkV4ljn0BfHN+WqA6OOmEmQs1DfgjB2/6vR3emR4jQXmyY6G3xRUO6I9Jzg1iQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glpyW3HkYzVDW for ; Wed, 24 Jun 2026 17:36:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3772d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 24 Jun 2026 17:36:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 3a5c2899fc7b - main - 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/main X-Git-Reftype: branch X-Git-Commit: 3a5c2899fc7bd0865b5aacccc3465e46e9bc6df3 Auto-Submitted: auto-generated Date: Wed, 24 Jun 2026 17:36:30 +0000 Message-Id: <6a3c159e.3772d.588a1420@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3a5c2899fc7bd0865b5aacccc3465e46e9bc6df3 commit 3a5c2899fc7bd0865b5aacccc3465e46e9bc6df3 Author: Ed Maste AuthorDate: 2026-06-24 15:06:51 +0000 Commit: Ed Maste CommitDate: 2026-06-24 17:36:13 +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 --- 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());