-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.0
Due to a regression in Groovy 2.4 (GROOVY-7826) scripts using some of the core classes with complex generic type arguments (e.g. hudson.model.Run or hudson.model.Job) will cause a StackoverflowError.
Run this script in Script Console to reproduce the problem:
def foo(hudson.model.Run run) {}
This affects Script Console, Pipeline, Job DSL, Groovy plugin (system Groovy script) and probably other plugins using the Groovy runtime provided by Jenkins core.
java.lang.StackOverflowError at java.lang.StringBuilder.append(StringBuilder.java:132) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) ...
- is duplicated by
-
JENKINS-34765 "All Changes" returning stack overflow
-
- Resolved
-
- is related to
-
JENKINS-14044 System Groovy - Unable to cast to AbstractBuild
-
- Open
-
-
JENKINS-34525 StackOverflowError in Jenkins 2.0 with Simple Parameterized Builds Report
-
- Closed
-
-
JENKINS-21249 Update Groovy
-
- Resolved
-
I can see a fix included in groovy 2.4.7 but there is no planned release for it.
Will we have to wait for groovy to release and then for jenkins to consume it before we see this fixed? If so, I'll need to downgrade from 2.x sharpish
https://issues.apache.org/jira/browse/GROOVY/fixforversion/12334898/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel
Alternatively, daspilker are there instructions for pulling that fix on github that you've posted into my jenkins installation?