Two problems with heap profiling

Simon Marlow simonmar at
Tue Apr 20 12:24:17 EDT 2004

On 17 April 2004 10:15, Sven Panne wrote:

> Stefan Reich wrote:
>> Problem 1: -hr crashes in some circumstances. [...]
> No idea about this one...
>> Problem 2: hp2ps doesn't work at all. [...]
> That's a little bit harsh. :-) First of all it's not hp2ps, but GHC's
> RTS which has a buglet. Furthermore, it only has this problem in some
> locales. As a workaround you could try to switch your locale e.g. to
> English while running your Haskell program.
> I've fixed this about a month ago in the HEAD, but it did not make
> its way into the STABLE branch. SimonM?

I rather think the bug is that we're using printf() to create the
profiling output, which is supposed to be in a fixed format.  There's
nothing stopping the Haskell program from calling setlocale() and
screwing us up again.

Anyway, I'll merge the workaround through for the time being.


More information about the Glasgow-haskell-users mailing list