Re: [1.1] Hung build - threaddump

2006-05-09 Thread jerome lacoste

On 5/7/06, Jon Strayer [EMAIL PROTECTED] wrote:

I occasionally get hung maven builds with cruise control.  About one a day
(that's about one every 40 builds or so).  I finally got a thread dump.  I
can't make sense of it.  Can anyone help?  FYI, this is Maven 1.1 Beta 2,
but I've had the problem with as long as I can remember (that would take it
back to 0.9 or so).


The one thing I see is that maven spaws a javadoc process and waits
for it to finish. It probably doesn't set a timeout. If this process
blocks for some reason, your build will block.

You appear to be on Unix, do you have a hang javadoc process
somewhere? If so, kill it and see if your build process goes on
(obviously with a failed build).

If that works, consider adding a timeout option to your

   at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)

for that kill operation to be performed automatically).

Jerome

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [1.1] Hung build - threaddump

2006-05-08 Thread Kenney Westerhof
On Sun, 7 May 2006, Jon Strayer wrote:

Hi,

I assume you've gone through your share of JDK's in all this time?
If not, can you try with a newer JDK?

-- Kenney

 I occasionally get hung maven builds with cruise control.  About one a day
 (that's about one every 40 builds or so).  I finally got a thread dump.  I
 can't make sense of it.  Can anyone help?  FYI, this is Maven 1.1 Beta 2,
 but I've had the problem with as long as I can remember (that would take it
 back to 0.9 or so).

 Full thread dump  [Sun May 07 13:49:08 CDT 2006] (Java HotSpot(TM) Server VM
 1.4.2 1.4.2.06-041015-12:22-PA_RISC1.1 PA1.1 mix
 ed mode):

 Thread-13 daemon prio=10 tid=40057958 nid=34 lwp_id=22588 runnable
 [0x4cdf5000..0x4cdf54c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:177)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:243)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 Thread-12 daemon prio=10 tid=40057ac0 nid=33 lwp_id=22587 runnable
 [0x4cff9000..0x4cff94c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:194)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:252)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
 at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
 - locked 6b0427b0 (a java.io.BufferedInputStream)
 at java.io.FilterInputStream.read(FilterInputStream.java:90)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 process reaper daemon prio=9 tid=40057c28 nid=32 lwp_id=22586 runnable
 [0x4ce76000..0x4ce764c0]
 at java.lang.UNIXProcess.waitForProcessExit(Native Method)
 at java.lang.UNIXProcess.access$1000(UNIXProcess.java:20)
 at java.lang.UNIXProcess$4.run(UNIXProcess.java:117)

 MultiThreadedHttpConnectionManager cleanup daemon prio=10 tid=400577f0
 nid=12 lwp_id=21662 in Object.wait() [0x4d07a000..0x
 4d07a4c0]
 at java.lang.Object.wait(Native Method)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5595b9c0 (a java.lang.ref.ReferenceQueue$Lock)
 at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)
 at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)

 Signal Dispatcher daemon prio=10 tid=40057688 nid=7 lwp_id=21573 waiting
 on condition [0x..0x]

 Finalizer daemon prio=10 tid=40057520 nid=5 lwp_id=21571 in Object.wait()
 [0x6ae3c000..0x6ae3c4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:188)

 Reference Handler daemon prio=10 tid=400573b8 nid=4 lwp_id=21570 in
 Object.wait() [0x6aebd000..0x6aebd4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c0d0 (a java.lang.ref.Reference$Lock)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
 - locked 5587c0d0 (a java.lang.ref.Reference$Lock)

 main prio=10 tid=40057250 nid=1 lwp_id=21567 in Object.wait()
 [0x77ff3000..0x77ff14b0]
 at java.lang.Object.wait(Native Method)
 - waiting on 6b042480 (a java.lang.UNIXProcess)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.UNIXProcess.waitFor(UNIXProcess.java:146)
 - locked 6b042480 (a java.lang.UNIXProcess)
 at org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java:539)
 at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:471)
 at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1952)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
 :95)
 at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
 :186)
 at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
 at 

Re: [1.1] Hung build - threaddump

2006-05-08 Thread Jon Strayer

On 5/8/06, Kenney Westerhof [EMAIL PROTECTED] wrote:


On Sun, 7 May 2006, Jon Strayer wrote:

Hi,

I assume you've gone through your share of JDK's in all this time?
If not, can you try with a newer JDK?




Not yet.  I a couple of months I can.

BTW, a later hang up was in a jUnit test (at least a jUnit test error was
reported when I killed the java process).

I tried to get a thread dump from that process, but I can't find it.  Where
does standard out go when running jUnit tests (in another jvm)?


-- Kenney


 I occasionally get hung maven builds with cruise control.  About one a
day
 (that's about one every 40 builds or so).  I finally got a thread
dump.  I
 can't make sense of it.  Can anyone help?  FYI, this is Maven 1.1 Beta
2,
 but I've had the problem with as long as I can remember (that would take
it
 back to 0.9 or so).

 Full thread dump  [Sun May 07 13:49:08 CDT 2006] (Java HotSpot(TM)
Server VM
 1.4.2 1.4.2.06-041015-12:22-PA_RISC1.1 PA1.1 mix
 ed mode):

 Thread-13 daemon prio=10 tid=40057958 nid=34 lwp_id=22588 runnable
 [0x4cdf5000..0x4cdf54c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:177)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:243)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(
StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 Thread-12 daemon prio=10 tid=40057ac0 nid=33 lwp_id=22587 runnable
 [0x4cff9000..0x4cff94c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:194)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:252)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java
:183)
 at java.io.BufferedInputStream.read1(BufferedInputStream.java
:222)
 at java.io.BufferedInputStream.read(BufferedInputStream.java
:277)
 - locked 6b0427b0 (a java.io.BufferedInputStream)
 at java.io.FilterInputStream.read(FilterInputStream.java:90)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(
StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 process reaper daemon prio=9 tid=40057c28 nid=32 lwp_id=22586 runnable
 [0x4ce76000..0x4ce764c0]
 at java.lang.UNIXProcess.waitForProcessExit(Native Method)
 at java.lang.UNIXProcess.access$1000(UNIXProcess.java:20)
 at java.lang.UNIXProcess$4.run(UNIXProcess.java:117)

 MultiThreadedHttpConnectionManager cleanup daemon prio=10 tid=400577f0
 nid=12 lwp_id=21662 in Object.wait() [0x4d07a000..0x
 4d07a4c0]
 at java.lang.Object.wait(Native Method)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5595b9c0 (a java.lang.ref.ReferenceQueue$Lock)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)

 Signal Dispatcher daemon prio=10 tid=40057688 nid=7 lwp_id=21573
waiting
 on condition [0x..0x]

 Finalizer daemon prio=10 tid=40057520 nid=5 lwp_id=21571 in
Object.wait()
 [0x6ae3c000..0x6ae3c4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java
:188)

 Reference Handler daemon prio=10 tid=400573b8 nid=4 lwp_id=21570 in
 Object.wait() [0x6aebd000..0x6aebd4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c0d0 (a java.lang.ref.Reference$Lock)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.ref.Reference$ReferenceHandler.run(Reference.java
:120)
 - locked 5587c0d0 (a java.lang.ref.Reference$Lock)

 main prio=10 tid=40057250 nid=1 lwp_id=21567 in Object.wait()
 [0x77ff3000..0x77ff14b0]
 at java.lang.Object.wait(Native Method)
 - waiting on 6b042480 (a java.lang.UNIXProcess)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.UNIXProcess.waitFor(UNIXProcess.java:146)
 - locked 6b042480 (a java.lang.UNIXProcess)
 at org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java
:539)
 at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java
:471)
 at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java
:1952)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java
:195)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java

[1.1] Hung build - threaddump

2006-05-07 Thread Jon Strayer

I occasionally get hung maven builds with cruise control.  About one a day
(that's about one every 40 builds or so).  I finally got a thread dump.  I
can't make sense of it.  Can anyone help?  FYI, this is Maven 1.1 Beta 2,
but I've had the problem with as long as I can remember (that would take it
back to 0.9 or so).

Full thread dump  [Sun May 07 13:49:08 CDT 2006] (Java HotSpot(TM) Server VM
1.4.2 1.4.2.06-041015-12:22-PA_RISC1.1 PA1.1 mix
ed mode):

Thread-13 daemon prio=10 tid=40057958 nid=34 lwp_id=22588 runnable
[0x4cdf5000..0x4cdf54c0]
   at java.io.FileInputStream.readBytes(Native Method)
   at java.io.FileInputStream.read(FileInputStream.java:177)
   at java.lang.UNIXProcess$DeferredCloseInputStream.read(
UNIXProcess.java:243)
   at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java
:90)
   at java.lang.Thread.run(Thread.java:534)

Thread-12 daemon prio=10 tid=40057ac0 nid=33 lwp_id=22587 runnable
[0x4cff9000..0x4cff94c0]
   at java.io.FileInputStream.readBytes(Native Method)
   at java.io.FileInputStream.read(FileInputStream.java:194)
   at java.lang.UNIXProcess$DeferredCloseInputStream.read(
UNIXProcess.java:252)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
   - locked 6b0427b0 (a java.io.BufferedInputStream)
   at java.io.FilterInputStream.read(FilterInputStream.java:90)
   at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java
:90)
   at java.lang.Thread.run(Thread.java:534)

process reaper daemon prio=9 tid=40057c28 nid=32 lwp_id=22586 runnable
[0x4ce76000..0x4ce764c0]
   at java.lang.UNIXProcess.waitForProcessExit(Native Method)
   at java.lang.UNIXProcess.access$1000(UNIXProcess.java:20)
   at java.lang.UNIXProcess$4.run(UNIXProcess.java:117)

MultiThreadedHttpConnectionManager cleanup daemon prio=10 tid=400577f0
nid=12 lwp_id=21662 in Object.wait() [0x4d07a000..0x
4d07a4c0]
   at java.lang.Object.wait(Native Method)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
   - locked 5595b9c0 (a java.lang.ref.ReferenceQueue$Lock)
   at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
(MultiThreadedHttpConnect
ionManager.java:927)
   at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
(MultiThreadedHttpConnect
ionManager.java:927)

Signal Dispatcher daemon prio=10 tid=40057688 nid=7 lwp_id=21573 waiting
on condition [0x..0x]

Finalizer daemon prio=10 tid=40057520 nid=5 lwp_id=21571 in Object.wait()
[0x6ae3c000..0x6ae3c4c0]
   at java.lang.Object.wait(Native Method)
   - waiting on 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
   - locked 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
   at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:188)

Reference Handler daemon prio=10 tid=400573b8 nid=4 lwp_id=21570 in
Object.wait() [0x6aebd000..0x6aebd4c0]
   at java.lang.Object.wait(Native Method)
   - waiting on 5587c0d0 (a java.lang.ref.Reference$Lock)
   at java.lang.Object.wait(Object.java:429)
   at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
   - locked 5587c0d0 (a java.lang.ref.Reference$Lock)

main prio=10 tid=40057250 nid=1 lwp_id=21567 in Object.wait()
[0x77ff3000..0x77ff14b0]
   at java.lang.Object.wait(Native Method)
   - waiting on 6b042480 (a java.lang.UNIXProcess)
   at java.lang.Object.wait(Object.java:429)
   at java.lang.UNIXProcess.waitFor(UNIXProcess.java:146)
   - locked 6b042480 (a java.lang.UNIXProcess)
   at org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java:539)
   at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:471)
   at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1952)
   at org.apache.tools.ant.Task.perform(Task.java:364)
   at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:186)
   at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:78)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:109)
   at org.apache.maven.werkz.Goal.fire(Goal.java:656)
   at