{"action":"opened","issue":{"url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/186","repository_url":"https://api.github.com/repos/pcpratts/rootbeer1","labels_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/186/comments","events_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/186/events","html_url":"https://github.com/pcpratts/rootbeer1/issues/186","id":135536739,"number":186,"title":"java.lang.UnsatisfiedLinkError: ~/.rootbeer/rootbeer_cuda_x64.so.1: ~/.rootbeer/rootbeer_cuda_x64.so.1: file too short","user":{"login":"mxmlnkn","id":6842824,"avatar_url":"https://avatars.githubusercontent.com/u/6842824?v=3","gravatar_id":"","url":"https://api.github.com/users/mxmlnkn","html_url":"https://github.com/mxmlnkn","followers_url":"https://api.github.com/users/mxmlnkn/followers","following_url":"https://api.github.com/users/mxmlnkn/following{/other_user}","gists_url":"https://api.github.com/users/mxmlnkn/gists{/gist_id}","starred_url":"https://api.github.com/users/mxmlnkn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxmlnkn/subscriptions","organizations_url":"https://api.github.com/users/mxmlnkn/orgs","repos_url":"https://api.github.com/users/mxmlnkn/repos","events_url":"https://api.github.com/users/mxmlnkn/events{/privacy}","received_events_url":"https://api.github.com/users/mxmlnkn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-22T20:38:48Z","updated_at":"2016-02-22T20:38:48Z","closed_at":null,"body":"When trying to run Rootbeer on a cluster, e.g. with slurm `srun -n 32 ...` then a race condition for the extracted shared library may occur if the home directory is shared between all nodes:\r\n\r\n\r\n    # A fatal error has been detected by the Java Runtime Environment:\r\n    #\r\n    #  SIGBUS (0x7) at pc=0x0000003f86a1802e, pid=30375, tid=47922028291840\r\n    #\r\n    # JRE version: 7.0_25-b15\r\n    # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode linux-amd64 compressed oops)\r\n    # Problematic frame:\r\n    # C  [ld-linux-x86-64.so.2+0x1802e]#\r\n    #\r\n    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n    #\r\n    # An error report file with more information is saved as:\r\n    # ~/hs_err_pid30373.log\r\n    #\r\n    # If you would like to submit a bug report, please visit:\r\n    #   http://bugreport.sun.com/bugreport/crash.jsp\r\n    # The crash happened outside the Java Virtual Machine in native code.\r\n    # See problematic frame for where to report the bug.\r\n    #\r\n    java.lang.UnsatisfiedLinkError: ~/.rootbeer/rootbeer_cuda_x64.so.1: ~/.rootbeer/rootbeer_cuda_x64.so.1: file too short\r\n        at java.lang.ClassLoader$NativeLibrary.load(Native Method)\r\n        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)\r\n        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)\r\n        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1843)\r\n        at java.lang.Runtime.load0(Runtime.java:795)\t\r\n        at java.lang.System.load(System.java:1061)\r\n        at org.trifort.rootbeer.runtime.CUDALoader.doLoad(CUDALoader.java:93)\r\n        at org.trifort.rootbeer.runtime.CUDALoader.load(CUDALoader.java:86)\r\n        at org.trifort.rootbeer.runtime.Rootbeer.<clinit>(Rootbeer.java:15)\r\n        at TestRootbeerRun.<init>(Jasmin)\r\n        at java.lang.Runtime.load0(Runtime.java:795)\t\r\n        at TestRootbeer.main(Jasmin)\r\n\r\n    srun: error: node94: tasks 4,6: Exited with exit code 1\r\n    srun: error: node94: tasks 5,7: Exited with exit code 134\r\n    srun: error: node96: tasks 12-13,15: Exited with exit code 134\r\n    srun: error: node96: task 14: Exited with exit code 139\r\n    srun: error: node99: tasks 24-26: Exited with exit code 134\r\n    srun: error: node99: task 27: Exited with exit code 1\r\n    srun: error: node93: tasks 0-1,3: Exited with exit code 134\r\n    srun: error: node93: task 2: Exited with exit code 1"}}