rts: print incorrect prev_what_next
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 1 Apr 2017 10:58:55 +0000 (11:58 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 1 Apr 2017 10:58:55 +0000 (11:58 +0100)
Moritz Angermann reports mysterious rts crash:
  A: link: internal error: schedule: invalid what_next field
  A:     (GHC version 8.3.20170321 for arm_none_linux_android)

This change prints actual prev_what_next value.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
rts/Schedule.c

index a4d0c1d..b77e7a2 100644 (file)
@@ -473,7 +473,7 @@ run_thread:
         break;
 
     default:
-        barf("schedule: invalid what_next field");
+        barf("schedule: invalid prev_what_next=%u field", prev_what_next);
     }
 
     cap->in_haskell = false;