#4036: Compiled FFI static imports are invalid when imported in GHCI
-------------------------------+--------------------------------------------
Reporter: jmillikin | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (FFI)
Version: 6.12.1 | Keywords:
Os: Linux | Testcase:
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
-------------------------------+--------------------------------------------
Comment(by jmillikin):
(sorry; hit enter too soon)
I thought this might be related to the somewhat complex type of
{{{sys_siglist}}}, but it also occurs even if I just have a simple C
function which returns {{{char*}}}.
Additionally, if ''all* of the code is compiled, the program works as
expected. It's only if some is compiled and some is interpreted that
errors occur:
$ ghc --make Main.hs
$ ./Main
siglist_a = 0x0000000000683260
siglist_b = 0x0000000000683260
siglist_main = 0x0000000000683260
siglist_a [2] = Just "Interrupt"
siglist_b [2] = Just "Interrupt"
siglist_main[2] = Just "Interrupt"
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4036#comment:1>
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