I’m working on getting OS X binaries built for cuda 7.5. I’ve got everything working on my machine, cuda samples compile and run, etc.
I’m able to build all the dylibs with no problem, but when I go to build the JAR (as instructed in the jcuda-main repo) I get the test errors posted below.
It looks like a seg fault in the native code. Anything obvious that I’m doing wrong?
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] jcuda
[INFO] jcublas
[INFO] jcufft
[INFO] jcurand
[INFO] jcusparse
[INFO] jcusolver
[INFO] jcuda-main
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jcuda 0.7.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jcuda ---
[INFO] Deleting /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jcuda ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/cc/repos/jcuda-main/JCuda/JCudaJava/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jcuda ---
[INFO] Compiling 122 source files to /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jcuda ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/cc/repos/jcuda-main/JCuda/JCudaJava/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ jcuda ---
[INFO] Compiling 2 source files to /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ jcuda ---
[INFO] Surefire report directory: /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running jcuda.test.JCudaBasicBindingTest
#
# A fatal error has been detected by the Java Runtime Environment:
#
SUREFIRE-859: # SIGSEGV (0xb) at pc=0x00007fff913aaa07, pid=3864, tid=4867
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libGL.dylib+0x1a07] glGetError+0xd
#
SUREFIRE-859: # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/cc/repos/jcuda-main/jcuda/JCudaJava/hs_err_pid3864.log
#
SUREFIRE-859: # If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/bin/sh: line 1: 3864 Abort trap: 6 /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -Djava.library.path=/Users/cc/repos/jcuda-main/jcuda-main/nativeLibraries -jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefirebooter3876996737178920903.jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire2963486191410258210tmp /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire_0794127898161794396tmp
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jcuda .............................................. FAILURE [ 2.842 s]
[INFO] jcublas ............................................ SKIPPED
[INFO] jcufft ............................................. SKIPPED
[INFO] jcurand ............................................ SKIPPED
[INFO] jcusparse .......................................... SKIPPED
[INFO] jcusolver .......................................... SKIPPED
[INFO] jcuda-main ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.957 s
[INFO] Finished at: 2015-09-24T12:55:53-04:00
[INFO] Final Memory: 23M/314M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project jcuda: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/cc/repos/jcuda-main/JCuda/JCudaJava && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -Djava.library.path=/Users/cc/repos/jcuda-main/jcuda-main/nativeLibraries -jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefirebooter3876996737178920903.jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire2963486191410258210tmp /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire_0794127898161794396tmp
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project jcuda: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /Users/cc/repos/jcuda-main/JCuda/JCudaJava && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -Djava.library.path=/Users/cc/repos/jcuda-main/jcuda-main/nativeLibraries -jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefirebooter3876996737178920903.jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire2963486191410258210tmp /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire_0794127898161794396tmp
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /Users/cc/repos/jcuda-main/JCuda/JCudaJava && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -Djava.library.path=/Users/cc/repos/jcuda-main/jcuda-main/nativeLibraries -jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefirebooter3876996737178920903.jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire2963486191410258210tmp /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire_0794127898161794396tmp
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.lang.RuntimeException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /Users/cc/repos/jcuda-main/JCuda/JCudaJava && /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -Djava.library.path=/Users/cc/repos/jcuda-main/jcuda-main/nativeLibraries -jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefirebooter3876996737178920903.jar /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire2963486191410258210tmp /Users/cc/repos/jcuda-main/JCuda/JCudaJava/target/surefire/surefire_0794127898161794396tmp
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:515)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:380)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:167)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:990)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:824)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:722)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException