If you’re on linux or mac you could try running with address sanitizer. It may catch out of bounds memory access issues.