Bug#152501: gcj-3.1: segfault with test case
Package: gcj-3.1
Version: 1:3.1.1-0pre3
Severity: normal
Tags: upstream
(... sorry about the subject line, I couldn't think of any shorter way to
describe this than the test case itself)
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
-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux night 2.4.7 #1 Thu Jun 27 13:02:24 EEST 2002 i686
Locale: LANG=C, LC_CTYPE=fi_FI.ISO8859-1
Versions of packages gcj-3.1 depends on:
ii gcc-3.1 1:3.1.1-0pre3 The GNU C compiler.
ii gcc-3.1-base 1:3.1.1-0pre3 The GNU Compiler Collection (base
ii java-common 0.14 Base of all Java packages
ii libc6 2.2.5-7 GNU C Library: Shared libraries an
ii libgcc1 1:3.1.1-0pre3 GCC support library.
ii libgcj3 1:3.1.1-0pre3 Java runtime library for use with
ii libgcj3-dev 1:3.1.1-0pre3 Java development headers and stati
ii zlib1g 1:1.1.4-1 compression library - runtime
-- no debconf information
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: