From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31526 invoked by alias); 19 Nov 2012 21:51:06 -0000 Received: (qmail 31082 invoked by uid 48); 19 Nov 2012 21:50:45 -0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/55387] [4.8 Regression] Build problem: malloc error in genautomata Date: Mon, 19 Nov 2012 21:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-11/txt/msg01829.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55387 --- Comment #2 from Jack Howarth 2012-11-19 21:50:44 UTC --- This backtraces on x86_64-apple-darwin12 using llvm-gcc from Xcode 4.5.2 as... # gdb build/genautomata GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug 5 03:00:42 UTC 2012) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done (gdb) break malloc_error_break Function "malloc_error_break" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (malloc_error_break) pending. (gdb) r ../../gcc-4.8-20121119/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c Starting program: /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/build/genautomata ../../gcc-4.8-20121119/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c Reading symbols for shared libraries ++............................. done Breakpoint 1 at 0x7fff94c3a558 Pending breakpoint 1 - "malloc_error_break" resolved genautomata(20415) malloc: *** error for object 0xd4eb75fbff604: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Breakpoint 1, 0x00007fff94c3a558 in malloc_error_break () (gdb) bt #0 0x00007fff94c3a558 in malloc_error_break () #1 0x00007fff94c3b912 in free () #2 0x000000010002a3a1 in va_heap::release (v=@0x7fff5fbff580) at vec.h:317 #3 0x000000010002a3d7 in vec::release (this=0x7fff5fbff580) at vec.h:1485 #4 0x0000000100015e84 in copy_equiv_class (to=0x7fff5fbff580, from={vec_ = 0x100abee00}) at genautomata.c:6030 #5 0x00000001000232f9 in evaluate_equiv_classes (automaton=0x101aa1870, equiv_classes=0x7fff5fbff580) at genautomata.c:6118 #6 0x00000001000234cc in minimize_DFA (automaton=0x101aa1870) at genautomata.c:6260 #7 0x0000000100024919 in build_automaton (automaton=0x101aa1870) at genautomata.c:6350 #8 0x0000000100024ebe in create_automata () at genautomata.c:6779 #9 0x0000000100024f96 in generate () at genautomata.c:9203 #10 0x00000001000252f6 in expand_automata () at genautomata.c:9465 #11 0x00000001000011b0 in main (argc=3, argv=0x7fff5fbff830) at genautomata.c:9656 (gdb)