From 02b55e35b846780aacbbd99ac4092660235fd9a2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 13 Jun 2018 06:18:00 +0930 Subject: [PATCH] daemon: print version in crash backtrace. Sometimes people only send us the crash, not the logs. Signed-off-by: Rusty Russell --- common/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/daemon.c b/common/daemon.c index 5815d8178..882b6602e 100644 --- a/common/daemon.c +++ b/common/daemon.c @@ -32,12 +32,12 @@ static int backtrace_status(void *unused UNUSED, uintptr_t pc, static void crashdump(int sig) { /* We do stderr first, since it's most reliable. */ - warnx("Fatal signal %d", sig); + warnx("Fatal signal %d (version %s)", sig, version()); if (backtrace_state) backtrace_print(backtrace_state, 0, stderr); /* Now send to parent. */ - bt_print("FATAL SIGNAL %d", sig); + bt_print("FATAL SIGNAL %d (version %s)", sig, version()); if (backtrace_state) backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);