logo       

RE: Segmentation fault with GHCi 6.0: msg#00061

lang.haskell.glasgow.bugs

Subject: RE: Segmentation fault with GHCi 6.0


> What is going on here? Is it already fixed in 6.1?
>
> # uname -a
> Linux denebola 2.4.19-4GB #2 Mon Mar 31 10:57:24 CEST 2003
> i686 unknown
> # ghc DynExcep.hs -c -fglasgow-exts
> # ghci
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version 6.0, for
> Haskell 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>
> Loading package base ... linking ... done.
> GHC.Err.error :: forall a. [Char] -> a
> Prelude> :module + DynExcep
> Prelude DynExcep> dynExcep
> Segmentation fault

Oh dear. This is a new one on me:

Prelude> Control.Exception.throwDyn (1::Int)
segmentation fault

It's caused by the fact that GHCi and the running program are using
separate copies of the Data.Dynamic library, which means that values of
type Dynamic from the two different worlds will appear to have equal
types when they shouldn't.

We need to have a think about how best to fix this...

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise