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

Endless loop in LargeText.BufferSession.skip

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: