[Bug java/11714] New: assert in static member class crashes gcj

ingolia at mit dot edu gcc-bugzilla@gcc.gnu.org
Tue Jul 29 19:49:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11714

           Summary: assert in static member class crashes gcj
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ingolia at mit dot edu
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-linux

gcj on Debian testing

ingolia@tehuti > gcj -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3.1 20030626 (Debian prerelease)

ingolia@tehuti > gcj -c CMap.java Lineof.java 
./CMap.java:113: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

NOTE: Simply compiling the CMap.java, the actual problematic source file,
doesn't produce the crash.

ingolia@tehuti > cat CMap.java
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class CMap {
  public static final class Posn {
  }


  public static abstract class Obj {
    private CMap map;
    private Posn posn;

    private void clear_old_map()
    {
      assert ((posn == null) == (map == null));
    }
  }

  public interface Wall {
  }
}

ingolia@tehuti > cat Lineof.java
public abstract class Lineof {
  public interface WallLOS {
    int lineof(CMap.Wall w);
  }

  public interface ObjLOS {
    int lineof(CMap.Obj o);
  }

}



More information about the Gcc-bugs mailing list