[Haskell-cafe] Re: syscall, sigpause and EINTR on Mac OSX
bmaxa at hotmail.com
Sun Dec 11 13:10:50 EST 2005
Though I frorgot to add that deadlock can be caused by signal somewhere else
(eg other thread) if signal handler eg locks mutex internally or calls some
other non asynchronous safe functions like locking functions.
This is likely scenario, if you doubt at signal handlers but I don;t know
. Deadlocks can be caused by other things, not neccessarily signals.
>From: "Branimir Maksimovic" <bmaxa at hotmail.com>
>To: joelr1 at gmail.com
>CC: haskell-cafe at haskell.org
>Subject: Re: [Haskell-cafe] Re: syscall, sigpause and EINTR on Mac OSX
>Date: Sun, 11 Dec 2005 17:28:54 +0000
>>From: Joel Reymont <joelr1 at gmail.com>
>>To: Branimir Maksimovic <bmaxa at hotmail.com>
>>CC: haskell-cafe at haskell.org
>>Subject: Re: [Haskell-cafe] Re: syscall, sigpause and EINTR on Mac OSX
>>Date: Sun, 11 Dec 2005 16:56:23 +0000
>>On Dec 11, 2005, at 4:50 PM, Branimir Maksimovic wrote:
>>>This is not signal, it is result from call to pause() .
>>>you have to look elsewhere as this is normal behavior.
>>You are saying that triggering my ^C handler randomly is normal behavior?
>>I understand why it goes to wait for signals but it still does not
>>explain where the signal itself is coming from.
>I'm saying that neither is this result of signal, nor stack
>trace shows that any signal handler is called. It just shows call
>to await.... and await calls pause. That's all
>>>Strange is that you are using threaded
>>>run time (I guess ) but this function is defined only for single
>>>This I implied from #if !defined(RTS_SUPPORTS_THREADS)
>>I'm not using a threaded runtime in this case. It appears that -debug and
>>-threaded are incompatible as I get an error about a mixed debug/ threaded
>>runtime library not being available. I compile with -debug so that I can
>>run +RTS -Ds to check for deadlocks.
>> Thanks, Joel
>FREE pop-up blocking with the new MSN Toolbar - get it now!
>Haskell-Cafe mailing list
>Haskell-Cafe at haskell.org
Don't just search. Find. Check out the new MSN Search!
More information about the Haskell-Cafe