[Haskell-cafe] hugs segmentation fault

Jon Fairbairn Jon.Fairbairn at cl.cam.ac.uk
Fri Oct 29 07:00:02 EDT 2004


On 2004-10-29 at 00:50BST Ben Rudiak-Gould wrote:
> Jon Fairbairn wrote:
> 
>  >On 2004-10-29 at 00:03BST Ben Rudiak-Gould wrote:
>  >
>  >>Not much better, though: in my experience this particular
>  >>exception leaves ghci in a very peculiar state, and it's
>  >>usually necessary to quit and restart it before it will
>  >>work again.
>  >
>  >I don't think I've seen such a problem (maybe I so rarely
>  >make that type of mistake?;-). What version? What are the
>  >symptoms of this not working of which you speak? It seems
>  >OK in ghci 6.2.1
> 
> Well, here's a sample session I recorded just now:
> 
> C:\>\ghc\ghc-6.2.1\bin\ghci
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version 6.2.1, for Haskell 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
> 
> Loading package base ... linking ... done.
> Prelude> let p = 1 : [2 * x | x <- p, x < 1] in p
> [1*** Exception: <<loop>>
> Prelude> 123
> 
> Fail: thread blocked indefinitely
> 
> 
> C:\>
> 
> 
> Does this only happen to me?

I'm using Linux, you Windows. I suspect there's a hint
there. Has this been reported to Glasgow Haskell bugs?
(cc'd)

-- 
Jón Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk




More information about the Haskell-Cafe mailing list