Skip to content

seg fault in ghci but not ghc when using chart-gtk code

I don't know if this is os x lion specific, but when running (attached .hs file) after compiling with (attached .txt) directions, the program compiled with ghc to a binary will work when set to generate either a pdf or a x11 window. In contrast, the same program when run via ghci and set to render to an x11 window, it segfaults. The ghci run when set to output to pdf works fine though. So I think the problem (perhaps, but perhaps not) might be with how the gtk package uses the ffi when run via ghci vs ghc? (so perhaps is a static vs dynamic linking issue).

it does seem like this might in some way related to another linking bug on mac http://hackage.haskell.org/trac/ghc/ticket/5816##5841

Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related #5816 (closed)
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information