public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr
@ 2004-06-01 23:50 green at redhat dot com
2004-06-01 23:53 ` [Bug middle-end/15769] [3.5 Regression] " pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: green at redhat dot com @ 2004-06-01 23:50 UTC (permalink / raw)
To: java-prs
Here's another case of blowing the stack. I found this when building xalan from
rhug. No small test case yet. I can't seem to find a work around.
gcj --encoding=ISO-8859-1 -Wno-deprecated
--classpath=upstream/src:/home/green/sources/jhbuild-src/rhug/xalan/upstream/src:/home/green/sources/jhbuild-src/rhug/xalan/../BCEL/upstream/src/java:/home/green/sources/jhbuild-src/rhug/xalan/../jakarta-regexp/upstream/src/java:/home/green/sources/jhbuild-src/rhug/xalan/../cup/upstream:/home/green/sources/jhbuild-src/rhug/xalan/../xerces/upstream/src
-fassume-compiled -g -O2 -c
/home/green/sources/jhbuild-src/rhug/xalan/upstream/src/org/apache/xalan/templates/TemplateSubPatternAssociation.java
-MT upstream/src/org/apache/xalan/templates/TemplateSubPatternAssociation.lo -MD
-MP -MF
.deps/upstream/src/org/apache/xalan/templates/TemplateSubPatternAssociation.TPlo
-fPIC -o
upstream/src/org/apache/xalan/templates/.libs/TemplateSubPatternAssociation.o
gcj: Internal error: Segmentation fault (program jc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
#0 0x0093c62e in vfprintf () from /lib/tls/libc.so.6
#1 0x0095732b in vsprintf () from /lib/tls/libc.so.6
#2 0x0094534d in sprintf () from /lib/tls/libc.so.6
#3 0x080d7952 in create_tmp_var_name (prefix=0x83e78c0 "%s.%lu")
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:301
#4 0x080d79bb in create_tmp_var_raw (type=0xf6ebc000,
prefix=0x83e7bed "iftmp")
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:319
#5 0x080d7ad0 in create_tmp_var (type=0x83e78c0, prefix=0x83e7bed "iftmp")
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:359
#6 0x080dd28c in gimplify_cond_expr (expr_p=0xf5571544, pre_p=0xfe400794,
target=0x83e78c0)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:2356
#7 0x080dfa62 in gimplify_expr (expr_p=0xf5571544, pre_p=0xfe400794,
post_p=0xfe4006f0, gimple_test_f=0x80d6ac8 <is_gimple_condexpr>,
fallback=fb_rvalue)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3201
#8 0x080dd3ab in gimplify_cond_expr (expr_p=0xfe400808, pre_p=0xfe400794,
target=0x83e78c0)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:2408
#9 0x080dfa62 in gimplify_expr (expr_p=0xfe400808, pre_p=0xfe400794,
post_p=0xfe400790, gimple_test_f=0x80d6b84 <is_gimple_stmt>,
fallback=fb_none)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3201
#10 0x080df107 in gimplify_stmt (stmt_p=0xfe400808)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3062
#11 0x080dd1c6 in gimplify_cond_expr (expr_p=0xf55714c0, pre_p=0xfe4008f4,
target=0x83e78c0)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:2375
#12 0x080dfa62 in gimplify_expr (expr_p=0xf55714c0, pre_p=0xfe4008f4,
post_p=0xfe400850, gimple_test_f=0x80d6ac8 <is_gimple_condexpr>,
fallback=fb_rvalue)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3201
#13 0x080dd3ab in gimplify_cond_expr (expr_p=0xfe400968, pre_p=0xfe4008f4,
target=0x83e78c0)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:2408
#14 0x080dfa62 in gimplify_expr (expr_p=0xfe400968, pre_p=0xfe4008f4,
post_p=0xfe4008f0, gimple_test_f=0x80d6b84 <is_gimple_stmt>,
fallback=fb_none)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3201
#15 0x080df107 in gimplify_stmt (stmt_p=0xfe400968)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3062
#16 0x080dd1c6 in gimplify_cond_expr (expr_p=0xf5571410, pre_p=0xfe400a54,
target=0x83e78c0)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:2375
#17 0x080dfa62 in gimplify_expr (expr_p=0xf5571410, pre_p=0xfe400a54,
post_p=0xfe4009b0, gimple_test_f=0x80d6ac8 <is_gimple_condexpr>,
fallback=fb_rvalue)
at /home/green/sources/jhbuild-src/gcc/gcc/gimplify.c:3201
--
Summary: ICE: seemingly infinite recursion through gimplify_expr
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: green at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/15769] [3.5 Regression] ICE: seemingly infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
@ 2004-06-01 23:53 ` pinskia at gcc dot gnu dot org
2004-06-03 12:50 ` belyshev at lubercy dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-01 23:53 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-01 23:50 -------
I almost think this is the same problem as PR 12454 which is for C++ but still the same problem.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |12454
Component|java |middle-end
Keywords| |ice-on-valid-code
Summary|ICE: seemingly infinite |[3.5 Regression] ICE:
|recursion through |seemingly infinite recursion
|gimplify_expr |through gimplify_expr
Target Milestone|--- |3.5.0
Version|unknown |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/15769] [3.5 Regression] ICE: seemingly infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
2004-06-01 23:53 ` [Bug middle-end/15769] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-06-03 12:50 ` belyshev at lubercy dot com
2004-06-03 13:04 ` [Bug java/15769] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: belyshev at lubercy dot com @ 2004-06-03 12:50 UTC (permalink / raw)
To: java-prs
------- Additional Comments From belyshev at lubercy dot com 2004-06-03 12:21 -------
Created an attachment (id=6458)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6458&action=view)
small testcase (158 bytes)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: seemingly infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
2004-06-01 23:53 ` [Bug middle-end/15769] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-03 12:50 ` belyshev at lubercy dot com
@ 2004-06-03 13:04 ` pinskia at gcc dot gnu dot org
2004-06-03 17:30 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 13:04 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 12:50 -------
Confirmed, this is most likely the same bug I fixed in the C/C++ front-ends in that their convert to
truth value does not work right, I will look into it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|middle-end |java
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-06-03 12:50:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: seemingly infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (2 preceding siblings ...)
2004-06-03 13:04 ` [Bug java/15769] " pinskia at gcc dot gnu dot org
@ 2004-06-03 17:30 ` pinskia at gcc dot gnu dot org
2004-06-03 17:31 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 17:30 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 13:04 -------
Yes it is, simple fix:
Index: expr.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/java/expr.c,v
retrieving revision 1.191
diff -u -d -b -w -u -p -r1.191 expr.c
--- expr.c 14 May 2004 02:29:32 -0000 1.191
+++ expr.c 3 Jun 2004 13:04:08 -0000
@@ -160,12 +160,16 @@ java_truthvalue_conversion (tree expr)
switch (TREE_CODE (expr))
{
- case EQ_EXPR:
- case NE_EXPR: case LE_EXPR: case GE_EXPR: case LT_EXPR: case GT_EXPR:
+ case EQ_EXPR: case NE_EXPR: case UNEQ_EXPR: case LTGT_EXPR:
+ case LE_EXPR: case GE_EXPR: case LT_EXPR: case GT_EXPR:
+ case UNLE_EXPR: case UNGE_EXPR: case UNLT_EXPR: case UNGT_EXPR:
+ case ORDERED_EXPR: case UNORDERED_EXPR:
case TRUTH_ANDIF_EXPR:
case TRUTH_ORIF_EXPR:
case TRUTH_AND_EXPR:
case TRUTH_OR_EXPR:
+ case TRUTH_XOR_EXPR:
+ case TRUTH_NOT_EXPR:
case ERROR_MARK:
return expr;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: seemingly infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (3 preceding siblings ...)
2004-06-03 17:30 ` pinskia at gcc dot gnu dot org
@ 2004-06-03 17:31 ` pinskia at gcc dot gnu dot org
2004-06-03 17:42 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 17:31 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 17:30 -------
Actually I tested the patch and works for me, I will be posting it soon.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: seemingly infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (4 preceding siblings ...)
2004-06-03 17:31 ` pinskia at gcc dot gnu dot org
@ 2004-06-03 17:42 ` pinskia at gcc dot gnu dot org
2004-06-03 17:43 ` [Bug java/15769] [3.5 Regression] ICE: " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 17:42 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 17:31 -------
Mine.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (5 preceding siblings ...)
2004-06-03 17:42 ` pinskia at gcc dot gnu dot org
@ 2004-06-03 17:43 ` pinskia at gcc dot gnu dot org
2004-06-03 21:48 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 17:43 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 17:42 -------
It is not seemingly infinite loop, it is an infinite loop.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|12454 |
Summary|[3.5 Regression] ICE: |[3.5 Regression] ICE:
|seemingly infinite recursion|infinite recursion through
|through gimplify_expr |gimplify_expr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (6 preceding siblings ...)
2004-06-03 17:43 ` [Bug java/15769] [3.5 Regression] ICE: " pinskia at gcc dot gnu dot org
@ 2004-06-03 21:48 ` pinskia at gcc dot gnu dot org
2004-06-08 13:30 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 21:48 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 17:43 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00171.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (7 preceding siblings ...)
2004-06-03 21:48 ` pinskia at gcc dot gnu dot org
@ 2004-06-08 13:30 ` cvs-commit at gcc dot gnu dot org
2004-06-08 13:31 ` cvs-commit at gcc dot gnu dot org
2004-06-08 18:51 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-08 13:30 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-08 13:27 -------
Subject: Bug 15769
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-06-08 13:27:40
Modified files:
gcc/java : ChangeLog expr.c
Log message:
2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
PR java/15769
* expr.c (java_truthvalue_conversion): Handle
UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
i.e. return the expression.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1378&r2=1.1379
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/expr.c.diff?cvsroot=gcc&r1=1.191&r2=1.192
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (8 preceding siblings ...)
2004-06-08 13:30 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-08 13:31 ` cvs-commit at gcc dot gnu dot org
2004-06-08 18:51 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-08 13:31 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-08 13:30 -------
Subject: Bug 15769
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-06-08 13:30:33
Modified files:
libjava/testsuite: ChangeLog-old
Added files:
libjava/testsuite/libjava.compile: PR15769.java
Log message:
2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
PR java/15769
* libjava.compile/PR15769.java: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/ChangeLog-old.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.compile/PR15769.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15769] [3.5 Regression] ICE: infinite recursion through gimplify_expr
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
` (9 preceding siblings ...)
2004-06-08 13:31 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-08 18:51 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-08 18:51 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-08 13:31 -------
Fixed, thanks again for your report.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15769
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-06-08 13:31 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-01 23:50 [Bug java/15769] New: ICE: seemingly infinite recursion through gimplify_expr green at redhat dot com
2004-06-01 23:53 ` [Bug middle-end/15769] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-03 12:50 ` belyshev at lubercy dot com
2004-06-03 13:04 ` [Bug java/15769] " pinskia at gcc dot gnu dot org
2004-06-03 17:30 ` pinskia at gcc dot gnu dot org
2004-06-03 17:31 ` pinskia at gcc dot gnu dot org
2004-06-03 17:42 ` pinskia at gcc dot gnu dot org
2004-06-03 17:43 ` [Bug java/15769] [3.5 Regression] ICE: " pinskia at gcc dot gnu dot org
2004-06-03 21:48 ` pinskia at gcc dot gnu dot org
2004-06-08 13:30 ` cvs-commit at gcc dot gnu dot org
2004-06-08 13:31 ` cvs-commit at gcc dot gnu dot org
2004-06-08 18:51 ` 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).