A Pipeline build was observed hanging waiting for a lock, which was held by

      "jenkins.util.Timer [#1]" id=... state=RUNNABLE cpu=99%
          at org.kohsuke.stapler.framework.io.LargeText$BufferSession.skip(LargeText.java:532)
          at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:211)
          at hudson.console.AnnotatedLargeText.writeRawLogTo(AnnotatedLargeText.java:162)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.copyLogs(WorkflowRun.java:370)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$600(WorkflowRun.java:111)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun$3.run(WorkflowRun.java:266)
          at ...
      

      Seems that this infinite loop occurs reproducibly when a call to writeLogTo is made with a start position greater than the size of the log file.

          [JENKINS-37664] Endless loop in LargeText.BufferSession.skip

          Jesse Glick created issue -
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "stapler PR 78 (Web Link)" [ 14765 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "workflow-job PR 18 (Web Link)" [ 14767 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Oleg Nenashev made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Labels Original: stapler New: 2.19.3-rejected stapler

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: