From be6af7324bcd918c61172f6814b8a70a6cfdd58e Mon Sep 17 00:00:00 2001 From: Andreas Klebinger Date: Thu, 2 Apr 2020 11:34:31 +0200 Subject: winio: Properly check for the tso of an incall to be zero. --- rts/Schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts') diff --git a/rts/Schedule.c b/rts/Schedule.c index e3f582e967..1d703bdf21 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -941,7 +941,7 @@ scheduleDetectDeadlock (Capability **pcap, Task *task) */ if (recent_activity != ACTIVITY_INACTIVE) return; #endif - if (task->incall->tso->why_blocked == BlockedOnIOCompletion) return; + if (task->incall->tso && task->incall->tso->why_blocked == BlockedOnIOCompletion) return; debugTrace(DEBUG_sched, "deadlocked, forcing major GC..."); -- cgit v1.2.1