Memory corruption in rtBufferCreate

I’ve switch to CUDA 9, and downgraded my version of clang to 3.9 so it’ll play nicely with nvcc… but I’m getting the same error about

malloc(): memory corruption

When I don’t upload any meshes I get a crash in my call to rtContextLaunch. When I do upload meshes, I get the malloc error when creating the first texture’s buffer

Meshes are uploaded before any textures