#5314: "internal error: heapCencus, unknown object: 0" with retainer profiling
-------------------------------+--------------------------------------------
Reporter: akio | Owner: simonmar
Type: bug | Status: new
Priority: high | Milestone: 7.2.1
Component: Runtime System | Version: 7.0.4
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: Runtime crash
-------------------------------+--------------------------------------------
Comment(by marlowsd@…):
commit e903a09466c5a700baea8a34511cbdc2576b136e
{{{
Author: Simon Marlow <[email protected]>
Date: Wed Jul 20 15:29:54 2011 +0100
Move the call to heapCensus() into GarbageCollect(), just before
calling resurrectThreads() (fixes #5314).
This avoids a lot of problems, because resurrectThreads() may
overwrite some closures in the heap, leaving slop behind. The bug in
instances, this fix avoids them all in one go.
rts/Schedule.c | 9 ++++-----
rts/sm/GC.c | 10 ++++++++++
rts/sm/GC.h | 4 +++-
3 files changed, 17 insertions(+), 6 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5314#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs