Untag closure pointers before trying to print them.
authorBen.Lippmeier@anu.edu.au <unknown>
Mon, 12 Jan 2009 05:34:21 +0000 (05:34 +0000)
committerBen.Lippmeier@anu.edu.au <unknown>
Mon, 12 Jan 2009 05:34:21 +0000 (05:34 +0000)
In RTS tracing code, need to untag the pointer before trying
to load the info table in printClosure()

rts/Printer.c

index 1ad6306..2fbe276 100644 (file)
@@ -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 ) {