From 6e4e6a2a03482cb1a04e128136ea431236507342 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 8 Nov 2005 10:44:22 +0000 Subject: [PATCH] [project @ 2005-11-08 10:44:22 by simonmar] raiseAsync: fix bug that can cause a scavenge_stack panic for a thread that has just been killed. --- ghc/rts/Schedule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghc/rts/Schedule.c b/ghc/rts/Schedule.c index 93a64d8..35e87e0 100644 --- a/ghc/rts/Schedule.c +++ b/ghc/rts/Schedule.c @@ -3802,9 +3802,8 @@ raiseAsync_(Capability *cap, StgTSO *tso, StgClosure *exception, case STOP_FRAME: // We've stripped the entire stack, the thread is now dead. - sp += sizeofW(StgStopFrame); tso->what_next = ThreadKilled; - tso->sp = sp; + tso->sp = frame + sizeofW(StgStopFrame); return; default: -- 1.7.10.4