Two problems with heap profiling

Simon Marlow simonmar at microsoft.com
Tue Apr 20 12:30:56 EDT 2004


On 16 April 2004 10:39, Stefan Reich wrote:

> I'm using GHC 6.2.1 on Windows 2000.
> 
> Problem 1: -hr crashes in some circumstances.
> 
> Take this program (Test.hs):
> 
>   module Main where
>   import IO
>   main = do
>     readFile "large.csv"
>     putStrLn "OK"
> 
> where large.csv is an 800K CSV file (with very small files, the bug
> doesn't occur). I compile with:
> 
>     ghc -prof -auto-all Test.hs
> 
> and run with:
> 
>     a.out +RTS -hr

I can't reproduce this bug.  Just to make sure I'm doing exactly the
same thing, could you send me the source code for Test.hs and
"large.csv" (compressed), please?

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list