Bug#129613: gcj-3.0: segmentation fault on incorrect input
Package: gcj-3.0
Version: 1:3.0.3-1
Severity: minor
I got gcj to segfault:
% gcj Foo.java
Foo.java:2: 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.
The contents of Foo.java are:
public class Foo {
private foo;
}
Notive how the type of field foo is missing. gcj should report an
error for this file, but it shouldn't crash. It happens somewhere
in java_parse(). I don't have more information because building
a version with debugging symbols was too fiddly and frustrating.
Oh, I did run gcj -v as well:
% gcj -v Foo.java
Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.3/specs
Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.3/../../../libgcj.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.0.3
/usr/lib/gcc-lib/i386-linux/3.0.3/jc1 Foo.java -fuse-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -quiet -dumpbase Foo.java -g1 -version -o /tmp/cc3pjnYN.s
GNU Java version 3.0.3 (i386-linux)
compiled by GNU C version 3.0.3.
Foo.java:2: 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.
Thanks,
Richard Braakman
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux night 2.4.7 #1 Wed Aug 1 21:44:11 EEST 2001 i686
Locale: LANG=C, LC_CTYPE=fi_FI.ISO8859-1
Versions of packages gcj-3.0 depends on:
ii gcc-3.0 1:3.0.3-1 The GNU C compiler.
ii gcc-3.0-base 1:3.0.3-1 The GNU Compiler Collection (base
ii java-common 0.7 Base of all Java packages
ii libc6 2.2.4-7 GNU C Library: Shared libraries an
ii libgcj2-dev 1:3.0.3-1 Java development headers and stati
ii zlib1g 1:1.1.3-18 compression library - runtime
Reply to: