[ Reported to the Debian BTS as report #129613. Please CC 129613@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/129613 ] [ checking if gnats still replies to Debian BTS replies ...] [bogus edit] Bug submitter got gcj to segfault: % gcj-3.1 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. Release: 3.1 (Debian) (Debian unstable) Environment: System: Debian GNU/Linux (unstable) Architecture: i686 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii gcc-3.1 3.1-2 The GNU C compiler. ii g++-3.1 3.1-2 The GNU C++ compiler. ii libstdc++4 3.1-2 The GNU stdc++ library version 3 ii libstdc++4-dev 3.1-2 The GNU stdc++ library version 3 (developmen ii binutils 2.12.90.0.7-1 The GNU assembler, linker and binary utiliti ii libc6 2.2.5-6 GNU C Library: Shared libraries and Timezone host: i386-linux configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=$\(prefix\)/share/man --infodir=$\(prefix\)/share/info --with-gxx-include-dir=$\(prefix\)/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
Responsible-Changed-From-To: unassigned->tromey Responsible-Changed-Why: I'm handling this.
State-Changed-From-To: open->closed State-Changed-Why: I've checked in the fix. It will appear in gcc 3.2. (Perhaps it should be ported to 3.1.1?)
From: tromey@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: java/6865 Date: 11 Jun 2002 14:43:57 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: tromey@gcc.gnu.org 2002-06-11 07:43:56 Modified files: gcc/java : ChangeLog parse.y Log message: * parse.y (method_header): Give error message in all cases. Fixes PR java/6865. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1014&r2=1.1015 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.383&r2=1.384
From: tromey@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: java/6865 Date: 11 Jun 2002 14:46:16 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: tromey@gcc.gnu.org 2002-06-11 07:46:13 Modified files: libjava/testsuite: ChangeLog Added files: libjava/testsuite/libjava.compile: PR6865.java Log message: * libjava.compile/PR6865.java: New file. For PR java/6865. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.207&r2=1.208 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.compile/PR6865.java.diff?cvsroot=gcc&r1=NONE&r2=1.1