From 30faa6485a467628293144bf05d28a74de6609c0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 2 Mar 2018 19:29:17 +1030 Subject: [PATCH] subdaemons: copy backtraces to stderr. We didn't get the entire thing in the parent when gossipd crashed: stderr is suitable for these I think. Signed-off-by: Rusty Russell --- common/subdaemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/subdaemon.c b/common/subdaemon.c index 3e51b2f1a..59c77e685 100644 --- a/common/subdaemon.c +++ b/common/subdaemon.c @@ -18,6 +18,8 @@ static int backtrace_status(void *unused UNUSED, uintptr_t pc, const char *filename, int lineno, const char *function) { + fprintf(stderr, "backtrace: %s:%u (%s) %p\n", + filename, lineno, function, (void *)pc); status_trace("backtrace: %s:%u (%s) %p", filename, lineno, function, (void *)pc); return 0;