Ticket #2910 (closed merge: fixed)
throwTo can block indefinitely when target thread finishes with exceptions blocked
| Reported by: | int-e | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10.2 |
| Component: | Runtime System | Version: | 6.10.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
throwTo can block indefinitely when the target thread has exceptions blocked at thread creation time. The following test program demonstrates this problem.
import Control.Exception
import GHC.Conc
main = do
t1 <- block $ forkIO yield
t2 <- forkIO $ killThread t1
threadDelay 1000000
threadStatus t1 >>= print
threadStatus t2 >>= print
can print (and does fairly reliably for me)
ThreadFinished ThreadBlocked BlockedOnException
See also http://www.haskell.org/pipermail/reactive/2009-January/000197.html
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

