From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from luna.jdemille.com (luna.jdemille.com [168.119.233.50]) by sourceware.org (Postfix) with ESMTPS id B5B4E3858C56; Mon, 15 Jan 2024 17:31:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B5B4E3858C56 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=jdemille.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jdemille.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B5B4E3858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=168.119.233.50 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705339872; cv=none; b=WHDXqPgxhaWgjlNpQ7DtyXC3o/F2CRhHZ8iNvtkKzcKM6t6a3hJFVWq2Z9yAoR0NDoHRisktekcweh+9TW0uk2woQQjZXTEZRlE+4JffKGBq5cmu7wH/EWrZFSNklxwHN4JkbUMLkFglK+TnyzI5DwU8oJ1j/XGGESwx765GQLw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705339872; c=relaxed/simple; bh=M4RlveuLHnlJHGfw5S4/qvatTjwBf3NXdEe9dDqYW6c=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To; b=SKVUrC7ajgsI/KXi2M5JdI8gJ5p7rT0jp3Ty/4SajoGZAm83zz7mdZYyQ7sEKDQyqNQyrVnbjXvtCpE4Re2as0lAOOXeWdKyj2eWKObBJSfdNqqaXUgPlCJYiL9pFocVQ1lnQpQPeXy9nwERGw+mYbeuGU9/TJKa8ldXBvXPZkU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 575D840D69; Mon, 15 Jan 2024 17:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jdemille.com; s=mc20210101; t=1705339868; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=kORLC+7adqPlvHP4i1KXcPWRBD37PQuYVTCBk65Xo3Y=; b=TD9hb1x21rUR0BG8pOOWB8M1lk8kacSs0tiAyD311tAqCEK0FoFg9xI69BFZVnV7+zafr8 2A8X9AtJNndjXO0XqGgTU+D4R7zGk19tSN2YptvSwyt26SgfR74dbhBJZY5iZJD/P5neT3 f5Obh3UstpFmxtuhmMpiUxltGwucQIfSA9ZhlnHBuEbDlcwj3XVkwAT4UpKrmDWHsZpwZA VCOxI+u6k5LzPxV48N2MewGFU2dWfDEVEnjuCxJCyFiZfOz374FX2kneuZEt+KRATXLZxy C95mJTag6SA9f3baPsOAvlWwADSngxdzxcDHgwV2/rwmSxhdv1iTJcYbmFn0Dqh02nsyE9 Q0ft6+TRNbgCn5YFf+yTw5Djculg+QugEbH/ckwAs7vfKnd82LeFN8SbpY7Doo+0M5ju/+ cuUwy7TdyL4BGPqjJzMWT9XoeZApwTaSpqw91mbKwFMeau5uuGvIjpi495LvYU8WktzuT+ krkQ3xVQpnovrdkjARzvtMmppOIQkxKrEUJXstC0dFy3nkeDQALBVhS9r2V4xWrpjaMH+W XKAPZO2FPb7LI+pR6JWd7W3TlkNFxL9SZpr3TVGGw9/W9+s32Db3CU6D0ZzRNW7EgOVYGj TGJeHjnSQC9DaPe5D7S7QV8FTNwgif8wQFJ7/kLOhk7G2F3L5EgUw= Message-ID: Date: Mon, 15 Jan 2024 11:31:05 -0600 MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [PATCH] libsupc++: Fix UB terminating on foreign exception From: Julia DeMille To: Jonathan Wakely Cc: Andrew Pinski , gcc-patches , libstdc++ References: <20240114000534.1775261-1-me@jdemille.com> <4e73bdee-b91d-40f8-8fa2-738e525b8835@jdemille.com> <8acf8aa2-488d-4321-8555-8bdabfa89b23@jdemille.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Some more info: On 2024-01-14 21:39, Julia DeMille wrote: > I've gotten this to work, and run into an unexpected situation. > Something about the personality routine is causing a SIGABRT. > Investigating further. This occurs due to an assertion in _Unwind_SetGR. Seemingly, the compiler intrinsic `__builtin_eh_return_data_regno` is doing something it *really* should not. I'm not a compiler developer, and have no clue how to investigate this. This issue does not occur with Rust. Additionally, LLVM's libc++abi manages not only to cleanly handle a Rust panic, but also, through some voodoo magic that took me by surprise, recognize Objective-C exceptions (and provide info on them) in its terminate handler. Perhaps due to Objective-C++? Hell if I know. Thought it was worth mentioning that other implementations *have* gotten this working, though. -- Thanks, Julia DeMille she/her