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)

          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.

          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.

          Cathal Brennan added a comment - - edited

          I'm currently having the issue with Jenkins ver. 1.642.4
          After a successful build randomly it would give the same error which would then mark the build as failed. Currently could happen in 1 in 5 builds.

          Master is running Centos
          Kernel 3.10.0-327.4.4.el7.x86_64 on an x86_64
          Java
          openjdk version "1.8.0_77"
          OpenJDK Runtime Environment (build 1.8.0_77-b03)
          OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)

          Slave is running
          Windows Server 2012 R2 (amd64)
          java version "1.8.0_77"
          Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
          Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

          Time Elapsed 00:00:17.94
          FATAL: Remote call on SlaveNode failed
          java.io.IOException: Remote call on SlaveNode failed
          at hudson.remoting.Channel.call(Channel.java:789)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:953)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          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:215)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:426)
          at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:486)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:965)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:956)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          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:68)
          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:62)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to SlaveNode(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          ... 6 more
          Finished: FAILURE

          Cathal Brennan added a comment - - edited I'm currently having the issue with Jenkins ver. 1.642.4 After a successful build randomly it would give the same error which would then mark the build as failed. Currently could happen in 1 in 5 builds. Master is running Centos Kernel 3.10.0-327.4.4.el7.x86_64 on an x86_64 Java openjdk version "1.8.0_77" OpenJDK Runtime Environment (build 1.8.0_77-b03) OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode) Slave is running Windows Server 2012 R2 (amd64) java version "1.8.0_77" Java(TM) SE Runtime Environment (build 1.8.0_77-b03) Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode) Time Elapsed 00:00:17.94 FATAL: Remote call on SlaveNode failed java.io.IOException: Remote call on SlaveNode failed at hudson.remoting.Channel.call(Channel.java:789) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:953) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) 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:215) at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:426) at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:486) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:965) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:956) at hudson.remoting.UserRequest.perform(UserRequest.java:120) 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:68) 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:62) at java.lang.Thread.run(Unknown Source) at ......remote call to SlaveNode(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) at hudson.remoting.UserResponse.retrieve(UserRequest.java:220) at hudson.remoting.Channel.call(Channel.java:781) ... 6 more Finished: FAILURE

          Exactly Same Error both:
          java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary
          java.lang.UnsatisfiedLinkError: Unable to load library 'c': The specified module could not be found.
          Same stack trace
          My company case
          Master(Windows 2008 R2 Jdk 8u101) Jenkins 2.19.1

          Slave(Windows 2012 jdk8u101 Fully clean image we use java portable version executed via JNLP and swarm plugin, but we tried with the slave.jar and same problem, yes we are sure we are using the correct slave.jar)
          any idea?

          Isaac Aymerich added a comment - Exactly Same Error both: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary java.lang.UnsatisfiedLinkError: Unable to load library 'c': The specified module could not be found. Same stack trace My company case Master(Windows 2008 R2 Jdk 8u101) Jenkins 2.19.1 Slave(Windows 2012 jdk8u101 Fully clean image we use java portable version executed via JNLP and swarm plugin, but we tried with the slave.jar and same problem, yes we are sure we are using the correct slave.jar) any idea?

          Kari Maijala added a comment - - edited

          We are experiencing the same issue. Some observations:

          1. The job runs without errors until Jenkins internally performs the KillTask
          2. The KillTask results in
            NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary

            or

            java.lang.UnsatisfiedLinkError: Unable to load library 'c': Native library (win32-x86-64/c.dll) not found in resource path ([])
          3. In our case the error does not occur when the first job is run after the slave process startup. The error appears in every subsequent run.

          Master: Linux, Jenkins 2.97, jdk1.8.0_74
          Slave: Windows 7 64bit, jdk1.8.0_121

          Kari Maijala added a comment - - edited We are experiencing the same issue. Some observations: The job runs without errors until Jenkins internally performs the KillTask The KillTask  results in NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary or java.lang.UnsatisfiedLinkError: Unable to load library 'c' : Native library (win32-x86-64/c.dll) not found in resource path ([]) In our case the error does not occur when the first job is run after the slave process startup. The error appears in every subsequent run. Master: Linux, Jenkins 2.97, jdk1.8.0_74 Slave: Windows 7 64bit, jdk1.8.0_121

          P4 added a comment -

          We've got the same issue here.

          Master: Windows Server 2012 R2, Jenkins v2.176.2, jdk1.8.0_172

          Agent: Windows 10, jre1.8.0_221

           

           

          Jul 23, 2019 10:59:14 AM hudson.plugins.signal_killer.SignalKiller kill
          SEVERE: Can't kill process!
          java.lang.UnsatisfiedLinkError: Unable to load library 'c': Native library (win32-x86/c.dll) not found in resource path ([])
           at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:303)
           at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427)
           at com.sun.jna.Library$Handler.<init>(Library.java:179)
           at com.sun.jna.Native.loadLibrary(Native.java:569)
           at com.sun.jna.Native.loadLibrary(Native.java:544)
           at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:115)
           at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:56)
           at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:35)
           at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:248)
           at hudson.util.ProcessTree$WindowsOSProcess.killRecursively(ProcessTree.java:525)
           at hudson.util.ProcessTree.killAll(ProcessTree.java:172)
           at hudson.Proc$LocalProc.destroy(Proc.java:385)
           at hudson.Proc$LocalProc.join(Proc.java:358)
           at hudson.Launcher$RemoteLaunchCallable$1.join(Launcher.java:1324)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
           at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903)
           at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855)
           at hudson.remoting.UserRequest.perform(UserRequest.java:212)
           at hudson.remoting.UserRequest.perform(UserRequest.java:54)
           at hudson.remoting.Request$2.run(Request.java:369)
           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.lambda$newThread$0(Engine.java:93)
           at java.lang.Thread.run(Unknown Source)

           

          P4 added a comment - We've got the same issue here. Master: Windows Server 2012 R2, Jenkins v2.176.2, jdk1.8.0_172 Agent: Windows 10, jre1.8.0_221     Jul 23, 2019 10:59:14 AM hudson.plugins.signal_killer.SignalKiller kill SEVERE: Can't kill process! java.lang.UnsatisfiedLinkError: Unable to load library 'c' : Native library (win32-x86/c.dll) not found in resource path ([]) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:303) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427) at com.sun.jna.Library$Handler.<init>(Library.java:179) at com.sun.jna.Native.loadLibrary(Native.java:569) at com.sun.jna.Native.loadLibrary(Native.java:544) at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:115) at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:56) at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:35) at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:248) at hudson.util.ProcessTree$WindowsOSProcess.killRecursively(ProcessTree.java:525) at hudson.util.ProcessTree.killAll(ProcessTree.java:172) at hudson.Proc$LocalProc.destroy(Proc.java:385) at hudson.Proc$LocalProc.join(Proc.java:358) at hudson.Launcher$RemoteLaunchCallable$1.join(Launcher.java:1324) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) 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.lambda$newThread$0(Engine.java:93) at java.lang. Thread .run(Unknown Source)  

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

              Created:
              Updated: