Skip to content

The program built with ghc 6.4.2 -prof hangs, without -prof works

To reproduce the problem, download the attachment and do the following, assuming 6.4.2 is the version of the ghc executable in path:

tar xzf static.tar.gz
cd static
make
./gens 4                    # works
./gens - <tests             # works
./gens-prof 4               # hangs

Several points:

  • ghc 6.4.1 works properly. That's what I'm using for profiling now.

  • At first I thought the problem was with Edison libraries, but an

    older version of the project, without Edison, behaves the same.

  • Removing -auto-all and add -fasm made no difference. I guess that means GCC is not at fault.

By the way, I'm running Gentoo Linux with an Athlon CPU. Let me know if you have trouble reproducing the problem.

Edited by Simon Marlow
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information