On 22/11/09 22:58, Alex Dunlap wrote:
On Sun, Nov 22, 2009 at 10:26:02PM +0000, Ian Lynagh wrote:
On Sun, Nov 22, 2009 at 01:35:00PM -0800, Alex Dunlap wrote:

I installed this and tried to build the network package. Here's what happened:

---- SNIP ----
$ ~/usr/bin/ghc --make Setup.hs
Linking Setup ...
$ ./Setup configure
Warning: defaultUserHooks in Setup script is deprecated.
Configuring network-2.2.1.5...
Setup: fd:5: hGetContents: invalid argument (Invalid or incomplete multibyte or 
wide character)
*** glibc detected *** ./Setup: double free or corruption (!prev): 0x09d33050 
***

Which ghc is in your path? It sounds like Cabal is finding your old GHC
and trying to read its package database, but failing due to
     http://hackage.haskell.org/trac/hackage/ticket/609

Does that sound right?


Thanks
Ian


Yes, adding the new GHC to my PATH fixes the problem. It seems like that memory error is 
quite severe for trying to read a file with bad encoding—couldn't it fail with a simple 
"Bad encoding" exception or something?

I'm surprised by the memory error too. It may be a real bug. Would you mind reporting it, including the full output of 'ghc-pkg dump' for the GHC that was in your PATH in the above?

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to