#2087: On a PPC Mac OS X 10.4, the RTS reports "Memory leak detected" running a
program compiled with -debug -threaded -fhpc
----------------------------+-----------------------------------------------
Reporter: thorkilnaur | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8.3
Component: Runtime System | Version: 6.9
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: powerpc
Os: MacOS X |
----------------------------+-----------------------------------------------
Comment (by thorkilnaur):
The RTS, changed as indicated in the attached patch, has produced the
slightly extended log which is also attached. The log covers a run that
reports the memory leak, followed by a run that succeeds. A diff -C 1 of
the two runs contains
{{{
***************
*** 409,411 ****
allocGroup(1102,4) -> 0x1500f40 (block split)
! 280a600: starting GC
memInventory:
--- 410,416 ----
allocGroup(1102,4) -> 0x1500f40 (block split)
! freeGroup(0x1500f40,4)
! free block list:
! group at 0x1503000, length 123 blocks
! Memory leak?
! a000ed88: starting GC
memInventory:
***************
}}}
which confirms that the garbage collector is called between the alloc and
free in {{{hs_add_root}}}.
Best regards
Thorkil
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2087#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