From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8007 invoked by alias); 16 Feb 2010 23:44:11 -0000 Received: (qmail 7785 invoked by uid 48); 16 Feb 2010 23:43:58 -0000 Date: Tue, 16 Feb 2010 23:44:00 -0000 Message-ID: <20100216234358.7784.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43099] rethrowing leaks memory like a sieve In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dan dot colascione at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg01608.txt.bz2 ------- Comment #8 from dan dot colascione at gmail dot com 2010-02-16 23:43 ------- Created an attachment (id=19895) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19895&action=view) bad code The code generated seems to violate the ABI exception handling specification here: http://www.codesourcery.com/public/cxx-abi/abi-eh.html That document states that the caller of void __cxa_rethrow () must call __cxa_end_catch(), but the code for current_ex() generated by gcc 4.5 just returns immediately. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43099