[Bug tree-optimization/34590] GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4
--- Comment #8 from chris at csamuel dot org 2008-02-03 11:14 --- (In reply to comment #5) > I cannot reproduce this with the current mainline (rev 131696), neither with > the original testcase nor the reduced one. I had hoped to try and confirm whether or not the latest snapshot would fix the problem, but sadly 20080201 does not compile, it has an ICE during the bootstrap: libtool: compile: /home/chris/Downloads/Linux/GCC/gcc-4.3-20080201/chris/gcc/gcj -B/home/chris/Downloads/Linux/GCC/gcc-4.3-20080201/chris/x86_64-unknown-linux-gnu/32/libjava/ -B/home/chris/Downloads/Linux/GCC/gcc-4.3-20080201/chris/gcc/ -ffloat-store -fomit-frame-pointer -fclasspath= -fbootclasspath=../../../../libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -m32 -c -fsource-filename=/home/chris/Downloads/Linux/GCC/gcc-4.3-20080201/chris/x86_64-unknown-linux-gnu/32/libjava/classpath/lib/classes -MT java/awt.lo -MD -MP -MF java/awt.deps @java/awt.list -fPIC -o java/.libs/awt.o gnu/javax/swing/text/html/parser/HTML_401F.java: In class 'gnu.javax.swing.text.html.parser.HTML_401F': gnu/javax/swing/text/html/parser/HTML_401F.java: In method 'gnu.javax.swing.text.html.parser.HTML_401F.defineElements()': gnu/javax/swing/text/html/parser/HTML_401F.java:0: internal compiler error: Segmentation fault I'll try again with Java disabled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34590
[Bug tree-optimization/34590] GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4
--- Comment #9 from chris at csamuel dot org 2008-02-03 12:24 --- (In reply to comment #8) > I'll try again with Java disabled. OK - with --enable-languages=c the 20080201 snapshot built OK and compiles bzip2 with -ftree-parallelize-loops=4 successfully, once I'd copied the libgomp.spec file into the bzip2 directory (it didn't seem to get found automatically in the GCC $prefix/lib64 directory for some reason). This bug looks fixed to me, marking "FIXED", thanks! -- chris at csamuel dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34590
[Bug c/34590] New: GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4
at 0x51521D: dominated_by_p (dominance.c:933) ==24343==by 0x7C45D8: scev_probably_wraps_p (tree-ssa-loop-niter.c:2903) ==24343==by 0xADD298: convert_affine_scev (tree-chrec.c:1192) ==24343==by 0x7B5677: idx_find_step (tree-ssa-loop-ivopts.c:1350) ==24343==by 0x7A2B93: for_each_index (tree-ssa-loop-im.c:195) ==24343==by 0x7B2668: find_interesting_uses_address (tree-ssa-loop-ivopts.c:1518) ==24343==by 0x7B3BEE: find_interesting_uses_stmt (tree-ssa-loop-ivopts.c:1619) ==24343==by 0x7B61E5: tree_ssa_iv_optimize_loop (tree-ssa-loop-ivopts.c:1704) ==24343==by 0x7B779F: tree_ssa_iv_optimize (tree-ssa-loop-ivopts.c:5380) ==24343==by 0x7C4BEC: tree_ssa_loop_ivopts (tree-ssa-loop.c:550) ==24343==by 0x64DA98: execute_one_pass (passes.c:1118) ==24343==by 0x64DC7F: execute_pass_list (passes.c:1171) ==24343== Address 0x8 is not stack'd, malloc'd or (recently) free'd decompress.c: In function ‘BZ2_decompress’: decompress.c:107: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ==24343== ==24343== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 8 from 1) ==24343== malloc/free: in use at exit: 1,610,483 bytes in 6,863 blocks. ==24343== malloc/free: 400,193 allocs, 393,330 frees, 193,077,769 bytes allocated. I will attach the .i file and .s file (which is truncated very early at 192 bytes). -- Summary: GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at csamuel dot org GCC build triplet: x86_64-unknown-linux GCC host triplet: x86_64-unknown-linux GCC target triplet: x86_64-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34590
[Bug c/34590] GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4
--- Comment #2 from chris at csamuel dot org 2007-12-26 09:02 --- Just re-read the section on what's not wanted in a bug report, so I won't attach the .s file after all (unless it's requested later). -- chris at csamuel dot org changed: What|Removed |Added CC| |chris at csamuel dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34590
[Bug c/34590] GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4
--- Comment #1 from chris at csamuel dot org 2007-12-26 08:59 --- Created an attachment (id=14830) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14830&action=view) Preprocessed version of decompress.c from Bzip2 1.0.4 The required .i file from Bzip2 1.0.4 that causes the crash. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34590