Re: segfaults, working version?
Posted by
Michael Bien on
Aug 26, 2010; 12:23am
URL: https://forum.jogamp.org/Re-segfaults-working-version-tp911744p1343754.html
Merijn Vogel wrote
While using JOCL, I get segfaults left, right and center. If I initialize a context and load a program in it but do not use it, it crashes after a while. If I use it, it also crashes.
These are my first steps towards programming for the GPU, and I only wish to multiply large vectors, this is still a strange issue to me. Note that I only initialize the context and don't even do something with it and it already crashes...
However, I created one of the example programs (multiply vector) and that worked, but it ran so quickly it hardly had the time to crash... I'm not sure which driver versions I use, how to find that out in ubuntu?
Also, may there be some conflict between my X session and JOCL? Using the C/C++-examples my system sometimes hangs (except the mousepointer?!).
nvidia driver?
see:
Michael Bien wrote
There is also a linux related driver bug worth mentioning. For a workaround, start your program from console and enable signal chaining with:
export LD_PRELOAD=/usr/lib/jvm/java-6-sun/jre/lib/amd64/libjsig.so
The bug was only reproducible with NV drivers so far (which is fixed in the upcoming driver release) but it could happen on AMD too...
(in short: some drivers replace mandatory JVM signal handlers which leads to crashes and very unstable behavior esp in GL-CL interop. apps.)
(but newest binary nv drivers fixed this issue)
if its not signal chaining please provide a small testcase which reproduces the issue.
also take a look at the junit tests if you want to know how to read out driver information etc:
http://github.com/mbien/jocl/blob/master/test/com/jogamp/opencl/HighLevelBindingTest.java(e.g. contextlessTest)
-michael