If the same code is running fine on another machine, I would guess that you are using different PyTorch versions?
If so, which one is working and which one is failing?
Could you also post the batcktrace of gdb via:
gdb --args ./my_app
...
run
...
bt