MCPcopy Create free account
hub / github.com/ElementsProject/lightning / send_backtrace

Function send_backtrace

common/daemon.c:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void send_backtrace(const char *why)
34{
35 /* We do stderr first, since it's most reliable. */
36 warnx("%s (version %s)", why, version());
37 if (backtrace_state)
38 backtrace_print(backtrace_state, 0, stderr);
39
40 if (!bt_print)
41 return;
42
43 /* Now send to parent. */
44 bt_print("%s (version %s)", why, version());
45 if (backtrace_state)
46 backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);
47}
48
49static void extract_symname(void *data, uintptr_t pc,
50 const char *symname,

Callers 6

status_failedFunction · 0.70
do_enqueueFunction · 0.70
crashdumpFunction · 0.70
hsmd_status_failedFunction · 0.50
peer_start_channeldFunction · 0.50
getroutes_forFunction · 0.50

Calls 2

warnxFunction · 0.85
versionFunction · 0.85

Tested by

no test coverage detected