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

Endless loop in LargeText.BufferSession.skip

    XMLWordPrintable

    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

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: vivek
            Path:
            core/pom.xml
            http://jenkins-ci.org/commit/jenkins/f8caf67bed19193277c8f71b86112f502d6bf877
            Log:
            [JENKINS-37664 and other fixes] - Upgrade to stapler version 1.246 (#2593)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: vivek Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/f8caf67bed19193277c8f71b86112f502d6bf877 Log: [JENKINS-37664 and other fixes] - Upgrade to stapler version 1.246 (#2593)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The change has been released in stapler-1.246 and merged towards 2.28

            Show
            oleg_nenashev Oleg Nenashev added a comment - The change has been released in stapler-1.246 and merged towards 2.28
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Not an LTS candidate, would require a backporting of the fix to another Stapler version. 1.246 caused a fallout

            Show
            oleg_nenashev Oleg Nenashev added a comment - Not an LTS candidate, would require a backporting of the fix to another Stapler version. 1.246 caused a fallout
            Hide
            jglick Jesse Glick added a comment -

            I have a workaround in workflow-job so I think this does not need backporting.

            Show
            jglick Jesse Glick added a comment - I have a workaround in workflow-job so I think this does not need backporting.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            2.19.3-rejected then

            Show
            oleg_nenashev Oleg Nenashev added a comment - 2.19.3-rejected then

              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: