The next step could be to run under gdb (you can also run test_autograd directly if you want) and get a stack trace. I’m a bit surprised of sigiot, though, it could be that you still have a library version mixup somewhere (try using ldd on the libraries in build/lib.*/torch/lib or so). Sometimes things like threading libraries are tricky.