Skip to content

Stack trace

在出现错误而导致program退出执行之前,如果打印出stack trace,那么对于排查问题将有很大的裨益。

Examples

python

python是典型的一旦抛出exception,则默认行为是终止执行,并且打印出stack trace。

Redis

Implementation

https://tombarta.wordpress.com/2008/08/01/c-stack-traces-with-gcc/

https://stackoverflow.com/questions/77005/how-to-automatically-generate-a-stacktrace-when-my-program-crashes#

https://stackoverflow.com/questions/691719/c-display-stack-trace-on-exception?noredirect=1&lq=1