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]

Re: gcj 4.0.2 seg fault


The seg fault goes away if I split out the en_us.jar compilation
into one of its own.  I haven't tested all possible combinations,
but what I'm running successfully now is (copied directly
from a bash shell script that I'm using to play with this):

############
GCJ_FLAGS="-O2 -fno-bounds-check -fno-store-check -fjni"

freetts()
{
   echo ""
   echo lib freetts
   gcj $GCJ_FLAGS \
       -I ~/tts/freetts/lib/jsapi.jar \
       -I /opt/IBMJava2-142/jre/lib/graphics.jar  \
       -I ~/tts/freetts/lib/cmulex.jar \
       -I ~/tts/freetts/lib/en_us.jar \
       -c -o $TLIB/libfreetts.so \
       $CVS_DIR/tools/lib/freetts.jar \
       $CVS_DIR/tools/lib/cmulex.jar \
       $CVS_DIR/tools/lib/cmu_us_kal.jar
}

en_us()
{
   echo ""
   echo lib en_us
   gcj $GCJ_FLAGS \
       -I ~/tts/freetts/lib/freetts.jar \
       -I ~/tts/freetts/lib/jsapi.jar \
       -I /opt/IBMJava2-142/jre/lib/graphics.jar  \
       -I ~/tts/freetts/lib/cmulex.jar \
       -I ~/tts/freetts/lib/en_us.jar \
       -c -o $TLIB/liben_us.so \
       $CVS_DIR/tools/lib/en_us.jar
}
##############

but if I try to run the combined from above:

##############
breaks()
{
   echo ""
   echo lib breaks
   gcj $GCJ_FLAGS \
       -I ~/tts/freetts/lib/jsapi.jar \
       -I /opt/IBMJava2-142/jre/lib/graphics.jar  \
       -I ~/tts/freetts/lib/freetts.jar \
       -I ~/tts/freetts/lib/cmulex.jar \
       -I ~/tts/freetts/lib/en_us.jar \
       -c -o $TLIB/libbreaks.so \
       $CVS_DIR/tools/lib/freetts.jar \
       $CVS_DIR/tools/lib/cmulex.jar \
       $CVS_DIR/tools/lib/cmu_us_kal.jar \
       $CVS_DIR/tools/lib/en_us.jar
}
##############

I get the seg fault error message:

lib breaks
com/sun/speech/freetts/en/us/CMUDiphoneVoice.java:0: internal compiler error: Segmentation fault
Please submit a full bug report,


My hardware is a system I pieced together about half a year ago,
Athlon 64+ 3000 939 with 1G RAM.  I'm running current stable Ubuntu
x86, i.e. not 64 bit flavor.  gcj version:

##############
$ gcj -v
Using built-in specs.
Reading specs from /usr/lib/gcc/i486-linux-gnu/4.0.2/../../../libgcj.spec
rename spec lib to liborig
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --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 --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
##############


What other information would be useful?


Heitzso writes:
> Trying to compile the freetts jars with gcj 4.0.2, I get:
> > com/sun/speech/freetts/en/us/CMULexicon.java:0: internal compiler error: > Segmentation fault
> Please submit a full bug report, with preprocessed source if appropriate.
> > The gcj command line is:
> GCJ_FLAGS="-O2 -fno-bounds-check -fno-store-check"
> gcj $GCJ_FLAGS \
> -I lib/jsapi.jar \
> -I /opt/IBMJava2-142/jre/lib/graphics.jar \
> -I lib/cmulex.jar \
> -I lib/en_us.jar \
> -c -o $TLIB/libfreetts.so \
> lib/freetts.jar lib/en_us.jar
> > The problem class is in en_us.jar
> > I'm trying to work around this. I have access to the original
> source .java files for the problem jar and may be able to
> compile the library from the java files that way. > > But I'm still curious if this seg fault behavior is known.


Not necessarily, no.  It's hard to be sure, because you've given us
very little to go on.

Andrew.




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