-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple calls to clCompileProgram/clLinkProgram cause crash #560
Comments
Thank you for reporting this! |
Thanks for the fix! Is there a date set for the next release? |
When I look at the Khronos specification for clCreateSubDevices and then at the LWJGL3 method, I don't see any differences. Both signatures match. |
You are correct. This appears to be a discrepancy just within the Khronos specs which mention:
However there is no errcode_ret parameter or way to get an error code from clCreateSubDevices as far as I can see. It followed a similar pattern to what I saw with clBuildProgram so I wrongly assumed it had the same issue. |
Oh indeed! I didn't notice that, thanks for pointing out. That actually is a bug in their documentation. |
[*] Changed naming convention [!] clLinkProgram crashes JVM on Windows: test further (see LWJGL/lwjgl3#560)
Has the issue been resolved? This one's critical for me since this bug is a death note for my program |
Yes, the fix is available in the 3.2.4 snapshot. |
Environment
3.2.1
release
1.8
Windows x64
opencl
Description
We are using the OpenCL bindings to build and run OpenCL kernels. Instead of using the one-step clBuildProgram() call, we are using the two-step process where we call clCompileProgram() followed by clLinkProgram() to build our kernel. If we do this twice in a row, we get a crash on the second clLinkProgram call. I am attaching an isolated test case and a crash log. One very odd feature of this bug is that it seems to be affected by the Java stack. If I add random int variables, the crash will trigger/not-trigger. So you may need to add/remove random int variables depending on your system. I have tried it on four different OpenCL devices across two different Windows systems and found this bug to occur on all.
hs_err_pid17432.log
Tested on:
The text was updated successfully, but these errors were encountered: