[JIRA] (JENKINS-51123) Deadlock in CpsFlowExecution

2018-05-07 Thread svano...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Van Oort closed an issue as Duplicate  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Closing, since the fix is tracked in the other issue (technically it should be the other way around, but, eh.)  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-51123  
 
 
  Deadlock in CpsFlowExecution   
 

  
 
 
 
 

 
Change By: 
 Sam Van Oort  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For 

[JIRA] (JENKINS-51123) Deadlock in CpsFlowExecution

2018-05-07 Thread bjoern.peder...@frm2.tum.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Björn Pedersen commented on  JENKINS-51123  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Deadlock in CpsFlowExecution   
 

  
 
 
 
 

 
 Is this fixed by the fix for issue 51132 as well?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-51123) Deadlock in CpsFlowExecution

2018-05-04 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-51123  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Deadlock in CpsFlowExecution   
 

  
 
 
 
 

 
 Code changed in jenkins User: Laurent Goujon Path: src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java http://jenkins-ci.org/commit/workflow-cps-plugin/4bc22731f72f24c0c007f34edb0c7018db37e0b3 Log: JENKINS-51123: Fix deadlock in CpsFlowExecution A deadlock can arise if multiple threads tries to access storage simultaneously while one of them doing it from a synchronized method. The cause is that timing operation also tries to get the instance lock from inside the storage r/w lock. Solution is to change the order of locking by having the timing object wrapping the call to the r/w storage lock instead of the opposite.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-51123) Deadlock in CpsFlowExecution

2018-05-04 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-51123  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Deadlock in CpsFlowExecution   
 

  
 
 
 
 

 
 Code changed in jenkins User: Sam Van Oort Path: src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java http://jenkins-ci.org/commit/workflow-cps-plugin/34d0b82a87be5bf71ea0e5a6b14b0abe9efec5a9 Log: Merge pull request #225 from laurentgo/laurentgo/JENKINS-51123 JENKINS-51123: Fix deadlock in CpsFlowExecution Compare: https://github.com/jenkinsci/workflow-cps-plugin/compare/2358bcde8d30...34d0b82a87be *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/  Functionality will be removed from GitHub.com on January 31st, 2019.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-51123) Deadlock in CpsFlowExecution

2018-05-03 Thread laurent.gou...@online.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent Goujon commented on  JENKINS-51123  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Deadlock in CpsFlowExecution   
 

  
 
 
 
 

 
 Hopefully the issue can be fixed by changing the order of operations. Here's my attempt at it: https://github.com/jenkinsci/workflow-cps-plugin/pull/225  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-51123) Deadlock in CpsFlowExecution

2018-05-03 Thread laurent.gou...@online.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laurent Goujon created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51123  
 
 
  Deadlock in CpsFlowExecution   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Attachments: 
 jstack.txt  
 
 
Components: 
 workflow-cps-plugin  
 
 
Created: 
 2018-05-04 03:49  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Laurent Goujon  
 

  
 
 
 
 

 
 It seems that a deadlock has been introduced in some recent changes to workflow-cps-plugin. The whole jstack has been attached to the report, but two threads are waiting on each other: 
 
the first thread is calling CpsFlowExecution#subsumeHead, got the lock on the instance, and then trying to acquire the r/w lock on the node storage 
the second thread is calling CpsFlowExecution#getNode, got the r/w lock on the storage, and then is calling close which tries to get the instance lock 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment