[Haskell-cafe] Spurious program crashes

Tomasz Zielonka tomasz.zielonka at gmail.com
Wed Nov 16 12:52:06 EST 2005

On Wed, Nov 16, 2005 at 05:37:34PM +0000, Joel Reymont wrote:
> I'm getting crashes like this and I cannot figure out what the  
> problem is. I'm launching a bunch of threads that connect to a server  
> via TCP and exchange packets.
> I am running operations like connect and receive in a timeout  
> function that launches two threads and uses an MVar to figure out  
> who's done first. The timeout function then kills the two threads.
> Any ideas what could be causing this?

Let me guess - excessive use of unsafe operations (like unsafe*, FFI)?
I've got an impression that you use them too often for a fresh Haskell
programmer. Too often for a Haskell programmer in general.

Excuse me if I wrong.

Best regards

More information about the Haskell-Cafe mailing list