#3618: memory-leak detector in +RTS -DS fails to track allocations in
constructors
-------------------------------+--------------------------------------------
Reporter: guest | Type: bug
Status: closed | Priority: normal
Milestone: _|_ | Component: Runtime System
Version: 6.12.1 RC1 | Resolution: fixed
Keywords: | Testcase:
Blockedby: | Difficulty: Unknown
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: None/Unknown
-------------------------------+--------------------------------------------
Comment(by Lemming):
Replying to [comment:8 simonmar]:
> The warnings about memory allocation are probably harmless, yes.
>
> To avoid jumping into `handle_tick` when debugging, you can try `+RTS
-V0`, although removing `-threaded` is better (single-threaded is easier
to debug).
Good to know!
> Since the problem appears to be related to `StablePtr`s, you might want
to check all the StablePtr-related code for bugs first, e.g. you might
have freed a `StablePtr` before using it. If you still can't find the
bug, and can't reduce the size of your program, but you can make it crash
reliably, then please do submit a bug report with instructions to
reproduce it.
You are lucky, the problem was my mistake. Due to wrong alignment I peeked
the StablePtr from the wrong address. It had nothing to do with the memory
warnings from GHC.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3618#comment:9>
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