[jira] [Created] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)
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.1, 1.0.1
            Reporter: Gui Forget
            Priority: Minor


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/EXEC-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gui Forget updated EXEC-60:
---------------------------

    Attachment: deadlock.txt

The thread dump showing the deadlock

> 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: deadlock.txt
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/EXEC-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Sims updated EXEC-60:
-----------------------------

    Attachment: commons-exec-1.1-deadlock.txt

Ran into the same deadlock in 1.1 (obtained from public Maven repo).  Thread dump attached

> 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
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/EXEC-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Kofler updated EXEC-60:
-----------------------------

    Attachment: exec-60.diff

Patch according my comment
               

> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/EXEC-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siegfried Goeschl updated EXEC-60:
----------------------------------

    Fix Version/s: 1.1.1
   

> 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
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.1.1
>
>         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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (EXEC-60) Possible deadlock when a process is terminating at the same time its timing out

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/EXEC-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siegfried Goeschl resolved EXEC-60.
-----------------------------------

    Resolution: Fixed

Applied patch written by Peter Kofler (Vienna Hackgarden)
               

> 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
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.1.1
>
>         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