New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deadlock when parallel collection function throws an exception #5375
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5375?orig=1 |
@paulp said: |
Michael Ekstrand (ekstrand) said: It also works on 2.9.1 on OpenDK6 on my machine. |
@axel22 said: |
Heikki Vesalainen (hvesalai) said: |
@retronym said:
|
Check that all suppressed exception contain a multiple of 37, rather than checking for explicit values.
Check that all suppressed exception contain a multiple of 37, rather than checking for explicit values.
When doing a
map
over a parallel sequence, my program deadlocks waiting on the result if the map function threw an exception. Test case (exhibits problem in Scala 2.9.1 REPL on Oracle JDK 1.7.0u2, Linux x86_64):Entering this code in the toplevel will result in an indefinite hang.
jstack
reveals that all interesting threads are waiting, either on object monitors or parked.The text was updated successfully, but these errors were encountered: