<div dir="ltr">The bug that Luite and I uncovered is <a href="http://ghc.haskell.org/trac/ghc/ticket/7930">http://ghc.haskell.org/trac/ghc/ticket/7930</a>.  It would not be related.  There was a bug relating to `catchSTM` that was fixed recently: <a href="http://ghc.haskell.org/trac/ghc/ticket/8035">http://ghc.haskell.org/trac/ghc/ticket/8035</a>.  And another related to profiling: <a href="http://ghc.haskell.org/trac/ghc/ticket/8298">http://ghc.haskell.org/trac/ghc/ticket/8298</a>.  I doubt either of these is related.  I'm happy to help narrow things down.<div>
<br></div><div>Ryan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 4:39 AM, Simon Marlow <span dir="ltr"><<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 17/10/2013 03:01, Andreas Voellmy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I have a program that uses STM heavily and also performs lots of foreign<br>
calls. I've noticed that sometimes the program uses 100% CPU<br>
indefinitely and uses lots of memory - I see it go up to about 5GB<br>
before I kill it. I've grabbed some preliminary samples of stack traces<br>
and see lots stm related stuff (e.g. lots of stg_atomically_frame_info<br>
and stmCommitTransaction entries).  I can pretty reliably get the<br>
behavior to happen now by closing a socket that my Haskell program is<br>
trying to recv from. When this causes an exception to be raised<br>
(something like "recv: resource vanished (Connection reset by peer)") ,<br>
then this behavior gets triggered.  I haven't pinned down the bug yet,<br>
but I'm suspecting it is STM related - somehow the exception causes some<br>
STM transaction to go wrong.<br>
<br>
Are there any known bugs that sound similar to this?<br>
<br>
BTW, this is with GHC 7.6.3 from a recent HP release on OS X.<br>
</blockquote>
<br></div></div>
Please create a ticket and dump all the information you have in it. There might be something we can tell from the stack trace, but if not we'll need a way to reproduce it.<br>
<br>
Cheers,<br>
Simon<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>