-
Notifications
You must be signed in to change notification settings - Fork 14
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
Segmentation fault when mixing OpenGL and OpenCL #28
Comments
At some point in the past (a few months ago), this worked, but I don't recall the exact versions anymore. |
Your reproducer segfaults for me, too, but I don't have much clue as to where the problem is. I guess we've got a few different versions of LLVM at play, so I tried rebuilding |
It works with NixOS 19.09 (that is, stable) and master nixos-rocm. |
I have a vague suspicion about what may be going on. Even the following program crashes when linked with
The strack trace is very suspicious:
What is the LLVM embedded in |
It seems to work if I compile Mesa with LLVM 8 rather than LLVM 9. |
Seems fixed by #35, but it might also be a change in Mesa for all I know. |
I'm mostly curious about whether other users of nixos-rocm have seen this. When mixing OpenGL and OpenCL in the same program, I get a segmentation fault deep inside LLVM.
glut.c
for reproduction:Compile with:
I get a segfault on
glutInit()
. If I doglutInit()
first, then I get a segfault onclGetPlatformIDs()
.This happens both with ROCm 2.10, and the WIP ROCm 3.0.
The text was updated successfully, but these errors were encountered: