seg fault in ghci but not ghc when using chart-gtk code
|Reported by:||carter||Owned by:|
|Operating System:||MacOS X||Architecture:||x86_64 (amd64)|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||#5816||Differential Revisions:|
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#comment:4