public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13824] New: gcj SEGV with simple .java program
@ 2004-01-23  2:48 tromey at gcc dot gnu dot org
  2004-01-23  3:00 ` [Bug java/13824] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-01-23  2:48 UTC (permalink / raw)
  To: gcc-bugs

public class pr13107_3
{
  public static void main(String[] args)
  {
    for (int i = 0; i < 1; i++)
      {
	try {
	  System.out.println(i);
	}
	finally {
	  if (i == 3)
	    continue;
	}
      }
  }
}


This will be in the libgcj test suite shortly.
This fails with a SEGV when compiled to native with "-c -O3".
It correctly compiles to bytecode.

-- 
           Summary: gcj SEGV with simple .java program
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug java/13824] [3.3/3.4/3.5 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
@ 2004-01-23  3:00 ` pinskia at gcc dot gnu dot org
  2004-01-25 22:21 ` roger at eyesopen dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-23  3:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-23 03:00 -------
Confirmed for 3.3, 3.4, and 3.5, this is a regression from 3.2.3.

The problem is in unsafe_for_reeval somehow with a tree of LABELED_BLOCK_EXPR.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-23 03:00:04
               date|                            |
            Summary|gcj SEGV with simple .java  |[3.3/3.4/3.5 Regression] gcj
                   |program                     |SEGV with simple .java
                   |                            |program
   Target Milestone|---                         |3.3.3


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


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

* [Bug java/13824] [3.3/3.4/3.5 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
  2004-01-23  3:00 ` [Bug java/13824] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-01-25 22:21 ` roger at eyesopen dot com
  2004-01-29 13:13 ` gdr at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: roger at eyesopen dot com @ 2004-01-25 22:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From roger at eyesopen dot com  2004-01-25 22:21 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02759.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |roger at eyesopen dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


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


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

* [Bug java/13824] [3.3/3.4/3.5 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
  2004-01-23  3:00 ` [Bug java/13824] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-01-25 22:21 ` roger at eyesopen dot com
@ 2004-01-29 13:13 ` gdr at gcc dot gnu dot org
  2004-01-29 17:13 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-29 13:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-29 13:13 -------
(In reply to comment #2)
> Patch here: http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02759.html

Roger,

  Please apply for your proposed solution to 3.3.3.  It looks safe
to me.

-- 


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


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

* [Bug java/13824] [3.3/3.4/3.5 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-01-29 13:13 ` gdr at gcc dot gnu dot org
@ 2004-01-29 17:13 ` cvs-commit at gcc dot gnu dot org
  2004-01-29 18:24 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-29 17:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-29 17:13 -------
Subject: Bug 13824

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	sayle@gcc.gnu.org	2004-01-29 17:13:21

Modified files:
	gcc            : ChangeLog tree.c 

Log message:
	PR java/13824
	* tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
	as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
	recursion.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2552&r2=2.2553
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.342&r2=1.343



-- 


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


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

* [Bug java/13824] [3.3/3.4/3.5 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-01-29 17:13 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-29 18:24 ` cvs-commit at gcc dot gnu dot org
  2004-01-29 18:32 ` [Bug java/13824] [3.3 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-29 18:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-29 18:24 -------
Subject: Bug 13824

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	sayle@gcc.gnu.org	2004-01-29 18:24:44

Modified files:
	gcc            : ChangeLog tree.c 

Log message:
	PR java/13824
	* tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
	as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
	recursion.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.99&r2=2.2326.2.100
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.342&r2=1.342.2.1



-- 


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


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

* [Bug java/13824] [3.3 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-01-29 18:24 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-29 18:32 ` pinskia at gcc dot gnu dot org
  2004-01-29 18:58 ` cvs-commit at gcc dot gnu dot org
  2004-01-29 19:02 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29 18:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 18:32 -------
Fixed for 3.4 and 3.5.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3/3.4/3.5 Regression] gcj|[3.3 Regression] gcj SEGV
                   |SEGV with simple .java      |with simple .java program
                   |program                     |


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


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

* [Bug java/13824] [3.3 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-01-29 18:32 ` [Bug java/13824] [3.3 " pinskia at gcc dot gnu dot org
@ 2004-01-29 18:58 ` cvs-commit at gcc dot gnu dot org
  2004-01-29 19:02 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-29 18:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-29 18:58 -------
Subject: Bug 13824

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	sayle@gcc.gnu.org	2004-01-29 18:58:16

Modified files:
	gcc            : ChangeLog tree.c 

Log message:
	PR java/13824
	* tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
	as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
	recursion.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.895&r2=1.16114.2.896
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.282.2.5&r2=1.282.2.6



-- 


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


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

* [Bug java/13824] [3.3 Regression] gcj SEGV with simple .java program
  2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-01-29 18:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-29 19:02 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29 19:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 19:02 -------
Fixed for 3.3.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-01-29 19:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-23  2:48 [Bug java/13824] New: gcj SEGV with simple .java program tromey at gcc dot gnu dot org
2004-01-23  3:00 ` [Bug java/13824] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-01-25 22:21 ` roger at eyesopen dot com
2004-01-29 13:13 ` gdr at gcc dot gnu dot org
2004-01-29 17:13 ` cvs-commit at gcc dot gnu dot org
2004-01-29 18:24 ` cvs-commit at gcc dot gnu dot org
2004-01-29 18:32 ` [Bug java/13824] [3.3 " pinskia at gcc dot gnu dot org
2004-01-29 18:58 ` cvs-commit at gcc dot gnu dot org
2004-01-29 19:02 ` 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).