crash in Java_com_jogamp_opencl_llb_impl_CLImpl_clBuildProgram0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

crash in Java_com_jogamp_opencl_llb_impl_CLImpl_clBuildProgram0

Bram
Hello,

I am facing a jocl crash issue with clBuildProgram.
Important info : I am using RHEL6 64b and the latest nvidia driver for k20 (340.65)

When I build a kernel using jocl, the jvm crashes.
I have recompiled jocl to investigate where this comes from and I'm a bit stuck now so I turn to you guys.
it seems that the issue comes from the clBuildProgram function call in the JNI file.

Four interesting points :

1/ Building the same kernel with a plain old c program does not crash (same parameters passed to the driver)
2/ Building the same kernel with a plain old c program using dlopen and dlsym just like jocl does not crash either.
3/ The crash occurs only on 340.65, I have been able to downgrade to an older version (304.xx) and jocl works just fine.
4/ 340.65 works fine on windows

here is the stack before the crash :

#172 0x00007f10fdfca5c7 in NvCliCompileProgram () from /usr/lib64/libnvidia-compiler.so.340.65
#173 0x00007f11271c20ac in ?? () from /usr/lib64/libnvidia-opencl.so.1
#174 0x00007f11271b64c5 in ?? () from /usr/lib64/libnvidia-opencl.so.1
#175 0x00007f112c3bb8c9 in Java_com_jogamp_opencl_llb_impl_CLImpl_clBuildProgram0 ()

Any ideas on why this could happen ? Maybe it's a bug on the driver side, but if it's the case, I would like to be able to send them a reproduction case without jocl in the middle.

Thanks for your help, any ideas are welcome.

Bram
Reply | Threaded
Open this post in threaded view
|

Re: crash in Java_com_jogamp_opencl_llb_impl_CLImpl_clBuildProgram0

Wade Walker
Administrator
Hi Bram,

I've created a bug entry for this at https://jogamp.org/bugzilla/show_bug.cgi?id=1136. Could you add your failing kernel as an attachment? Then I'll trying compiling it on a few different systems and see what happens.