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

EmptyStackException from CpsFlowExecution.onProgramEnd

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None
    • CloudBees Core 2.222.2.1-rolling (I think)

      No idea how to reproduce; saw this after startup about a possibly stuck/broken build:

      ... WARNING org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService reportProblem
      Unexpected exception in CPS VM thread: CpsFlowExecution[Owner[...]]
      java.util.EmptyStackException
      	at java.util.Stack.peek(Stack.java:102)
      	at java.util.Stack.pop(Stack.java:84)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onProgramEnd(CpsFlowExecution.java:1236)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:423)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
      

      Not entirely obvious what the most graceful response is here. Call createPlaceholderNodes?

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

              Created:
              Updated: