Are you on Windows? There have been some recent changes that have made hangs on Windows more likely, but my understanding is that it generally means that your code isn’t handling things the way it’s supposed to. I ran into some issues with this using redirect_stdout.
The relevant PR is here: https://github.com/JuliaLang/julia/pull/17522#issuecomment-238417085 <https://github.com/JuliaLang/julia/pull/17522#issuecomment-238417085> and here is fix to ZMQ that fixes a resulting hang: https://github.com/JuliaLang/ZMQ.jl/pull/112/commits/d2a85303d08fc5f3c8676318f984046f4a8abe20 <https://github.com/JuliaLang/ZMQ.jl/pull/112/commits/d2a85303d08fc5f3c8676318f984046f4a8abe20> The important bit is that he sets up a reader asynchronously (in a separate task) BEFORE writing to the stream. Then after closing the stream you can `wait` on the stream to get the data without race conditions. Hope that helps, -s > On Aug 24, 2016, at 10:01 AM, Ben Arthur <[email protected]> wrote: > > anyone else having problems with sockets or tasks on 0.5-rc3 ? i've got a > complicated program that runs fine on 0.4.6, but hangs on 0.5. am in the > process of debugging...
