From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31412 invoked by alias); 2 Jan 2012 05:14:43 -0000 Received: (qmail 31401 invoked by uid 22791); 2 Jan 2012 05:14:40 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Mon, 02 Jan 2012 05:14:25 +0000 From: "hp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/51728] New: [4.7 Regression]: libstdc++ 25_algorithms/count_if/1.cc, 25_algorithms/partition_point/1.cc, 25_algorithms/search/1.cc SEGV ICE Date: Mon, 02 Jan 2012 05:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: regression X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at gcc dot gnu.org 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/msg00053.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51728 Bug #: 51728 Summary: [4.7 Regression]: libstdc++ 25_algorithms/count_if/1.cc, 25_algorithms/partition_point/1.cc, 25_algorithms/search/1.cc SEGV ICE Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, wrong-code Severity: normal Priority: P3 Component: regression AssignedTo: unassigned@gcc.gnu.org ReportedBy: hp@gcc.gnu.org CC: aoliva@gcc.gnu.org Host: x86_64-unknown-linux-gnu Target: cris-axis-elf Created attachment 26215 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26215 25_algorithms/partition_point/1.cc: cc1plus -fpreprocessed 1.ii -quiet -g -O2 -std=gnu++11 -o 1.s These tests previously passed, now they fail. Revision 182760 exposed or caused these regressions. Since then they fail as follows: Running /tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ... FAIL: 25_algorithms/count_if/1.cc (test for excess errors) WARNING: 25_algorithms/count_if/1.cc compilation failed to produce executable FAIL: 25_algorithms/partition_point/1.cc (test for excess errors) WARNING: 25_algorithms/partition_point/1.cc compilation failed to produce executable FAIL: 25_algorithms/search/1.cc (test for excess errors) WARNING: 25_algorithms/search/1.cc compilation failed to produce executable The messages in libstdc++.log are similar: /tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/25_algorithms/partition_point/1.cc: In function 'void test3()': /tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/25_algorithms/partition_point/1.cc:76:1: internal compiler error: Segmentation fault Please submit a full bug report, A gdb backtrace of preprocessed 25_algorithms/partition_point/1.cc (attached) shows: (gdb) r -fpreprocessed 1.ii -quiet -g -O2 -std=gnu++11 -o 1.s Starting program: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/cc1plus -fpreprocessed 1.ii -quiet -g -O2 -std=gnu++11 -o 1.s Program received signal SIGSEGV, Segmentation fault. 0x000000000079c367 in cselib_invalidate_mem (mem_rtx=0x7ffff5aaba38) at /tmp/hpautotest-gcc1/gcc/gcc/cselib.c:2212 2212 if ((*mem_chain)->elt == v) Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-1.x86_64 (gdb) p *mem_chain $1 = (struct elt_list *) 0x0 (gdb) bt #0 0x000000000079c367 in cselib_invalidate_mem (mem_rtx=0x7ffff5aaba38) at /tmp/hpautotest-gcc1/gcc/gcc/cselib.c:2212 #1 0x000000000079d313 in cselib_process_insn (insn=0x7ffff575ad70) at /tmp/hpautotest-gcc1/gcc/gcc/cselib.c:2557 #2 0x0000000000f1498d in vt_initialize () at /tmp/hpautotest-gcc1/gcc/gcc/var-tracking.c:9398 #3 0x0000000000f151ca in variable_tracking_main_1 () at /tmp/hpautotest-gcc1/gcc/gcc/var-tracking.c:9575 #4 0x0000000000f152d3 in variable_tracking_main () at /tmp/hpautotest-gcc1/gcc/gcc/var-tracking.c:9627 #5 0x0000000000b0b265 in execute_one_pass (pass=0x15b23e0) at /tmp/hpautotest-gcc1/gcc/gcc/passes.c:2080 #6 0x0000000000b0b453 in execute_pass_list (pass=0x15b23e0) at /tmp/hpautotest-gcc1/gcc/gcc/passes.c:2135 #7 0x0000000000b0b474 in execute_pass_list (pass=0x15aeda0) at /tmp/hpautotest-gcc1/gcc/gcc/passes.c:2136 #8 0x0000000000b0b474 in execute_pass_list (pass=0x15aed40) at /tmp/hpautotest-gcc1/gcc/gcc/passes.c:2136 #9 0x0000000000c87390 in tree_rest_of_compilation (fndecl=0x7ffff5cdbc00) at /tmp/hpautotest-gcc1/gcc/gcc/tree-optimize.c:421 #10 0x0000000000785f9c in cgraph_expand_function (node=0x7ffff5cd6b40) at /tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1818 #11 0x0000000000786167 in cgraph_expand_all_functions () at /tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1885 #12 0x0000000000786ca8 in cgraph_optimize () at /tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:2198 #13 0x0000000000783c3b in cgraph_finalize_compilation_unit () at /tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1327 #14 0x0000000000555633 in cp_write_global_declarations () at /tmp/hpautotest-gcc1/gcc/gcc/cp/decl2.c:4050 #15 0x0000000000bd24aa in compile_file () at /tmp/hpautotest-gcc1/gcc/gcc/toplev.c:573 #16 0x0000000000bd47f3 in do_compile () at /tmp/hpautotest-gcc1/gcc/gcc/toplev.c:1935 #17 0x0000000000bd496a in toplev_main (argc=9, argv=0x7fffffffe108) at /tmp/hpautotest-gcc1/gcc/gcc/toplev.c:2011 #18 0x00000000006b4460 in main (argc=9, argv=0x7fffffffe108) at /tmp/hpautotest-gcc1/gcc/gcc/main.c:36 Author of suspect revision CC:ed.