From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89252 invoked by alias); 1 Oct 2015 21:24:55 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 89234 invoked by uid 48); 1 Oct 2015 21:24:51 -0000 From: "paulo.cesar.pereira.de.andrade at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug malloc/19048] Avoid corruption of free_list Date: Thu, 01 Oct 2015 21:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paulo.cesar.pereira.de.andrade at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00027.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=19048 --- Comment #3 from Paulo Andrade --- Created attachment 8669 --> https://sourceware.org/bugzilla/attachment.cgi?id=8669&action=edit test.c This is an alternate test case (older, from before detecting the actual problem), that also shows how the patch makes a significant difference. Sample usage of this alternate test case: $ gcc -pthread test.c -o test $ ./test 1000 10000 1000 10 will cause all passes to run very slowly, while: $ MALLOC_ARENA_MAX=1000 ./test 1000 10000 1000 10 allocating one arena per thread, will only be slow in the first pass, but, with the proposed patch, it is "fast" in all passes. -- You are receiving this mail because: You are on the CC list for the bug.