public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16902] New: GIJ: Garbage collection fails with interpreter
@ 2004-08-06 16:18 mckinlay at redhat dot com
  2004-08-06 16:19 ` [Bug libgcj/16902] " mckinlay at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-06 16:18 UTC (permalink / raw)
  To: java-prs

Garbage collection stress tests fail when run under the interpreter. The actual
error varies, and is usually a bus error or a NullPointerException at random
places in the code. It appears that something is not being marked as it should.

Run the attached test case to reproduce.

The problems mentioned in this thread may be related:

http://gcc.gnu.org/ml/java/2004-07/msg00050.html
http://gcc.gnu.org/ml/java/2004-07/msg00062.html

-- 
           Summary: GIJ: Garbage collection fails with interpreter
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckinlay 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=16902


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

* [Bug libgcj/16902] GIJ: Garbage collection fails with interpreter
  2004-08-06 16:18 [Bug libgcj/16902] New: GIJ: Garbage collection fails with interpreter mckinlay at redhat dot com
@ 2004-08-06 16:19 ` mckinlay at redhat dot com
  2004-08-06 19:57 ` [Bug libgcj/16902] GIJ: Garbage collection related failure " mckinlay at redhat dot com
  2004-10-02  4:26 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 7+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-06 16:19 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-08-06 16:19 -------
Created an attachment (id=6894)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6894&action=view)
Test case


-- 


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


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

* [Bug libgcj/16902] GIJ: Garbage collection related failure with interpreter
  2004-08-06 16:18 [Bug libgcj/16902] New: GIJ: Garbage collection fails with interpreter mckinlay at redhat dot com
  2004-08-06 16:19 ` [Bug libgcj/16902] " mckinlay at redhat dot com
@ 2004-08-06 19:57 ` mckinlay at redhat dot com
  2004-10-02  4:26 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 7+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-06 19:57 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|GIJ: Garbage collection     |GIJ: Garbage collection
                   |fails with interpreter      |related failure with
                   |                            |interpreter


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


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

* [Bug libgcj/16902] GIJ: Garbage collection related failure with interpreter
  2004-08-06 16:18 [Bug libgcj/16902] New: GIJ: Garbage collection fails with interpreter mckinlay at redhat dot com
  2004-08-06 16:19 ` [Bug libgcj/16902] " mckinlay at redhat dot com
  2004-08-06 19:57 ` [Bug libgcj/16902] GIJ: Garbage collection related failure " mckinlay at redhat dot com
@ 2004-10-02  4:26 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-02  4:26 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-02 04:26 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-02 04:26:35
               date|                            |


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


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

* [Bug libgcj/16902] GIJ: Garbage collection related failure with interpreter
       [not found] <bug-16902-6651@http.gcc.gnu.org/bugzilla/>
  2006-02-04 22:29 ` tromey at gcc dot gnu dot org
  2006-02-06 18:38 ` mckinlay at redhat dot com
@ 2006-02-06 18:41 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 7+ messages in thread
From: mckinlay at redhat dot com @ 2006-02-06 18:41 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from mckinlay at redhat dot com  2006-02-06 18:41 -------
Another example of failure:

[5]:  Success
java.lang.NullPointerException
   at GCTest.testObjChain (GCTest.java:251)
   at GCTest.testObjArray (GCTest.java:191)
   at GCTest.run (GCTest.java:104)
   at java.lang.Thread.run (Thread.java:653)
[44]:  Failure: testObjArray: Caught exception: null
[44]:  Success
java.lang.NullPointerException
   at GCTest.testObjChain (GCTest.java:251)
   at GCTest.testObjArray (GCTest.java:191)
   at GCTest.run (GCTest.java:104)
   at java.lang.Thread.run (Thread.java:653)
[33]:  Failure: testObjArray: Caught exception: null
java.lang.NullPointerException
   at GCTest.testObjChain (GCTest.java:251)
   at GCTest.testObjArray (GCTest.java:191)
   at GCTest.run (GCTest.java:104)
   at java.lang.Thread.run (Thread.java:653)


-- 


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


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

* [Bug libgcj/16902] GIJ: Garbage collection related failure with interpreter
       [not found] <bug-16902-6651@http.gcc.gnu.org/bugzilla/>
  2006-02-04 22:29 ` tromey at gcc dot gnu dot org
@ 2006-02-06 18:38 ` mckinlay at redhat dot com
  2006-02-06 18:41 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 7+ messages in thread
From: mckinlay at redhat dot com @ 2006-02-06 18:38 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from mckinlay at redhat dot com  2006-02-06 18:38 -------
You might need a multiprocessor or hyper-threaded machine to reproduce it. I
was able to reproduce it with HEAD just now:

$ while (true) do gij GCTest; done

....

[20]:  Success
java.lang.LinkageError: field type mismatch with different loaders
   at GCTest$GCTest_Object.<init> (GCTest.java:18)
   at GCTest.testObjChain (GCTest.java:245)
   at GCTest.run (GCTest.java:126)
   at java.lang.Thread.run (Thread.java:653)
Caused by: java.lang.NoClassDefFoundError: this$0
   at GCTest$GCTest_Object.<init> (GCTest.java:18)
   ...3 more
[41]:  Failure: testObjChain: Caught exception: field type mismatch with
different loaders


-- 


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


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

* [Bug libgcj/16902] GIJ: Garbage collection related failure with interpreter
       [not found] <bug-16902-6651@http.gcc.gnu.org/bugzilla/>
@ 2006-02-04 22:29 ` tromey at gcc dot gnu dot org
  2006-02-06 18:38 ` mckinlay at redhat dot com
  2006-02-06 18:41 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-04 22:29 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2006-02-04 22:29 -------
I played with this a bit today and I'm not able to reproduce.
Do you need special arguments to the test program?
I tried with my current 4.0.x and 4.1 builds.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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


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

end of thread, other threads:[~2006-02-06 18:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 16:18 [Bug libgcj/16902] New: GIJ: Garbage collection fails with interpreter mckinlay at redhat dot com
2004-08-06 16:19 ` [Bug libgcj/16902] " mckinlay at redhat dot com
2004-08-06 19:57 ` [Bug libgcj/16902] GIJ: Garbage collection related failure " mckinlay at redhat dot com
2004-10-02  4:26 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16902-6651@http.gcc.gnu.org/bugzilla/>
2006-02-04 22:29 ` tromey at gcc dot gnu dot org
2006-02-06 18:38 ` mckinlay at redhat dot com
2006-02-06 18:41 ` mckinlay at redhat dot com

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