Skip to content
Snippets Groups Projects
Commit 5d77c3f4 authored by Teo Camarasu's avatar Teo Camarasu
Browse files

Log blackhole blocks

parent 8feb9301
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
#include "RaiseAsync.h"
#include "sm/Storage.h"
#include "CloneStack.h"
#include "Libdw.h"
/* ----------------------------------------------------------------------------
Send a message to another Capability
......@@ -205,6 +206,16 @@ uint32_t messageBlackHole(Capability *cap, MessageBlackHole *msg)
if (info == &stg_TSO_info)
{
#if USE_LIBDW
fprintf(stderr, "\n");
fprintf(stderr, "Stack trace:\n");
LibdwSession *session = libdwInit();
Backtrace *bt = libdwGetBacktrace(session);
libdwPrintBacktrace(session, stderr, bt);
backtraceFree(bt);
libdwFree(session);
#endif
StgTSO *owner = (StgTSO*)p;
#if defined(THREADED_RTS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment