public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit
@ 2004-06-24 17:26 green at redhat dot com
  2004-06-24 18:55 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth " green at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: green at redhat dot com @ 2004-06-24 17:26 UTC (permalink / raw)
  To: java-prs

I found this regression while building rhug's junit with today's gcj.  I don't
know when the regression first appeared.   It happens while building
TestImplementorTest.java at every -O* level.  No small test case yet.  Here's
the stack trace.

Program received signal SIGSEGV, Segmentation fault.
fold (expr=0xf6cdac48)
    at /home/green/sources/jhbuild-src/gcc/gcc/fold-const.c:5965
5965      enum tree_code code = TREE_CODE (t);
(gdb) where
#0  fold (expr=0xf6cdac48)
    at /home/green/sources/jhbuild-src/gcc/gcc/fold-const.c:5965
#1  0x08094eb0 in layout_class (this_class=0xf6e07e80)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/class.c:2060
#2  0x080c3e78 in read_class (name=0xf6e0b580)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:551
#3  0x080c430d in load_class (class_or_name=0xf6e0be44, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:591
#4  0x080c4559 in load_inner_classes (cur_class=Variable "cur_class" is not
available.
)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:696
#5  0x080c3e7f in read_class (name=0xf6e0b580)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:552
#6  0x080c430d in load_class (class_or_name=0xf6e0be44, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:591
#7  0x080c4559 in load_inner_classes (cur_class=Variable "cur_class" is not
available.
)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:696
#8  0x080c3e7f in read_class (name=0xf6e0b580)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:552
#9  0x080c430d in load_class (class_or_name=0xf6e0be44, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:591
#10 0x080c4559 in load_inner_classes (cur_class=Variable "cur_class" is not
available.
)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:696
etc
etc
etc
etc

-- 
           Summary: jc1 ICE: seemingly infinite loop while compiling junit
           Product: gcc
           Version: 3.5.0
            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
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
@ 2004-06-24 18:55 ` green at redhat dot com
  2004-06-25  9:44 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte mark at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: green at redhat dot com @ 2004-06-24 18:55 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From green at redhat dot com  2004-06-24 17:26 -------
I should have mentioned that the problem is that we're blowing the stack.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|jc1 ICE: seemingly infinite |jc1 ICE: seemingly infinite
                   |loop while compiling junit  |stack growth while compiling
                   |                            |junit


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
  2004-06-24 18:55 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth " green at redhat dot com
@ 2004-06-25  9:44 ` mark at gcc dot gnu dot org
  2004-06-25 10:26 ` mark at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-06-25  9:44 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2004-06-25 09:33 -------
I get the same thing with a recent gcj mainline build (3.5.0 20040625) when
trying to compile the Wonka Visual Test Engine. Just try to compile the following:

gcj -c -o com/acunia/wonka/test/awt/IAA/ComboBox.o
com/acunia/wonka/test/awt/IAA/ComboBox.java

(Comes from sources.redhat.com:/cvs/mauve module wonka)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org
            Summary|jc1 ICE: seemingly infinite |jc1 ICE: seemingly infinite
                   |stack growth while compiling|stack growth while compiling
                   |junit                       |junit or vte


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
  2004-06-24 18:55 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth " green at redhat dot com
  2004-06-25  9:44 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte mark at gcc dot gnu dot org
@ 2004-06-25 10:26 ` mark at gcc dot gnu dot org
  2004-06-25 14:22 ` rmathew at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-06-25 10:26 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2004-06-25 09:44 -------
My failure disappeared when removing all .class files from the build directory.
(Even though I was building from .java source files). The .class files were
generated by an older jikes. Regenerating the .class files with jikes 1.21
doesn't trigger the bug. I'll try to see if I can reproduce it using an older jikes.

-- 


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
                   ` (2 preceding siblings ...)
  2004-06-25 10:26 ` mark at gcc dot gnu dot org
@ 2004-06-25 14:22 ` rmathew at gcc dot gnu dot org
  2004-06-26 20:42 ` mckinlay at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-06-25 14:22 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2004-06-25 10:26 -------
This PR is eerily similar to PR15768 and PR14439.

Anthony, when you do get this dump, can you do a "debug_tree(0xf6e0b580)"
within GDB - this is the class on which read_class(), etc. are choking. (Or
the parameter to load_class() - either should do.)

If you have some time, you might also want to try out:

  http://gcc.gnu.org/ml/gcc-patches/2004-06/msg01589.html

and see if it helps (I'll be committing it tonight anyway).

-- 


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
                   ` (3 preceding siblings ...)
  2004-06-25 14:22 ` rmathew at gcc dot gnu dot org
@ 2004-06-26 20:42 ` mckinlay at redhat dot com
  2004-06-26 20:44 ` mckinlay at redhat dot com
  2004-06-26 22:00 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-26 20:42 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-06-26 20:39 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-26 20:39:24
               date|                            |


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
                   ` (4 preceding siblings ...)
  2004-06-26 20:42 ` mckinlay at redhat dot com
@ 2004-06-26 20:44 ` mckinlay at redhat dot com
  2004-06-26 22:00 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-26 20:44 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-06-26 20:42 -------
Should be fixed by:

2004-06-26  Bryce McKinlay  <mckinlay@redhat.com>
	    Ranjit Mathew  <rmathew@hotmail.com>

	PR java/1207, java/16178
	* jcf-parse.c (load_class): Return immediately if passed a type decl
	where CLASS_FROM_SOURCE_P is set. Remove FIXME.
	* parse.y (do_resolve_class): Remove checks for CLASS_FROM_SOURCE_P
	before calling load_class.
	(qualify_and_find): Likewise.
	(find_in_imports_on_demand): Likewise.
	(find_applicable_accessible_methods_list): Likewise.


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


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


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

* [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte
  2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
                   ` (5 preceding siblings ...)
  2004-06-26 20:44 ` mckinlay at redhat dot com
@ 2004-06-26 22:00 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-26 22:00 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-06-26 20:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-24 17:26 [Bug java/16178] New: jc1 ICE: seemingly infinite loop while compiling junit green at redhat dot com
2004-06-24 18:55 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth " green at redhat dot com
2004-06-25  9:44 ` [Bug java/16178] jc1 ICE: seemingly infinite stack growth while compiling junit or vte mark at gcc dot gnu dot org
2004-06-25 10:26 ` mark at gcc dot gnu dot org
2004-06-25 14:22 ` rmathew at gcc dot gnu dot org
2004-06-26 20:42 ` mckinlay at redhat dot com
2004-06-26 20:44 ` mckinlay at redhat dot com
2004-06-26 22:00 ` 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).