public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/11714] New: assert in static member class crashes gcj
@ 2003-07-29 19:49 ingolia at mit dot edu
  2003-07-29 19:50 ` [Bug java/11714] " ingolia at mit dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ingolia at mit dot edu @ 2003-07-29 19:49 UTC (permalink / raw)
  To: gcc-bugs

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);
  }

}


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/11714] assert in static member class crashes gcj
  2003-07-29 19:49 [Bug java/11714] New: assert in static member class crashes gcj ingolia at mit dot edu
@ 2003-07-29 19:50 ` ingolia at mit dot edu
  2003-07-29 19:50 ` ingolia at mit dot edu
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ingolia at mit dot edu @ 2003-07-29 19:50 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From ingolia at mit dot edu  2003-07-29 19:50 -------
Created an attachment (id=4509)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4509&action=view)
Lineof.java for the test case


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/11714] assert in static member class crashes gcj
  2003-07-29 19:49 [Bug java/11714] New: assert in static member class crashes gcj ingolia at mit dot edu
  2003-07-29 19:50 ` [Bug java/11714] " ingolia at mit dot edu
@ 2003-07-29 19:50 ` ingolia at mit dot edu
  2003-07-29 20:01 ` pinskia at physics dot uc dot edu
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ingolia at mit dot edu @ 2003-07-29 19:50 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From ingolia at mit dot edu  2003-07-29 19:50 -------
Created an attachment (id=4508)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4508&action=view)
CMap.java for test case


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/11714] assert in static member class crashes gcj
  2003-07-29 19:49 [Bug java/11714] New: assert in static member class crashes gcj ingolia at mit dot edu
  2003-07-29 19:50 ` [Bug java/11714] " ingolia at mit dot edu
  2003-07-29 19:50 ` ingolia at mit dot edu
@ 2003-07-29 20:01 ` pinskia at physics dot uc dot edu
  2003-12-30  0:07 ` pinskia at gcc dot gnu dot org
  2003-12-30  0:08 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 20:01 UTC (permalink / raw)
  To: gcc-bugs

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-29 20:01:43
               date|                            |
   Target Milestone|3.4                         |---


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-29 20:01 -------
I can confirm this on the mainline (20030729) and 3.3.1 (20030707).

Here is the backtrace:

#0  0x0804a98a in java_get_unicode () at lex.c:646
#1  0x0804b085 in do_java_lex (java_lval=0xbffeb948) at lex.c:957
#2  0x0804c95e in java_lex (java_lval=0x6f466665) at lex.c:1715
#3  0x0804d784 in java_parse () at bison.simple:573
#4  0x080bf8b5 in parse_source_file_1 (file=0x6f466665, finput=0x6f466665)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/java/jcf-parse.c:834
#5  0x080bec42 in read_class (name=0x8554f00) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
java/jcf-parse.c:517
#6  0x080bee19 in load_class (class_or_name=0x8554f00, verbose=0) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/java/jcf-parse.c:586
#7  0x0805f722 in qualify_and_find (class_type=0x4007972c, package=0x6f466665, 
name=0x6f466665) at parse.y:5857
#8  0x0805f36a in do_resolve_class (enclosing=0x0, class_type=0x4007972c, decl=0x4004c500, 
cl=0x4004c480) at parse.y:5775
#9  0x0805f220 in do_resolve_class (enclosing=0x400790d8, class_type=0x4007921c, 
decl=0x4004c500, cl=0x4004c480) at parse.y:5714
#10 0x0805eed0 in resolve_class (enclosing=0x6f466665, class_type=0x4007921c, 
decl=0x6f466665, cl=0x4004c480) at parse.y:5675
#11 0x0805e8e4 in jdep_resolve_class (dep=0x85536a0) at parse.y:5472
#12 0x0805eaa8 in java_complete_class () at parse.y:5529
#13 0x080bf8cb in parse_source_file_2 () at /home/gates/pinskia/src/gnu/gcc/src/gcc/java/jcf-
parse.c:844
#14 0x080bfd61 in java_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/java/jcf-parse.c:1095
#15 0x0831473a in compile_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:1750
#16 0x083191cb in do_compile () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:4560
#17 0x083192dd in toplev_main (argc=1866884709, argv=0xbffec484) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/toplev.c:4601
#18 0x080d88db in main (argc=1866884709, argv=0x6f466665) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/main.c:35


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/11714] assert in static member class crashes gcj
  2003-07-29 19:49 [Bug java/11714] New: assert in static member class crashes gcj ingolia at mit dot edu
                   ` (2 preceding siblings ...)
  2003-07-29 20:01 ` pinskia at physics dot uc dot edu
@ 2003-12-30  0:07 ` pinskia at gcc dot gnu dot org
  2003-12-30  0:08 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-30  0:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-30 00:06 -------
*** Bug 13508 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rmerkert at alphatech dot
                   |                            |com


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/11714] assert in static member class crashes gcj
  2003-07-29 19:49 [Bug java/11714] New: assert in static member class crashes gcj ingolia at mit dot edu
                   ` (3 preceding siblings ...)
  2003-12-30  0:07 ` pinskia at gcc dot gnu dot org
@ 2003-12-30  0:08 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-30  0:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-30 00:07 -------
This is a dup of bug 13508.

*** This bug has been marked as a duplicate of 13508 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-12-30  0:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29 19:49 [Bug java/11714] New: assert in static member class crashes gcj ingolia at mit dot edu
2003-07-29 19:50 ` [Bug java/11714] " ingolia at mit dot edu
2003-07-29 19:50 ` ingolia at mit dot edu
2003-07-29 20:01 ` pinskia at physics dot uc dot edu
2003-12-30  0:07 ` pinskia at gcc dot gnu dot org
2003-12-30  0:08 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).