public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2012-01-02  5:14 hp at gcc dot gnu.org
  2012-01-02 11:15 ` [Bug middle-end/51728] " rguenth at gcc dot gnu.org
  2012-01-02 13:48 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hp at gcc dot gnu.org @ 2012-01-02  5:14 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/51728] [4.7 Regression]: libstdc++ 25_algorithms/count_if/1.cc, 25_algorithms/partition_point/1.cc, 25_algorithms/search/1.cc SEGV ICE
  2012-01-02  5:14 [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 hp at gcc dot gnu.org
@ 2012-01-02 11:15 ` rguenth at gcc dot gnu.org
  2012-01-02 13:48 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-02 11:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51728

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|regression                  |middle-end
   Target Milestone|---                         |4.7.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/51728] [4.7 Regression]: libstdc++ 25_algorithms/count_if/1.cc, 25_algorithms/partition_point/1.cc, 25_algorithms/search/1.cc SEGV ICE
  2012-01-02  5:14 [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 hp at gcc dot gnu.org
  2012-01-02 11:15 ` [Bug middle-end/51728] " rguenth at gcc dot gnu.org
@ 2012-01-02 13:48 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-02 13:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51728

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-02 13:47:46 UTC ---
ICEs in exactly the same spot as PR51725 and the same fix cures it.

*** This bug has been marked as a duplicate of bug 51725 ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-02 13:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-02  5:14 [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 hp at gcc dot gnu.org
2012-01-02 11:15 ` [Bug middle-end/51728] " rguenth at gcc dot gnu.org
2012-01-02 13:48 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).