gcj - java/io/InputStream.java:0: Internal error: Segmentation fault
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Wed Nov 21 15:02:00 GMT 2001
Richard Emberson wrote:
>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.
>
Well, this is a bug with Ant. They are using an undocumented class which
is not part of the official specification. You can't expect it to work
with non-Sun implementations of Java. Ant needs to be fixed to include
its own BASE64 code.
>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?
>
At a guess, GCJ is accidentally trying to parse classes from rt.jar,
which do not match the ones it has already seen in libgcj.jar.
Workaround is to remove rt.jar from your classpath.
regards
Bryce.
More information about the Java
mailing list