From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24183 invoked by alias); 12 Jan 2015 10:03:30 -0000 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 Received: (qmail 24040 invoked by uid 48); 12 Jan 2015 10:03:19 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/64535] Emergency buffer for exception allocation too small Date: Mon, 12 Jan 2015 10:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00766.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64535 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #34399|0 |1 is obsolete| | Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-01-12 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #8 from Richard Biener --- Created attachment 34418 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34418&action=edit prototype of a variable-size emergency allocator The attached patch implements a new fixed-size arena, variable size object allocator and uses it for the emergency pool (not yet for the dependent exception allocations, but trivial to change those). I welcome libstdc++ coding style issues pointed out and general comments on whether this approach is fine (also unifying the dependent allocations in here). TODO: implement free-list sorting and merging of free-list entries Sofar tested by forcing the use of the emergency allocator (as in the patch, see #if 1) by bootstrapping and testing C++ (hopefully sorted out a last issue, test re-running).