From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17183 invoked by alias); 7 Aug 2014 01:45:10 -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 16441 invoked by uid 48); 7 Aug 2014 01:45:02 -0000 From: "d.g.gorbachev at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62043] New: [4.9/4.10 Regression] GCC hangs / aborts / double free or corruption (!prev) on invalid input Date: Thu, 07 Aug 2014 01:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: d.g.gorbachev at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: 2014-08/txt/msg00426.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62043 Bug ID: 62043 Summary: [4.9/4.10 Regression] GCC hangs / aborts / double free or corruption (!prev) on invalid input Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: d.g.gorbachev at gmail dot com Created attachment 33265 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33265&action=edit Testcase 2.i:1:0: sorry, unimplemented: inter-module optimizations not implemented for C++ typedef __builtin_va_list __gnuc_va_list; ^ In file included from 2.i:1:0: 4.i:1:0: sorry, unimplemented: inter-module optimizations not implemented for C++ ^ *** Error in `/usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus': double free or corruption (!prev): 0x094e04e8 *** ======= Backtrace: ========= /usr/lib/libc.so.6(+0x6c449)[0xb7e1c449] /usr/lib/libc.so.6(+0x72557)[0xb7e22557] /usr/lib/libc.so.6(+0x72d3d)[0xb7e22d3d] /usr/lib/libc.so.6(fclose+0x14a)[0xb7e129da] /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus(_ZN6fcacheD1Ev+0x17)[0x8f07a8b] /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus(_Z26diagnostic_file_cache_finiv+0x32)[0x8f07b04] /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus(_Z17diagnostic_finishP18diagnostic_context+0x5b)[0x8f0385f] /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus(_Z11toplev_mainiPPc+0xf95)[0x8882674] /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus(main+0x1b)[0x8ef17b9] /usr/lib/libc.so.6(__libc_start_main+0xde)[0xb7dc7e2e] /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus[0x8134f3b] ======= Memory map: ======== 08048000-093de000 r-xp 00000000 00:0b 9771298 /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus 093de000-093e4000 rw-p 01395000 00:0b 9771298 /usr/local/libexec/gcc/i686-pc-linux-gnu/4.10.0/cc1plus 093e4000-09500000 rw-p 00000000 00:00 0 [heap] b7afc000-b7b18000 r-xp 00000000 00:0b 9816159 /usr/lib/libgcc_s.so.1 b7b18000-b7b19000 rw-p 0001b000 00:0b 9816159 /usr/lib/libgcc_s.so.1 b7b2f000-b7db0000 rw-p 00000000 00:00 0 b7db0000-b7f6b000 r-xp 00000000 00:0b 8269221 /usr/lib/libc-2.19.so b7f6b000-b7f6e000 r--p 001ba000 00:0b 8269221 /usr/lib/libc-2.19.so b7f6e000-b7f70000 rw-p 001bd000 00:0b 8269221 /usr/lib/libc-2.19.so b7f70000-b7f72000 rw-p 00000000 00:00 0 b7f72000-b7fbc000 r-xp 00000000 00:0b 8269178 /usr/lib/libm-2.19.so b7fbc000-b7fbd000 r--p 00049000 00:0b 8269178 /usr/lib/libm-2.19.so b7fbd000-b7fbe000 rw-p 0004a000 00:0b 8269178 /usr/lib/libm-2.19.so b7fbe000-b7fc1000 r-xp 00000000 00:0b 8269187 /usr/lib/libdl-2.19.so b7fc1000-b7fc2000 r--p 00002000 00:0b 8269187 /usr/lib/libdl-2.19.so b7fc2000-b7fc3000 rw-p 00003000 00:0b 8269187 /usr/lib/libdl-2.19.so b7fd0000-b7fd9000 rw-p 00000000 00:00 0 b7fd9000-b7fdb000 r--p 00000000 00:00 0 b7fdb000-b7fdc000 r-xp 00000000 00:00 0 [vdso] b7fdc000-b7ffd000 r-xp 00000000 00:0b 8269205 /usr/lib/ld-2.19.so b7ffd000-b7ffe000 rw-p 00000000 00:00 0 b7ffe000-b7fff000 r--p 00021000 00:0b 8269205 /usr/lib/ld-2.19.so b7fff000-b8000000 rw-p 00022000 00:0b 8269205 /usr/lib/ld-2.19.so bffdf000-c0000000 rw-p 00000000 00:00 0 [stack] 2.i:1:0: internal compiler error: Aborted typedef __builtin_va_list __gnuc_va_list; ^ 0x8880092 crash_signal ../../gcc-4.10/gcc/toplev.c:337 0x8f07a8a fcache::~fcache() ../../gcc-4.10/gcc/input.c:348 0x8f07b03 diagnostic_file_cache_fini() ../../gcc-4.10/gcc/input.c:193 0x8f0385e diagnostic_finish(diagnostic_context*) ../../gcc-4.10/gcc/diagnostic.c:180 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. GCC 4.7/4.8 just say sorry, unimplemented.