[Haskell-cafe] debugging a hanging program: where to start?
Ketil Malde
ketil at malde.org
Thu May 13 02:13:29 EDT 2010
Aran Donohue <aran.donohue at gmail.com> writes:
> I have a program that I can reliably cause to hang. It's concurrent using
> STM, so I think it could be a deadlock or related issue. I also do some IO,
> so I think it could be blocking in a system call.
If it's the latter, 'strace' might help you. Use 'strace -p PID' to
attach to a running process. Similarly, 'ltrace' can trace library
calls (but probably less useful in this context?)
(This is on Linux, but other OSes are likely to have similar tools.)
-k
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe
mailing list