This is the mail archive of the gcc-prs@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]

java/7304: gcj-3.1 ICE


>Number:         7304
>Category:       java
>Synopsis:       gcj-3.1 ICE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 14 04:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     "Richard Braakman" <dark@xs4all.nl>
>Release:        3.1 (Debian) (Debian unstable)
>Organization:
The Debian Project
>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:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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