#3215: Valgrind support
--------------------------------+-------------------------------------------
Reporter: cmcq | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone:
Component: Runtime System | Version: 6.10.3
Severity: trivial | Resolution:
Keywords: valgrind | Difficulty: Unknown
Testcase: yes | Os: Linux
Architecture: x86 |
--------------------------------+-------------------------------------------
Changes (by igloo):
* difficulty: => Unknown
Old description:
> This is based on code in gtk2hs.
>
> $ valgrind -q ./finalizer_queue
>
> finalizer_queue: internal error: stg_ap_v_ret
> (GHC version 6.10.3 for i386_unknown_linux)
> Please report this as a GHC bug:
> http://www.haskell.org/ghc/reportabug
> Killed
>
> Unfortunately this test doesn't crash without Valgrind.
>
> My guess is that this bit is the problem:
>
> finalizer <- fixIO $ \dPtr -> mkThunk $ do
> freeHaskellFunPtr callback
> freeHaskellFunPtr dPtr
>
> Perhaps the documentation should say not to do this?
New description:
This is based on code in gtk2hs.
{{{
$ valgrind -q ./finalizer_queue
finalizer_queue: internal error: stg_ap_v_ret
(GHC version 6.10.3 for i386_unknown_linux)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
Killed
}}}
Unfortunately this test doesn't crash without Valgrind.
My guess is that this bit is the problem:
{{{
finalizer <- fixIO $ \dPtr -> mkThunk $ do
freeHaskellFunPtr callback
freeHaskellFunPtr dPtr
}}}
Perhaps the documentation should say not to do this?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3215#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs