GHCI incorrectly link symbols defined with foreign import ccall
|Reported by:||qnikst||Owned by:|
|Type of failure:||GHCi crash||Difficulty:||Unknown|
|Test Case:||https://gist.github.com/qnikst/324a66914b3aba878be5||Blocked By:|
I have a problem that ghci when loads modules that uses external symbols incorrectly links them, the problem is not reproducible if I'm compiling executable or load modules with :load command.
As a result every Pointer value is equivalent to constant 0x0000fffffff225ff.
A minimal example is in attached link, it contains a small package and description how to reproduce a bug.
Problem is also reproduces on the ghc-HEAD.