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

ProcessTreeTest fails on Windows


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      [INFO] Maven Version: 3.0.1
      [INFO] JDK Version: 1.6.0_18 normalized as: 1.6.0-18
      [INFO] OS Info: Arch: x86 Family: windows Name: windows 7 Version: 6.1
    • Similar Issues:


      The ProcessTreeTest gets a list of all processes (on windows) and has the pid=0 as the base of it
      user has admin rights - tested with and without elevated privs)

      When getEnvironment() is called in the test it causes an exception to be thrown.

      Adding an explict check to ignore the Sytem Idle process can return yet another random process that the user may or may not have access to.

      In my case it is returning PID=820 which is svchost.exe running as "LOCAL SERVICE"
      in the non elevated admin case you see the following error

        org.jvnet.winp.WinpException: Failed to open process error=5 at .\envvar-cmdline.cpp:53
           at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)

      for the elevated case you see the following:

        org.jvnet.winp.WinpException: Failed to read PEB error=299 at .\envvar-cmdline.cpp:68
      	at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)

      in either case the unit test fails.


          Issue Links


            teilo James Nord created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            URL https://github.com/jenkinsci/jenkins/pull/752
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            evernat evernat made changes -
            Link This issue is duplicated by JENKINS-12768 [ JENKINS-12768 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 138725 ] JNJira + In-Review [ 188130 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-30782 [ JENKINS-30782 ]


              • Assignee:
                teilo James Nord
              • Votes:
                5 Vote for this issue
                8 Start watching this issue


                • Created: