This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcj - java/io/InputStream.java:0: Internal error: Segmentation fault



Per bug reporting page (http://www.gnu.org/software/gcc/bugs.html)
I ran my gcj command with the -save-temps and got a 435751 line file, so
I decided not to enter it into the bug reporting system and rather
I am trying my luck here.

First, HelloWorld worked just fine.

System: RedHat Linux 2.4.9-13 i686

The command line:

> /usr/local/gcc/bin/gcj -v -save-temps -o B --CLASSPATH=$CLASSPATH \
--main=org.apache.tools.ant.OUT $FILES

Using jdk1.3.1_01, after about 40 seconds I get the output:

Reading specs from /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/specs
Reading specs from
/usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/../../../libgcj.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../gcc/configure --enable-threads=posix
--prefix=/home/joerg/gcc --enable-shared --enable-languages=c++,java
--with-as=/opt/gnu/bin/as --with-ld=/opt/gnu/bin/ld : (reconfigured)
../gcc/configure --enable-threads=posix --prefix=/usr/local/gcc --enable-shared
--enable-languages=c++,java --with-as=/usr/bin/as --with-ld=/usr/bin/ld
Thread model: posix
gcc version 3.0.2
 /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/jc1 /tmp/ccnmjYHijx
 -fuse-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -quiet -dumpbase
 ccnmjYHijx -g1 -version
 -fCLASSPATH=/home/emberson/java/jf-0_0_4/build/classes:/home/emberson/java/jf-0_0_4/lib/ant.jar:/home/emberson/java/jf-0_0_4/lib/jaxp.jar:/home/emberson/java/jf-0_0_4/lib/crimson.jar:/home/emberson/java/jf-0_0_4/lib/optional.jar:/home/emberson/java/jf-0_0_4/lib/optional/junit.jar:/usr/local/gcc/share/libgcj.jar:/usr/java/jre/lib/rt.jar
 -ffilelist-file -o ccnmjYHijx.s
GNU Java version 3.0.2 (i686-pc-linux-gnu)
     compiled by GNU C version 3.0.2.
java/io/InputStream.java: In class `java.io.InputStream':
java/io/InputStream.java: In method `()':
java/io/InputStream.java:0: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Note that I require having the Sun runtime jar file (rt.jar) in the 
class path because one of Ant's classes uses 'sun.misc.BASE64Encoder'.
I also must place libgcj.jar before the Sun rt.jar so that the correct
java.lang.Object is picked up.


Using jdk1.2.2 after about 40 seconds I get pretty much the same:
......
        compiled by GNU C version 3.0.2.
java/io/FilterInputStream.java:0: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

A different file causes the Internal error: Segmentation fault.

How/where do I start trying to figure out whats wrong?

Thanks.

Richard Emberson


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]