This is just a list of helpful techniques I have used for
Unfortunately, I have found that pytorch's unwinder can make mistakes, which makes the stack traces less than useful. As soon as the stack unwinder fails, all remaining frames are omitted.
Compiling with -fno-omit-frame-pointer has not helped in my experience.