public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/37051]  New: Random failures running ECJ 3.4 (threading problem?)
@ 2008-08-07 23:30 chewi at aura-online dot co dot uk
  2008-08-10 20:22 ` [Bug java/37051] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: chewi at aura-online dot co dot uk @ 2008-08-07 23:30 UTC (permalink / raw)
  To: java-prs

I have been encountering random failures when running ECJ 3.4. ECJ 3.3 works
fine and I did also encounter random failures with Sun's VM so I initially
filed a bug at eclipse.org. However, further tests have indicated that there
are two different issues here, one affecting GCJ and one affecting Sun, hence I
am filing this bug report now.

The failures only occur when ECJ is run with multiple threads. They do not
occur when -Djdt.compiler.useSingleThread=true is specified and they also do
not occur on single core machines. I have only seen the failures on the x86_64
platform but it could possibly affect others too. The frequency of the failures
varies but they usually occur around once every 10 tries. The error messages
also vary but they usually look like this.

java.lang.NullPointerException
   at org.eclipse.jdt.internal.compiler.ReadManager.run(ReadManager.java:160)
   at java.lang.Thread.run(libgcj.so.90)

java.lang.NullPointerException
   at
org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(Util.java:226)
   at
org.eclipse.jdt.internal.compiler.batch.CompilationUnit.getContents(CompilationUnit.java:71)
   at org.eclipse.jdt.internal.compiler.ReadManager.run(ReadManager.java:160)
   at java.lang.Thread.run(libgcj.so.90)

I have reproduced this on my usual Gentoo Linux system but also managed to
reproduce it on a fresh installation of Ubuntu Intrepid Ibex Alpha 3 under KVM.
So far, I have only tried GCC 4.3.1. For more details, see the original bug
report at...

https://bugs.eclipse.org/bugs/show_bug.cgi?id=241225


-- 
           Summary: Random failures running ECJ 3.4 (threading problem?)
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: chewi at aura-online dot co dot uk
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug java/37051] Random failures running ECJ 3.4 (threading problem?)
  2008-08-07 23:30 [Bug java/37051] New: Random failures running ECJ 3.4 (threading problem?) chewi at aura-online dot co dot uk
@ 2008-08-10 20:22 ` pinskia at gcc dot gnu dot org
  2008-08-10 20:57 ` chewi at aura-online dot co dot uk
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-10 20:22 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-08-10 20:22 -------
This sounds like there is a race condition inside ecj and not a bug in GCJ.


-- 


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


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

* [Bug java/37051] Random failures running ECJ 3.4 (threading problem?)
  2008-08-07 23:30 [Bug java/37051] New: Random failures running ECJ 3.4 (threading problem?) chewi at aura-online dot co dot uk
  2008-08-10 20:22 ` [Bug java/37051] " pinskia at gcc dot gnu dot org
@ 2008-08-10 20:57 ` chewi at aura-online dot co dot uk
  2008-10-24 13:41 ` aph at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: chewi at aura-online dot co dot uk @ 2008-08-10 20:57 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from chewi at aura-online dot co dot uk  2008-08-10 20:57 -------
Can this please be verified? They have already closed the bug on their end and
I don't have the knowledge to do this myself.


-- 


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


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

* [Bug java/37051] Random failures running ECJ 3.4 (threading problem?)
  2008-08-07 23:30 [Bug java/37051] New: Random failures running ECJ 3.4 (threading problem?) chewi at aura-online dot co dot uk
  2008-08-10 20:22 ` [Bug java/37051] " pinskia at gcc dot gnu dot org
  2008-08-10 20:57 ` chewi at aura-online dot co dot uk
@ 2008-10-24 13:41 ` aph at gcc dot gnu dot org
  2008-10-24 14:00 ` chewi at aura-online dot co dot uk
  2008-12-27 14:45 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: aph at gcc dot gnu dot org @ 2008-10-24 13:41 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from aph at gcc dot gnu dot org  2008-10-24 13:41 -------
I found this bug.

There's a long discussion at
http://gcc.gnu.org/ml/java-patches/2008-q3/msg00094.html


-- 


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


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

* [Bug java/37051] Random failures running ECJ 3.4 (threading problem?)
  2008-08-07 23:30 [Bug java/37051] New: Random failures running ECJ 3.4 (threading problem?) chewi at aura-online dot co dot uk
                   ` (2 preceding siblings ...)
  2008-10-24 13:41 ` aph at gcc dot gnu dot org
@ 2008-10-24 14:00 ` chewi at aura-online dot co dot uk
  2008-12-27 14:45 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: chewi at aura-online dot co dot uk @ 2008-10-24 14:00 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from chewi at aura-online dot co dot uk  2008-10-24 14:00 -------
Thank you very much! I was starting to feel like a raving lunatic trying to
prove this one.


-- 


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


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

* [Bug java/37051] Random failures running ECJ 3.4 (threading problem?)
  2008-08-07 23:30 [Bug java/37051] New: Random failures running ECJ 3.4 (threading problem?) chewi at aura-online dot co dot uk
                   ` (3 preceding siblings ...)
  2008-10-24 14:00 ` chewi at aura-online dot co dot uk
@ 2008-12-27 14:45 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-27 14:45 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from pinskia at gcc dot gnu dot org  2008-12-27 14:45 -------


*** This bug has been marked as a duplicate of 8995 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-12-27 14:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-07 23:30 [Bug java/37051] New: Random failures running ECJ 3.4 (threading problem?) chewi at aura-online dot co dot uk
2008-08-10 20:22 ` [Bug java/37051] " pinskia at gcc dot gnu dot org
2008-08-10 20:57 ` chewi at aura-online dot co dot uk
2008-10-24 13:41 ` aph at gcc dot gnu dot org
2008-10-24 14:00 ` chewi at aura-online dot co dot uk
2008-12-27 14:45 ` 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).