Ticket #1183 (closed defect: fixed)
Segfault in ghci 6.12.1
|Reported by:||guest||Owned by:||axel|
|Component:||general (Gtk+, Glib)||Version:||0.11.0|
Summary: I get a segmentation fault when running gtk2hs in interactive mode. I haven't seen this happen (yet?) with a compiled gtk2hs program. I think that it may be related to garbage collection.
OS: Arch Linux (x86_64) GHC: 6.12.1 gtk2hs: Darcs - last commit @ Fri Feb 12 00:23:26 PST 2010
- Open hello world demo in ghci
- Run main
- Everything works and looks normal
- Wait a few moments (so far never more than a 30 seconds)
- Segmentation fault
Backtrace: Unfortunately, Arch Linux strips out a lot of debugging information so my gdb backtrace is rather useless. I tried to recompile without debug stripping, but I have yet to have the right magic to get it working correctly.
Garbage collection?: I ran ghci with +RTS -S and performed the same steps. On startup, I got lots of things, typically (Gen: 0) - eg:
524192 221720 12653616 0.00 0.00 0.46 3.52 0 0 (Gen: 0)
Which is perfectly fine. But when the GUI starts up, I get silence for the however many seconds, then I get:
231704 7528416 11688904 0.04 0.04 0.95 9.02 0 0 (Gen: 1)
and an immediate crash afterwards. In compiled mode, I see similar GC's (both) and I don't get a crash.