patch applied (ghc-6.6/ghc): Add freeScheduler/freeTaskManager and
call it later than exitScheduler
Ian Lynagh
igloo at earth.li
Mon Dec 11 08:14:01 EST 2006
Mon Dec 11 05:10:04 PST 2006 Ian Lynagh <igloo at earth.li>
* Add freeScheduler/freeTaskManager and call it later than exitScheduler
We were freeing the tasks in exitScheduler (stopTaskManager) before
exitStorage (stat_exit), but the latter needs to walk down the list
printing stats. Resulted in segfaults with commands like
ghc -v0 -e main q.hs -H32m -H32m +RTS -Sstderr
(where q.hs is trivial), but very sensitive to exact commandline and
libc version or something.
M ./rts/RtsStartup.c +3
M ./rts/Schedule.c +6
M ./rts/Schedule.h +1
M ./rts/Task.c -3 +17
M ./rts/Task.h +1
More information about the Cvs-ghc
mailing list