[Haskell-cafe] gkt2hs seg fault issue

briand at aracnet.com briand at aracnet.com
Sun Aug 8 17:22:00 EDT 2010


I reported a seg-fault in chart a while back.

so I was experimenting with cairo and rendering to to the screen, which
if my understanding is correct, uses gtk.  Certainly looks like it.

So I compiled the cairo example Drawing.hs and that worked fine.

I then tried running the example from ghci, i.e. loading it and typing
main.

I get a seg-fault when it exits:

Ok, modules loaded: Main.
*Main> main
Loading package array-0.3.0.0 ... linking ... done.
Loading package bytestring-0.9.1.5 ... linking ... done.
Loading package filepath-1.1.0.3 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.3 ... linking ... done.
Loading package unix-2.4.0.0 ... linking ... done.
Loading package directory-1.0.1.0 ... linking ... done.
Loading package process-1.0.1.2 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package random-1.0.0.2 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package mtl-1.1.0.2 ... linking ... done.
Loading package cairo-0.11.0 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package glib-0.11.0 ... linking ... done.
Loading package gio-0.11.0 ... linking ... done.
Loading package pretty-1.0.1.1 ... linking ... done.
Loading package pango-0.11.0 ... linking ... done.
Loading package gtk-0.11.0 ... linking ... done.
*Main> Segmentation fault

I included all the messages in case someone knows that one of the
libraries is out of date and could be the source of the problem.

Is it to be expected that it would seg-fault under ghci ??



More information about the Haskell-Cafe mailing list