jenkinsci / jenkinsci/workflow-step-api-plugin
[JENKINS-75636] StackOverflowError in handling FlowInterruptedException
Open
component:workflow-step-api-plugin
imported-jira-issue
priority:minor
resolution:unresolved
- Dominant language
- Java
- Stars
- 50
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
We noticed in our controller in CloudBees there was a SOE in handling `FlowInterruptedException`.
2025-04-29 11:24:32.895+0000 [id=91339] INFO o.j.p.J.JiraUtils#log: Obtaining junit-attachments ...
2025-04-29 11:24:33.555+0000 [id=96820] WARNING o.j.p.w.cps.CpsFlowExecution#notifyListeners
java.lang.StackOverflowError
at PluginClassLoader for
at PluginClassLoader for
at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:69)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:62)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:84)
at PluginClassLoader for timestamper//hudson.plugins.timestamper.pipeline.GlobalDecorator$GlobalDecoratorLineTransformationOutputStream.eol(GlobalDecorator.java:83)
at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:69)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:62)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:84)
at java.base/java.io.PrintStream.implWrite(PrintStream.java:643)
at java.base/java.io.PrintStream.write(PrintStream.java:623)
at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:309)
at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:405)
at java.base/sun.nio.cs.StreamEncoder.lockedFlushBuffer(StreamEncoder.java:123)
at java.base/sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:110)
at java.base/java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:192)
at java.base/java.io.PrintStream.implWriteln(PrintStream.java:849)
at java.base/java.io.PrintStream.writeln(PrintStream.java:826)
at java.base/java.io.PrintStream.println(PrintStream.java:1168)
at hudson.Functions.printStackTrace(Functions.java:1874)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:139)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
...the same lines continue...
---
Originally reported by
gbhat, imported from: StackOverflowError in handling FlowInterruptedException
Raw content of original issue
We noticed in our controller in CloudBees there was a SOE in handling `FlowInterruptedException`.
2025-04-29 11:24:32.895+0000 [id=91339] INFO o.j.p.J.JiraUtils#log: Obtaining junit-attachments ...
2025-04-29 11:24:33.555+0000 [id=96820] WARNING o.j.p.w.cps.CpsFlowExecution#notifyListeners
java.lang.StackOverflowError
at PluginClassLoader for <redacted>
at PluginClassLoader for <redacted>
at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:69)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:62)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:84)
at PluginClassLoader for timestamper//hudson.plugins.timestamper.pipeline.GlobalDecorator$GlobalDecoratorLineTransformationOutputStream.eol(GlobalDecorator.java:83)
at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:69)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:62)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:84)
at java.base/java.io.PrintStream.implWrite(PrintStream.java:643)
at java.base/java.io.PrintStream.write(PrintStream.java:623)
at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:309)
at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:405)
at java.base/sun.nio.cs.StreamEncoder.lockedFlushBuffer(StreamEncoder.java:123)
at java.base/sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:110)
at java.base/java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:192)
at java.base/java.io.PrintStream.implWriteln(PrintStream.java:849)
at java.base/java.io.PrintStream.writeln(PrintStream.java:826)
at java.base/java.io.PrintStream.println(PrintStream.java:1168)
at hudson.Functions.printStackTrace(Functions.java:1874)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:139)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.print(FlowInterruptedException.java:137)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.FlowInterruptedException.handle(FlowInterruptedException.java:130)
...the same lines continue...
- environment:
Jenkins 2.492
Contributor guide
Assessment
This issue has not been assessed yet.