Commit b890e88d authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

rts: Print message before SIGUSR2 backtrace

Reviewers: austin, erikd, simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3942
parent dafa0128
......@@ -539,6 +539,7 @@ backtrace_handler(int sig STG_UNUSED)
#if USE_LIBDW
LibdwSession *session = libdwInit();
Backtrace *bt = libdwGetBacktrace(session);
fprintf(stderr, "\nCaught SIGUSR2; Backtrace:\n");
libdwPrintBacktrace(session, stderr, bt);
backtraceFree(bt);
libdwFree(session);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment