New compiler crash for PR8361

Gerald Pfeifer gerald@pfeifer.com
Thu Jul 17 13:03:00 GMT 2003


Normally I'd just file a PR, but PR8361 has a critical example for
compile-time performance problems, and since <24 hours (I believe)
mainline now crashes while compiling it with -O3.

  % gccvs -dH -O3 ~/generate-3.4.ii
  generate.C: In function `bool sameComponentInHead(const DEPGRAPH<GATOM,
   GCONSTRAINTS, GPROGRAM>&, const GRULE&, const GATOM&)':
  generate.C:41: internal compiler error: Segmentation fault
  gccvs: Internal error: Abort trap (program cc1plus)

(gdb) bt
#0  0x284dbbac in kill () from /usr/lib/libc.so.4
#1  0x2851d13a in abort () from /usr/lib/libc.so.4
#2  0x0817ec5f in real_abort () at /sw/test/gcc/cvs/gcc/diagnostic.c:1381
#3  0x0817e20a in diagnostic_action_after_output (context=0x1842d,
    diagnostic=0x0) at /sw/test/gcc/cvs/gcc/diagnostic.c:904
#4  0x0817e553 in diagnostic_report_diagnostic (context=0x848cde0,
    diagnostic=0xbfbff2d0) at /sw/test/gcc/cvs/gcc/diagnostic.c:1032
#5  0x0817e8e2 in internal_error (msgid=0x8481f89 "%s")
    at /sw/test/gcc/cvs/gcc/diagnostic.c:1232
#6  0x08327ba7 in crash_signal (signo=0) at /sw/test/gcc/cvs/gcc/toplev.c:1343
#7  <signal handler called>
#8  gt_ggc_mx_cgraph_node (x_p=0x2ef74288) at gtype-desc.c:87
#9  0x0820d915 in gt_ggc_m_P11cgraph_node4htab (x_p=0x297c00c0)
    at gtype-desc.c:1218
#10 0x08209a9a in ggc_mark_roots () at /sw/test/gcc/cvs/gcc/ggc-common.c:111
#11 0x0834e63b in ggc_collect () at /sw/test/gcc/cvs/gcc/ggc-page.c:1767
#12 0x0836c52e in cgraph_finalize_compilation_unit ()
    at /sw/test/gcc/cvs/gcc/cgraphunit.c:236
#13 0x080c530e in finish_file () at /sw/test/gcc/cvs/gcc/cp/decl2.c:2938
#14 0x083285ea in compile_file () at /sw/test/gcc/cvs/gcc/toplev.c:1765
#15 0x0832c8f7 in do_compile () at /sw/test/gcc/cvs/gcc/toplev.c:4606
#16 0x0832c9ed in toplev_main (argc=12, argv=0xbfbff628)
    at /sw/test/gcc/cvs/gcc/toplev.c:4647
#17 0x080497c6 in _start ()
(gdb)

Who did it? :-/

Gerald



More information about the Gcc mailing list