This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: gcc bug


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/



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