From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97725 invoked by alias); 25 Apr 2019 16:53:04 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 97717 invoked by uid 89); 25 Apr 2019 16:53:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=improvements, HContent-Transfer-Encoding:8bit, noticed X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Apr 2019 16:53:03 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A93671165FE for ; Thu, 25 Apr 2019 12:53:01 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0SA+xHBVzQAV for ; Thu, 25 Apr 2019 12:53:01 -0400 (EDT) Received: from murgatroyd.Home (97-122-168-123.hlrn.qwest.net [97.122.168.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 5CDE7116529 for ; Thu, 25 Apr 2019 12:53:01 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 0/5] More exception-handling improvements Date: Thu, 25 Apr 2019 16:53:00 -0000 Message-Id: <20190425165256.31226-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2019-04/txt/msg00533.txt.bz2 Philippe noticed a memory leak with the new exception-handling code, and when I debugged it, I realized that the current code is relying on undefined behavior: namely, calling longjmp in a context where a destructor would normally run. This series fixes these problems, and provides some other improvements as well. Let me know what you think. Tested on x86-64 Fedora 29. Tom