public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1221: Internal error: segfault on invalid cast
@ 2000-12-20 12:22 mkgardne
  0 siblings, 0 replies; only message in thread
From: mkgardne @ 2000-12-20 12:22 UTC (permalink / raw)
  To: java-gnats; +Cc: mkgardne

>Number:         1221
>Category:       java
>Synopsis:       Internal error: segfault on invalid cast
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:17:52 PST 2000
>Closed-Date:    Sat Sep 11 20:20:53 PDT 1999
>Last-Modified:  Sat Sep 11 20:20:53 PDT 1999
>Originator:     Mark K. Gardner
>Release:        2.95
>Organization:
>Environment:
Redhat Linux 2.95 with 2.2.3 kernel
>Description:
I get the following error message with GCJ but no errors with JAVAC and TOBA:

Processor.java:0: Invalid cast from `mkg.realtime.simulator.Task' to `java.lang.Object'.
<<file too short - unexpected EOF>>
^
gcj: Internal compiler error: program jc1 got fatal signal 11

Unfortunately, I can't see where I am doing any casts of that sort. (Anyway, I don't think casting to Object is invalid.)
>How-To-Repeat:
Consistently repeatable on 15K source file but can't
seem to reduce the problem to it's essence. Contact me for
the file.
>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/18

State-Changed-From-To: open->suspended
State-Changed-By: apbianco
State-Changed-When: Sun Aug 22 11:46:51 1999
State-Changed-Why:
    Waiting for the source code to be sent.
State-Changed-From-To: suspended->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Sep  2 12:30:56 1999
State-Changed-Why:
    I can't reproduce the crash under RedHat 6.0, Solaris2.x or
    Debian 2.0 with the latest and greatest from egcs.
    
    But I ran into an other problem and started to work on a
    fix. I haven't yet determined whether the fix is completely
    appropriate or not. 
    
    Mark, can you apply this patch to an up to date tree and 
    tell me how it works for you?
    
    Index: parse.y
    ===================================================================
    RCS file: /cvs/egcs/egcs/gcc/java/parse.y,v
    retrieving revision 1.106
    diff -u -p -r1.106 parse.y
    --- parse.y     1999/08/26 16:51:49     1.106
    +++ parse.y     1999/09/02 19:27:53
    @@ -7595,7 +7595,8 @@ find_applicable_accessible_methods_list 
       tree list = NULL_TREE, all_list = NULL_TREE;
     
       /* Search interfaces */
    -  if (CLASS_INTERFACE (TYPE_NAME (class)))
    +  if (CLASS_INTERFACE (TYPE_NAME (class)) 
    +      || CLASS_ABSTRACT (TYPE_NAME (class)))
         {
           static tree searched_interfaces = NULL_TREE;
           static int search_not_done = 0;
State-Changed-From-To: feedback->closed
State-Changed-By: apbianco
State-Changed-When: Sat Sep 11 20:20:53 1999
State-Changed-Why:
    A patch has been checked in. See:
    
    http://egcs.cygnus.com/ml/gcc-patches/1999-09/msg00561.html
>Unformatted:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:22 java/1221: Internal error: segfault on invalid cast mkgardne

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).