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

Endless loop in DefaultInvoker.getProperty when accessing field via getter/setter without @

      The following script for some reason will make Jenkins go out of memory and will never complete the execution.

      node {
      	HipNotifier chip = new HipNotifier('A')
          echo chip.name	
      }
      
      public class HipNotifier {
          private String name;
      
          public HipNotifier(String pName) {
              this.name = pName
          }
      
          String getName() {
              return name
          }
      }
      

          [JENKINS-31484] Endless loop in DefaultInvoker.getProperty when accessing field via getter/setter without @

          Luca Vitucci created issue -
          Luca Vitucci made changes -
          Description Original: The following script for some reason will make Jenkins go out of memory and will never complete the execution.


          {code:java}
          node {
          HipNotifier chip = new HipNotifier('A', 'B', ["C","D"])
              echo chip.name
          }

          public class HipNotifier {
              private String name;
              private String imageUrl;
              private List<String> quotes;

              public HipNotifier(String pName, String imageUrl, List<String> pQuotes) {
                  this.name = pName
                  this.quotes = pQuotes
                  this.imageUrl = imageUrl
              }

              String getName() {
                  return name
              }

              public String getUrl() {
                  return imageUrl;
              }

              public String getRandomQuote() {
                  return quotes.get(new Random().nextInt(quotes.size()))
              }
          }
          {code}
          New: The following script for some reason will make Jenkins go out of memory and will never complete the execution.


          {code:java}
          node {
          HipNotifier chip = new HipNotifier('A', 'B', ["C", "D"])
              echo chip.name
          }

          public class HipNotifier {
              private String name;
              private String imageUrl;
              private List<String> quotes;

              public HipNotifier(String pName, String imageUrl, List<String> pQuotes) {
                  this.name = pName
                  this.quotes = pQuotes
                  this.imageUrl = imageUrl
              }

              String getName() {
                  return name
              }
          }
          {code}
          Luca Vitucci made changes -
          Description Original: The following script for some reason will make Jenkins go out of memory and will never complete the execution.


          {code:java}
          node {
          HipNotifier chip = new HipNotifier('A', 'B', ["C", "D"])
              echo chip.name
          }

          public class HipNotifier {
              private String name;
              private String imageUrl;
              private List<String> quotes;

              public HipNotifier(String pName, String imageUrl, List<String> pQuotes) {
                  this.name = pName
                  this.quotes = pQuotes
                  this.imageUrl = imageUrl
              }

              String getName() {
                  return name
              }
          }
          {code}
          New: The following script for some reason will make Jenkins go out of memory and will never complete the execution.


          {code:java}
          node {
          HipNotifier chip = new HipNotifier('A')
              echo chip.name
          }

          public class HipNotifier {
              private String name;

              public HipNotifier(String pName) {
                  this.name = pName
              }

              String getName() {
                  return name
              }
          }
          {code}
          Jesse Glick made changes -
          Labels Original: hang outofmemoryerror New: hang outofmemoryerror robustness
          Jesse Glick made changes -
          Summary Original: Build is going OutOfMemory New: Flow goes into endless loop in DefaultInvoker.getProperty when accessing field via getter
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-25550 [ JENKINS-25550 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166884 ] New: JNJira + In-Review [ 182502 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-32986 [ JENKINS-32986 ]
          Jesse Glick made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]

            jglick Jesse Glick
            vexdev Luca Vitucci
            Votes:
            4 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: