[ovs-dev] [PATCH] fatal-signal: Catch SIGSEGV and print backtrace.
blp at ovn.org
Wed Sep 18 16:11:58 UTC 2019
On Tue, Sep 17, 2019 at 04:13:24PM -0700, William Tu wrote:
> The patch catches the SIGSEGV signal and prints the backtrace
> using libunwind, hopefully makes it easier to debug.
> Signed-off-by: William Tu <u9012063 at gmail.com>
I guess my experience is that this sort of thing is sometimes useful but
ultimately causes problems because it tries to call a lot of functions
that a signal handler is not supposed to call.
It might be a good idea to put some of this in lib/backtrace.[ch] and
provide some way to enable it at runtime.
More information about the dev