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.