Use gdb to get a native stacktrace when timeout occurs.