Reliable backtrace by instrumentation