mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-19 21:14:38 +01:00
lightningd: don't try to perform backtrace if LIGHTNINGD_DEV_NO_BACKTRACE
Valgrind gets upset. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
1a4a59d221
commit
feb6b52f0f
@@ -33,11 +33,13 @@ static void crashdump(int sig)
|
||||
{
|
||||
/* We do stderr first, since it's most reliable. */
|
||||
warnx("Fatal signal %d", sig);
|
||||
backtrace_print(backtrace_state, 0, stderr);
|
||||
if (backtrace_state)
|
||||
backtrace_print(backtrace_state, 0, stderr);
|
||||
|
||||
/* Now send to parent. */
|
||||
bt_print("FATAL SIGNAL %d", sig);
|
||||
backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);
|
||||
if (backtrace_state)
|
||||
backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);
|
||||
|
||||
/* Probably shouldn't return. */
|
||||
bt_exit();
|
||||
|
||||
Reference in New Issue
Block a user