
I want to profile my Haskell program (it solves the Queens and Knights problem stated here: http://www.itasoftware.com/careers/programmers.php ). I'm compiling with GHC 5.04.1 under Windows NT using the following command line (as per the Users Guide):
ghc -prof -auto-all -o queens --make Main
When I run the program with the following command lines I get:
queens queens: fatal error: evacuate: strange closure type 1696
queens +RTS queens: fatal error: evacuate: strange closure type 1728
queens +RTS -p queens: fatal error: evacuate: strange closure type 1760
(I have no idea if the change in closure type is significant, but it is quite clearly related to the command line options used.) The program works without profiling (whether or not it produces the correct answers is another matter). I just want to practice profiling and optimising Haskell programs. I've also tried running the profiler with a minimal program:
module Main where main :: IO () main = do putStrLn "hello world"
... and I get a segmentation fault. Anyway, I've had a quick look through the last couple of months of mailing list archives and haven't noticed anything related to this error. Any ideas? Thanks, Alistair. ***************************************************************** The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). This information may be subject to legal professional or other privilege or may otherwise be protected by work product immunity or other legal rules. It must not be disclosed to any person without our authority. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. *****************************************************************
participants (1)
-
Bayley, Alistair