Re: [Haskell-cafe] Debugging misbehaving multi-threaded programs

2009-06-11 Thread Evan Klitzke
On Thu, Jun 11, 2009 at 12:40 AM, Ketil Malde wrote: > Evan Klitzke writes: > >> [...] Unfortunately, this doesn't seem to work; whenever the >> program terminates due to running out of heap space, the generated >> .prof file is empty. > > Unless there's some specific problem with profiling in com

Re: [Haskell-cafe] Debugging misbehaving multi-threaded programs

2009-06-11 Thread Claus Reinke
I've written a multi-threaded Haskell program that I'm trying to debug. Basically what's happening is the program runs for a while, and then at some point one of the threads goes crazy and spins the CPU while allocating memory; this proceeds until the system runs out of available memory. I can't f

Re: [Haskell-cafe] Debugging misbehaving multi-threaded programs

2009-06-11 Thread Ketil Malde
Evan Klitzke writes: > [...] Unfortunately, this doesn't seem to work; whenever the > program terminates due to running out of heap space, the generated > .prof file is empty. Unless there's some specific problem with profiling in combination with threading, you can get heap profiling from a cra

[Haskell-cafe] Debugging misbehaving multi-threaded programs

2009-06-10 Thread Evan Klitzke
I've written a multi-threaded Haskell program that I'm trying to debug. Basically what's happening is the program runs for a while, and then at some point one of the threads goes crazy and spins the CPU while allocating memory; this proceeds until the system runs out of available memory. I can't fi