
On 11/2/06, SevenThunders
SevenThunders wrote:
All my code is compiled using the -prof -auto flag and then run using +RTS -hc -RTS. The resulting plots do not show a linear increase in heap usage, although the Windows XP operating system does report such an increase.
This is either a bug in GHC or a bug in the profiler or both unless I am mistaken. The bug seems to arise when using FFI and using the wrapper mode for a Haskell callback. A pointer to the Haskell wrapper is created on the fly and then supposedly released by freeHaskellFunPtr.
Unfortunately, at least under Windows XP 64 on my amd x2 3800 box, memory grows without bound. Even worse, however is the fact that profiling this function does not reveal the leak at all. It shows a constant memory profile.
Do any memory leaks show up if you compile with -caf-all when you profile? Jason