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

Successful builds fails at the end (Could not initialize class hudson.util.jna.GNUCLibrary)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • core, remoting
    • None
    • master on Ubuntu 12.04, slave on win 7 sp1, java 1.7.0_25-b17

      Jenkins ver. 1.538

      After successful build job can't be stopped normally, all error messages are with GNUCLibrary. Maybe problem is with java version on slave?

      FATAL: Remote call on build failed
      java.io.IOException: Remote call on build failed
      	at hudson.remoting.Channel.call(Channel.java:723)
      	at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
      	at hudson.model.Run.execute(Run.java:1679)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:230)
      Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'c': The specified module could not be found.
      
      	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
      	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
      	at com.sun.jna.Library$Handler.<init>(Library.java:140)
      	at com.sun.jna.Native.loadLibrary(Native.java:366)
      	at com.sun.jna.Native.loadLibrary(Native.java:351)
      	at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:111)
      	at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45)
      	at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29)
      	at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:222)
      	at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:412)
      	at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:469)
      	at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
      	at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at hudson.remoting.Engine$1$1.run(Engine.java:63)
      	at java.lang.Thread.run(Unknown Source)
      

      I think its the same error:

      FATAL: Remote call on build failed
      java.io.IOException: Remote call on build failed
      	at hudson.remoting.Channel.call(Channel.java:723)
      	at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
      	at hudson.model.Run.execute(Run.java:1665)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:230)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary
      	at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45)
      	at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29)
      	at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:222)
      	at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:412)
      	at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:469)
      	at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
      	at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

          [JENKINS-20481] Successful builds fails at the end (Could not initialize class hudson.util.jna.GNUCLibrary)

          movavi team created issue -
          movavi team made changes -
          Description Original: Jenkins ver. 1.538

          After succefull build job can't be stopped normally, all problems with GNUCLibrary. What the recommended java version should be installed on slave or im doing wrong?

          {noformat}
          FATAL: Remote call on build failed
          java.io.IOException: Remote call on build failed
          at hudson.remoting.Channel.call(Channel.java:723)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
          at hudson.model.Run.execute(Run.java:1679)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:230)
          Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'c': The specified module could not be found.

          at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
          at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
          at com.sun.jna.Library$Handler.<init>(Library.java:140)
          at com.sun.jna.Native.loadLibrary(Native.java:366)
          at com.sun.jna.Native.loadLibrary(Native.java:351)
          at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:111)
          at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45)
          at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29)
          at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:222)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:412)
          at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:469)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
          at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:63)
          at java.lang.Thread.run(Unknown Source)
          {noformat}

          I think its the same error:

          {noformat}
          FATAL: Remote call on build failed
          java.io.IOException: Remote call on build failed
          at hudson.remoting.Channel.call(Channel.java:723)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
          at hudson.model.Run.execute(Run.java:1665)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:230)
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary
          at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45)
          at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29)
          at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:222)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:412)
          at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:469)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
          at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          {noformat}
          New: Jenkins ver. 1.538

          After successful build job can't be stopped normally, all error messages are with GNUCLibrary. Maybe problem is with java version on slave?

          {noformat}
          FATAL: Remote call on build failed
          java.io.IOException: Remote call on build failed
          at hudson.remoting.Channel.call(Channel.java:723)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
          at hudson.model.Run.execute(Run.java:1679)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:230)
          Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'c': The specified module could not be found.

          at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
          at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
          at com.sun.jna.Library$Handler.<init>(Library.java:140)
          at com.sun.jna.Native.loadLibrary(Native.java:366)
          at com.sun.jna.Native.loadLibrary(Native.java:351)
          at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:111)
          at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45)
          at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29)
          at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:222)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:412)
          at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:469)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
          at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:63)
          at java.lang.Thread.run(Unknown Source)
          {noformat}

          I think its the same error:

          {noformat}
          FATAL: Remote call on build failed
          java.io.IOException: Remote call on build failed
          at hudson.remoting.Channel.call(Channel.java:723)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
          at hudson.model.Run.execute(Run.java:1665)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:230)
          Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary
          at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45)
          at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29)
          at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:222)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:412)
          at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:469)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
          at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          {noformat}
          Summary Original: Succefull builds fails at the end (Could not initialize class hudson.util.jna.GNUCLibrary) New: Successful builds fails at the end (Could not initialize class hudson.util.jna.GNUCLibrary)

          just to clarify you are trying to cancel a build that is successful but just has not finished? So it is a successful build stuck on an executor. Then you press the X button beside the build to stop it.

          IS this exact test case?

          martin naughton added a comment - just to clarify you are trying to cancel a build that is successful but just has not finished? So it is a successful build stuck on an executor. Then you press the X button beside the build to stop it. IS this exact test case?

          Does it happen all the time? Did you try with java 1.6 to clarify your suspicion?

          martin naughton added a comment - Does it happen all the time? Did you try with java 1.6 to clarify your suspicion?

          movavi team added a comment - - edited

          Master (Ubuntu 12.04 LTS):

          java version "1.6.0_30"
          OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.3)
          OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
          

          Slave (Windows):

          java version "1.7.0_51"
          Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
          Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
          

          Periodically there are such errors. Often after upgrade Jenkins. Now this problem is relevant again.

          movavi team added a comment - - edited Master (Ubuntu 12.04 LTS): java version "1.6.0_30" OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.3) OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode) Slave (Windows): java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) Periodically there are such errors. Often after upgrade Jenkins. Now this problem is relevant again.
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-24521 [ JENKINS-24521 ]
          Craig Rodrigues made changes -
          Link New: This issue is related to JENKINS-24521 [ JENKINS-24521 ]

          Craig Rodrigues added a comment - - edited

          Jenkins has been updated to use JNA 4.1: JENKINS-24521
          Please try again, since this fixes many native library issues.

          This fix should be in Jenkins 1.586 and higher.

          Craig Rodrigues added a comment - - edited Jenkins has been updated to use JNA 4.1: JENKINS-24521 Please try again, since this fixes many native library issues. This fix should be in Jenkins 1.586 and higher.
          Craig Rodrigues made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            movavi movavi team
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: