-
-
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
repeated threads loop hangs on windows #32087
Comments
Can repro on windows. On WSL it works fine. Ctrl-C leads to julia> f()
ERROR: InterruptException:
Stacktrace:
[1] macro expansion at .\threadingconstructs.jl:75 [inlined]
[2] f() at .\REPL[1]:5
[3] top-level scope at REPL[2]:1
caused by [exception 1]
InterruptException:
Stacktrace:
[1] process_events at .\libuv.jl:98 [inlined]
[2] wait() at .\task.jl:593
[3] wait(::Base.GenericCondition{Base.Threads.SpinLock}) at .\condition.jl:104
[4] wait(::Task) at .\task.jl:191
[5] macro expansion at .\threadingconstructs.jl:75 [inlined]
[6] f() at .\REPL[1]:5
[7] top-level scope at REPL[2]:1 |
Is it possible to attach a debugger and get the stack trace for each thread? |
Did that, and I basically see thread 1 spinning or blocking while trying to |
I also observe that sometimes when it appears to be hanging, simply attaching and detaching gdb makes it continue and make forward progress (i.e. print another line or two of output). |
One theory I have is that this has to do with the delivery of signals from |
Closed by #32109 |
Should a new issue be opened to track fixing this in a better way? |
The PR #32029 was also expected to fix this |
I was hoping so, but I tried it and the problem was still there. |
turns off the "do not work" flag fix #32087
turns off the "do not work" flag fix #32087
Calling this function on windows:
with JULIA_NUM_THREADS > 1 ends up hanging, using 100% of one CPU. It sometimes gets through some iterations of the outer loop first. Can anybody reproduce this? Works fine on linux.
The text was updated successfully, but these errors were encountered: