Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37664

Endless loop in LargeText.BufferSession.skip

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: