[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gcj-3.1 ICE



>Submitter-Id:	net
>Originator:	"Richard Braakman" <dark@xs4all.nl>
>Organization:	The Debian Project
>Confidential:	no
>Synopsis:	
>Severity:	serious
>Priority:	medium
>Category:	java
>Class:		ice-on-legal-code
>Release:	3.1 (Debian) (Debian unstable)
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
	
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
>Description:
[ Reported to the Debian BTS as report #152501.
  Please CC 152501@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/152501 ]

Rechecked with gcc-3_1-branch 20020606.

Hello, I found code on which gcj crashes.  I reduced it to a minimal test
case, and in the process found a workaround, so I'm happy :)  But here's
the test case:

File Main.java:
import pkg.sub;

class Main {
        public static void progressMessage(String msg) {
                System.out.println(msg);
        }

        public static void main(String[] args) {
                new sub();
        }
}


File pkg/sub.java:
package pkg;

public class sub {
        public sub() {
                        Main.progressMessage("Foo");
        }
}


Compilation:
% gcj-3.1 -I. -c Main.java -o Main.o
% gcj-3.1 -I. -c pkg/sub.java -o pkg/sub.o
pkg/sub.java:5: 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.

I think the problem is also present upstream, because I got the same crash
with a non-debian version of gcj 3.1.  Changing "class Main" to
"public class Main" will make the crash go away.

Richard Braakman

	
>How-To-Repeat:
	
>Fix:
	


-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: