gcc bug

Ranjit Mathew rmathew@hotmail.com
Thu Aug 28 11:59:00 GMT 2003


Vadim,

    It would be better if you could post the
source code for StudentsOrder.java (or better
yet, the smallest code fragment that consistently
shows the problem). The assember file you have
attached is incomplete.

Ranjit.

PS: Questions about GCJ (the GNU Java Compiler)
are better asked on the GCJ mailing list at
java@gcc.gnu.org.


Vadim Dvorkin wrote:

> Hi,
> I use gcc-3.3.1 on Linux, kernel 2.4.20, for compiling java code 
> I got the next:
> ______________________________________________________________________
> 171 % /usr/bin/javac -v -save-temps StudentsOrder.java 
> StudentsOrder.java: In class `StudentsOrder':
> StudentsOrder.java: In method `StudentsOrder.sort(Student[])':
> StudentsOrder.java:28: 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.
> 
> 173 % gcj -v -save-temps StudentsOrder.java
> Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs
> Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/../../../libgcj.spec
> rename spec lib to liborig
> Configured with: ../src/configure -v 
> --enable-languages=c,c++,java,f77,pascal,ob
> jc,ada,treelang --prefix=/usr --mandir=/usr/share/man 
> --infodir=/usr/share/info 
> --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared 
> --with-system-zlib -
> -enable-nls --without-included-gettext --enable-__cxa_atexit 
> --enable-clocale=gn
> u --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib 
> --enable-objc-gc 
> i386-linux
> Thread model: posix
> gcc version 3.3.1 20030626 (Debian prerelease)
>      /usr/lib/gcc-lib/i386-linux/3.3.1/jc1 StudentsOrder.java 
> -fhash-synchroniza
> tion -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions 
> -fkeep-inli
> ne-functions -quiet -dumpbase StudentsOrder.java -auxbase StudentsOrder 
> -g1 -ver
> sion -o StudentsOrder.s
>      GNU Java version 3.3.1 20030626 (Debian prerelease) (i386-linux)
>             compiled by GNU C version 3.3.1 20030626 (Debian prerelease).
> GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15859
> Class path starts here:
>     ./
>     /usr/share/java/repository/
>     /usr/share/java/libgcj-3.3.1.jar/ (system) (zip)
> StudentsOrder.java: In class `StudentsOrder':
> StudentsOrder.java: In method `StudentsOrder.sort(Student[])':
> StudentsOrder.java:28: 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.
> __________________________________________________________________________    
> 
> There is .s file that was created. See attchmnt.
> 
> 
> ------------------------------------------------------------------------
> 
> 	.file	"StudentsOrder.java"
> 	.file 1 "StudentsOrder.java"
> 	.section	.debug_abbrev,"",@progbits
> .Ldebug_abbrev0:
> 	.section	.debug_info,"",@progbits
> .Ldebug_info0:
> 	.section	.debug_line,"",@progbits
> .Ldebug_line0:
> 	.text
> .Ltext0:


-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/




More information about the Java mailing list