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

StackOverflowError in Groovy scripts

    Details

    • Similar Issues:

      Description

      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)
              ...
      

        Attachments

          Issue Links

            Activity

            daspilker Daniel Spilker created issue -
            daspilker Daniel Spilker made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-34525 [ JENKINS-34525 ]
            daspilker Daniel Spilker made changes -
            Link This issue is related to JENKINS-21249 [ JENKINS-21249 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-14044 [ JENKINS-14044 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34765 [ JENKINS-34765 ]
            daspilker Daniel Spilker made changes -
            Assignee vjuranek [ vjuranek ] Daniel Spilker [ daspilker ]
            danielbeck Daniel Beck made changes -
            Labels regression lts-candidate regression
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            olivergondza Oliver Gond┼ża made changes -
            Labels lts-candidate regression 2.7.1-fixed regression
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170933 ] JNJira + In-Review [ 198987 ]
            daspilker Daniel Spilker made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]

              People

              • Assignee:
                daspilker Daniel Spilker
                Reporter:
                daspilker Daniel Spilker
              • Votes:
                2 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: