commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastien Tardif (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EXEC-62) PumpStreamHandler hangs if process is terminated by timeout and it has not generated stdout / stderr output
Date Thu, 16 May 2013 20:09:16 GMT

    [ https://issues.apache.org/jira/browse/EXEC-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659908#comment-13659908
] 

Sebastien Tardif commented on EXEC-62:
--------------------------------------

Same here:
"pool-2-thread-1" prio=10 tid=0x00007f102c5d0000 nid=0x2099 in Object.wait() [0x00007f101216c000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000000b8bbbf88> (a java.lang.Thread)
	at java.lang.Thread.join(Thread.java:1203)
	- locked <0x00000000b8bbbf88> (a java.lang.Thread)
	at java.lang.Thread.join(Thread.java:1256)
	at org.apache.commons.exec.PumpStreamHandler.stop(PumpStreamHandler.java:180)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:363)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)

                
> PumpStreamHandler hangs if process is terminated by timeout and it has not generated
stdout / stderr output
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: EXEC-62
>                 URL: https://issues.apache.org/jira/browse/EXEC-62
>             Project: Commons Exec
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Ubuntu 11.04, 
> $ java -version
> java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
> Java HotSpot(TM) Server VM (build 20.4-b02, mixed mode)
>            Reporter: Ignat Zapolsky
>            Assignee: Siegfried Goeschl
>         Attachments: sample.tar.gz
>
>
> Hi,
> I've found an issue with DefaultExecutor hanging while waiting for PumpStreamHandler
to close all subprocess streams if child process was terminated by watchdog (e.g. on timeout).
> I've created a test case for the issue demonstrating working behaviour & issue.
> Test requires commons-io 1.4, Junit 4.x and commons-exec 1.1 to compile

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message