[
https://issues.apache.org/jira/browse/EXEC-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120451#comment-13120451
]
Peter Kofler commented on EXEC-60:
----------------------------------
I created a test that reproduces the deadlock (from time to time ;-)
ExecuteWatchdogTest.java
If you have a fast machine then you need to update the "start" and the end of
range of the time slice.
---
Case of the deadlock was the synchronized call stack in Watchdog#run.
> Possible deadlock when a process is terminating at the same time its timing
> out
> -------------------------------------------------------------------------------
>
> Key: EXEC-60
> URL: https://issues.apache.org/jira/browse/EXEC-60
> Project: Commons Exec
> Issue Type: Bug
> Affects Versions: 1.0.1, 1.1
> Reporter: Gui Forget
> Priority: Minor
> Attachments: commons-exec-1.1-deadlock.txt, deadlock.txt, exec-60.diff
>
>
> I ran into a deadlock when executing a process monitored by ExecuteWatchDog.
> This happened in 1.0.1 for me but looking at the code in 1.1 it seems to me
> that this could happen in this version as well.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira