GCC segfaults building Apache Cocoon using GCJ I rebuilt GCC using gcc-4.0-20050707.tar.bz2 snapshot, but encountered the same problem
I reduced the offending source file to this test case - http://www.sfu.ca/~jdbates/tmp/gcc/TestSegfault.java I observe compiling this test case produces this output - fis% gcj TestSegfault.java TestSegfault.java: In class 'TestSegfault$2': TestSegfault.java: In method 'TestSegfault$2.bar()': TestSegfault.java:40: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. fis% The following is information about my version of GCC - fis% gcc -v Using built-in specs. Target: powerpc-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-multilib --disable-werror --enable-checking=release powerpc-linux-gnu Thread model: posix gcc version 4.0.1 (Debian 4.0.1+200507130-1) fis% -- Summary: GCJ segfaults building Apache Cocoon Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ms419 at freezone dot co dot uk CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22507