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

NPE in PsBasedUnixProcessTree.createProcessTreeFor

XMLWordPrintable

      NPE thrown in 1.2 on https://github.com/jenkinsci/proc-cleaner-plugin/blob/a707177556af5dc391508593fa5b41a00e7021af/src/main/java/org/jenkinsci/plugins/proccleaner/PsBasedUnixProcessTree.java#L64

      java.lang.NullPointerException
      	at org.jenkinsci.plugins.proccleaner.PsBasedUnixProcessTree.createProcessTreeFor(PsBasedUnixProcessTree.java:64)
      	at org.jenkinsci.plugins.proccleaner.PsKiller.kill(PsKiller.java:51)
      	at org.jenkinsci.plugins.proccleaner.PsCleaner.clean(PsCleaner.java:69)
      	at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:127)
      	at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:116)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      	at ......remote call to ci-osp-rhel7-7427(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      	at hudson.remoting.Channel.call(Channel.java:778)
      	at org.jenkinsci.plugins.proccleaner.ProcCleaner.performCleanup(ProcCleaner.java:105)
      	at org.jenkinsci.plugins.proccleaner.PreBuildCleanup.preCheckout(PreBuildCleanup.java:54)
      	at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)
      

      The problems seems to be it expects STDOUT even in case it failed.

            pajasoft Pavel Janoušek
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: