-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Libuv and tasks are not thread safe #14494
Comments
Right. Task switches and IO's are the only two segfaults left with threading that I've reproduced. |
You can use |
Is this a Julia 0.6 issue? Or Julia 1.0? |
It will not block 0.6 |
There's two issues here. This first is a fully thread-safe multi-threaded I/O system which is a big issue. The second is just the original report that sleep doesn't work right, which is related, but could probably be fixed differently (e.g. if on a thread |
Thanks for the responses. I was wondering about the former--thread-safe IO in general. Seems like this issue has become a catch-all for libuv+threading issues, with others closed as duplicates. |
…ssue was due to non-thread-safe I/O in Julia (related to this issue: JuliaLang/julia#14494)
just tested in Julia 1.0.2, still have the segfault error. |
This is not expected to work until PARTR multi-threading is officially announced as available. |
Specifically, this issue will be closed when #29706 is merged. |
@JeffBezanson: close this now? |
Doing
@threads for i = 1:10 sleep(2) end
regularly segfaults.
This is the backtrace. I understand that
sleep()
doesn't apply to threads and applies to tasks, but I just thought I'd post this here:The text was updated successfully, but these errors were encountered: