From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16372 invoked by alias); 21 Jan 2012 09:09:28 -0000 Received: (qmail 16363 invoked by uid 22791); 21 Jan 2012 09:09:27 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Jan 2012 09:08:33 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/51928] New: ICE: SIGSEGV in lookup_fnfields_idx_nolazy (search.c:1384) with -fgnu-tm on invalid code Date: Sat, 21 Jan 2012 10:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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-01/txt/msg02404.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51928 Bug #: 51928 Summary: ICE: SIGSEGV in lookup_fnfields_idx_nolazy (search.c:1384) with -fgnu-tm on invalid code Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 26400 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26400 preprocessed source (testsuite/g++.dg/parse/crash54.C) Compiler output: $ gcc -fgnu-tm crash54.ii ==30972== Invalid read of size 1 ==30972== at 0x6E45BD: lookup_fnfields_idx_nolazy(tree_node*, tree_node*) (search.c:1384) ==30972== by 0x6E833F: look_for_overrides_here(tree_node*, tree_node*) (search.c:2026) ==30972== by 0x634E10: look_for_tm_attr_overrides(tree_node*, tree_node*) (class.c:4335) ==30972== by 0x65149B: finish_struct_1(tree_node*) (class.c:4355) ==30972== by 0x6533EC: finish_struct(tree_node*, tree_node*) (class.c:6215) ==30972== by 0x67F0FE: cp_parser_type_specifier(cp_parser*, int, cp_decl_specifier_seq*, bool, int*, bool*) (parser.c:17977) ==30972== by 0x6930CF: cp_parser_decl_specifier_seq(cp_parser*, int, cp_decl_specifier_seq*, int*) (parser.c:10701) ==30972== by 0x695A56: cp_parser_simple_declaration(cp_parser*, bool, tree_node**) (parser.c:10351) ==30972== by 0x69C187: cp_parser_block_declaration(cp_parser*, bool) (parser.c:10300) ==30972== by 0x6A13EB: cp_parser_declaration(cp_parser*) (parser.c:10196) ==30972== by 0x69FFF7: cp_parser_declaration_seq_opt(cp_parser*) (parser.c:10082) ==30972== by 0x6A1962: c_parse_file() (parser.c:3791) ==30972== by 0x79F814: c_common_parse_file() (c-opts.c:1117) ==30972== by 0xB8104F: toplev_main(int, char**) (toplev.c:557) ==30972== by 0x66E009C: (below main) (in /lib64/libc-2.13.so) ==30972== Address 0x4 is not stack'd, malloc'd or (recently) free'd ==30972== /mnt/svn/gcc-trunk/gcc/testsuite/g++.dg/parse/crash54.C:10:8: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Tested revisions: r183351 - crash