• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201

      I have checked for this defect online but couldn't get a solution. The job doesn't terminate the job correctly. The Jenkins version is the latest one. Some more details are

      Environment - Windows 7
      Jenkins service is started with my user id and pasword.

      The error that I get is ERROR: Build step failed with exception
      org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201
      at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
      at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
      at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
      at org.jvnet.winp.WinProcess.killRecursively(WinProcess.java:66)
      at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425)
      at hudson.util.ProcessTree.killAll(ProcessTree.java:141)
      at hudson.Proc$LocalProc.destroy(Proc.java:379)
      at hudson.Proc$LocalProc.join(Proc.java:352)
      at hudson.Launcher$ProcStarter.join(Launcher.java:389)
      at hudson.tasks.Ant.perform(Ant.java:217)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.Build$BuildExecution.build(Build.java:205)
      at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408

          [JENKINS-30782] Failed to read environment variable table error

          mani sankar created issue -
          mani sankar made changes -
          Description Original: I have checked for this defect online but couldn't get a solution. The job doesn't terminate the job correctly. The Jenkins version is the latest one.

          The error that I get is ERROR: Build step failed with exception
          org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201
          at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
          at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
          at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
          at org.jvnet.winp.WinProcess.killRecursively(WinProcess.java:66)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425)
          at hudson.util.ProcessTree.killAll(ProcessTree.java:141)
          at hudson.Proc$LocalProc.destroy(Proc.java:379)
          at hudson.Proc$LocalProc.join(Proc.java:352)
          at hudson.Launcher$ProcStarter.join(Launcher.java:389)
          at hudson.tasks.Ant.perform(Ant.java:217)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:408
          New: I have checked for this defect online but couldn't get a solution. The job doesn't terminate the job correctly. The Jenkins version is the latest one. Some more details are

          Environment - Windows 7
          Jenkins service is started with my user id and pasword.

          The error that I get is ERROR: Build step failed with exception
          org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201
          at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
          at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
          at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
          at org.jvnet.winp.WinProcess.killRecursively(WinProcess.java:66)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425)
          at hudson.util.ProcessTree.killAll(ProcessTree.java:141)
          at hudson.Proc$LocalProc.destroy(Proc.java:379)
          at hudson.Proc$LocalProc.join(Proc.java:352)
          at hudson.Launcher$ProcStarter.join(Launcher.java:389)
          at hudson.tasks.Ant.perform(Ant.java:217)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:408

          mani sankar added a comment -

          I changed the default ant configuration in jenkins job to a custom installation and that worked. But this issue should not still appear if the default jenkins is used.

          mani sankar added a comment - I changed the default ant configuration in jenkins job to a custom installation and that worked. But this issue should not still appear if the default jenkins is used.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165909 ] New: JNJira + In-Review [ 182199 ]
          Oleg Nenashev made changes -
          Labels New: winp

          Oleg Nenashev added a comment -

          The issue still exists from what I see

          Oleg Nenashev added a comment - The issue still exists from what I see
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-8614 [ JENKINS-8614 ]
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          So JENKINS-8614 just worked around the issue in tests.
          From what I see, the shortcut is to just disable FINE logging for the class https://github.com/kohsuke/winp/blob/master/src/main/java/org/jvnet/winp/WinProcess.java#L66
          Working on a better solution

          Oleg Nenashev added a comment - So JENKINS-8614 just worked around the issue in tests. From what I see, the shortcut is to just disable FINE logging for the class https://github.com/kohsuke/winp/blob/master/src/main/java/org/jvnet/winp/WinProcess.java#L66 Working on a better solution
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            oleg_nenashev Oleg Nenashev
            apellant mani sankar
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: