public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: toddastock@yahoo.com
To: gcc-gnats@gcc.gnu.org
Subject: libgcj/5671: verify.cc problem merging local variables
Date: Tue, 12 Feb 2002 10:26:00 -0000	[thread overview]
Message-ID: <200202121819.g1CIJSh16677@localhost.localdomain> (raw)


>Number:         5671
>Category:       libgcj
>Synopsis:       verify.cc problem merging local variables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 12 10:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.1 20020211 (experimental)
>Organization:
>Environment:
System: Linux escher 2.4.9-21 #1 Thu Jan 17 14:16:30 EST 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --enable-threads=posix --prefix=/home/tstock/local --disable-shared --enable-languages=c++,java
>Description:
	During the merging of the local variables if the previous variable is an interface then running through the superclasses leads you directly to NULL eventually thus causing a segmentation fault.
>How-To-Repeat:
import java.io.*;
import java.util.*;

public class Test
  {

  public static void main(String[] args)
    {
      new Test().doit();
    }

  public void doit( )
    {

      String x = "abc";
      try
      {
        Properties props = new Properties();
        Enumeration enum = props.propertyNames();
      }
      catch( Exception e )
      {
      }
      String _x = "def";
      try
      {
        Properties props = new Properties();
        Enumeration enum = props.propertyNames();
      }
      catch( Exception e )
      {
      }
    }

  }
>Fix:
Index: libjava/verify.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libjava/verify.cc,v
retrieving revision 1.35
diff -r1.35 verify.cc
679c679
< 		  while (true)
---
> 		  while (true && k!=NULL)
686a687,692
> 		  if( k == NULL )
> 		    {
> 		      *this = old_type;
> 		      changed = true;
> 		    }
> 		  else
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-02-12 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-12 10:26 toddastock [this message]
2002-02-12 11:06 Todd Stock
2002-02-13  9:15 tromey
2002-02-13  9:16 Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200202121819.g1CIJSh16677@localhost.localdomain \
    --to=toddastock@yahoo.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).