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

Function send_backtrace

common/daemon.c:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void send_backtrace(const char *why)
29{
30 /* We do stderr first, since it's most reliable. */
31 warnx("%s (version %s)", why, version());
32 if (backtrace_state)
33 backtrace_print(backtrace_state, 0, stderr);
34
35 /* Now send to parent. */
36 bt_print("%s (version %s)", why, version());
37 if (backtrace_state)
38 backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);
39}
40
41static void crashdump(int sig)
42{

Callers 3

status_failedFunction · 0.70
crashdumpFunction · 0.70
hsmd_status_failedFunction · 0.50

Calls 2

warnxFunction · 0.85
versionFunction · 0.70

Tested by

no test coverage detected