From: Ben.Lippmeier@anu.edu.au Date: Mon, 12 Jan 2009 05:34:21 +0000 (+0000) Subject: Untag closure pointers before trying to print them. X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=42d87c155aaa9863c40dcdb28af1d23d31b35c9f;p=ghc-hetmet.git Untag closure pointers before trying to print them. In RTS tracing code, need to untag the pointer before trying to load the info table in printClosure() --- diff --git a/rts/Printer.c b/rts/Printer.c index 1ad6306..2fbe276 100644 --- a/rts/Printer.c +++ b/rts/Printer.c @@ -121,8 +121,9 @@ printThunkObject( StgThunk *obj, char* tag ) void printClosure( StgClosure *obj ) { + obj = UNTAG_CLOSURE(obj); + StgInfoTable *info; - info = get_itbl(obj); switch ( info->type ) {