Login  Register

Re: HelloJOCL sigsegv on linux

Posted by Michael Bien on Jun 28, 2011; 2:00pm
URL: https://forum.jogamp.org/HelloJOCL-sigsegv-on-linux-tp3117173p3117882.html

  On 06/28/2011 11:27 AM, kaerwel [via jogamp] wrote:

> Hi all,
>
> I have tried to run the HelloJOCL example but my jvm got a sig segv :
>
> created CLContext [id: 140086599919776, platform: NVIDIA CUDA, profile:
> FULL_PROFILE, devices: 1]
> using CLDevice [id: 140086600294256 name: GeForce 8400M GS type: GPU
> profile: FULL_PROFILE]
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f687f387b52, pid=16086, tid=140086771967744
> #
> # JRE version: 6.0_25-b06
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.0-b11 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # C  [libc.so.6+0x7bb52]  __strerror_r+0x162
> #
> # An error report file with more information is saved as:
> #  http://pastebin.com/ed3jnf0C /home/.../jocl/hs_err_pid16086.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> # The crash happened outside the Java Virtual Machine in native code.
> # See problematic frame for where to report the bug.
> #
>
> Does anyone have an idea about what happen and how solve this problem ?
>
> Regards.
>

Hi,

on which NV drivers are you running the demo?

java -jar jocl.jar:gluegen-rt.jar -Djava.library.path="path/to/jocl/libs:path/to/gluegen/libs" com.jogamp.opencl.util.CLInfo

will provide the full device and system properties readout.

I haven't had a segfault using jocl for a long time. Maybe reinstalling
the drivers will already solve the issue.
you could also try a different build:
https://github.com/downloads/mbien/jocl/jocl-0.9-bmanual-20110526-linux-amd64.zip

looking at the error log it looks like the compilation of the CL program
failed on your system and the getBuildLog() used for the exception
message caused the seg fault.


(btw did your JVM automatically upload the error log to pastebin? :D )

regards,
michael

--
http://michael-bien.com/