Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Haskell-cafe] ghci seg faulting, have no idea why.

16 views
Skip to first unread message

Michael Litchard

unread,
Jan 12, 2011, 9:14:11 PM1/12/11
to haskell-cafe
this just started happening, don't know why.

Could anyone offer suggestions, troubleshooting methods?

ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Segmentation fault

Antoine Latter

unread,
Jan 12, 2011, 9:21:19 PM1/12/11
to Michael Litchard, haskell-cafe
What operating system/cpu are you using?

Michael Litchard

unread,
Jan 12, 2011, 10:18:38 PM1/12/11
to Antoine Latter, haskell-cafe
Linux kether 2.6.26-2-xen-amd64 #1 SMP Thu Sep 16 16:32:15 UTC 2010 x86_64
GNU/Linux


This was working fine for quite awhile, then broke.
Also, I already tried removing the .ghc directory

Michael Litchard

unread,
Jan 12, 2011, 10:18:41 PM1/12/11
to Antoine Latter, haskell-cafe
Oh, and the distro would be Debian (whatever the latest stable is)

Paulo Tanimoto

unread,
Jan 12, 2011, 10:52:07 PM1/12/11
to Michael Litchard, Antoine Latter, haskell-cafe
Nothing wrong from:

$ ghc-pkg check

?

> _______________________________________________
> Haskell-Cafe mailing list
> Haskel...@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Michael Litchard

unread,
Jan 12, 2011, 11:25:11 PM1/12/11
to Paulo Tanimoto, Antoine Latter, haskell-cafe
ghc-pkg check
seems fine

Michael Litchard

unread,
Jan 12, 2011, 11:34:33 PM1/12/11
to Paulo Tanimoto, Antoine Latter, haskell-cafe
I believe I have found a solution and am posting the following two links for
others who might be driven insane by this problem.
(ghci worked, then didn't, then did, then didn't). Turns out it seems to be
ghc's terminal bindings need some work.

http://forums.gentoo.org/viewtopic-t-845199-view-previous.html?sid=93c638d029aac6ffe40df2c6b86684ce

which led me here

http://trac.haskell.org/haskeline/ticket/105

Thank you intarwebs, and haskell-cafe!

tl;dr try changing your TERM environment variable to "xterm".

Edward Z. Yang

unread,
Jan 12, 2011, 11:40:35 PM1/12/11
to Michael Litchard, haskell-cafe
If you load ghci into gdb, and then run it until the segfault, do
you get any interesting backtrace? Did you recently run software updates?
What happens if you reinstall GHC? Have you rebooted recently?

Cheers,
Edward

Excerpts from Michael Litchard's message of Wed Jan 12 21:07:30 -0500 2011:

_______________________________________________

0 new messages