-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
Jenkins Version: 2.44
Pipeline Groovy: 2.36
Blue Ocean: 1.1.2
-
-
Blue Ocean - Candidates
When executing a Pipeline script with a long-running loop that uses nested closures, a StackOverflowError occurs and the job aborts abruptly.
Reproduction steps:
- Create a Pipeline job with this as the script:
def finished = false def someMap = ['foo':'bar', 'baz':'spam'] def someOtherMap = ['foo':'baz', 'baz':'bar'] node { def incr = 0 while (true) { someMap.each{ foo, bar -> sh "echo ${foo} ${bar} ${incr}" incr++ someOtherMap.each{ baz, spam -> sh "echo ${baz} ${spam} ${incr}" } } } }
- Run the job
- Wait for about an hour. For me, the loop executes nearly 4000 times before the error. Maybe easier to reproduce on a smaller stack.
Attached is the (not-very-interesting) resultant stack trace.
- is related to
-
JENKINS-51057 EventDispatcher and ConcurrentLinkedQueue ate my JVM
- Closed