patch applied (ghc-6.6/ghc): Add freeScheduler/freeTaskManager and call it later than exitScheduler

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <20061211131401.GA598__41681.2657531866$1165842859$gmane$org@cvs.haskell.org>
Mon Dec 11 05:10:04 PST 2006  Ian Lynagh <[email protected]>
  * 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.