-
-
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
Julia can hang when using threading, on 1.7 beta2 and 1.8 #41407
Comments
sh is probably not needed to trigger this. It seems just random:
That last time I could interrupt with CTRL-C (while I do not get back the first one-two times the the shell), but not other times with sh. Then I used kill command. Likely just a coincidence. |
Confirmed the problem on beta2 (do not have access to beta3), while latest nightly, I just downloaded, worked so far 20 times in a row, |
The code is from the Debian game:
|
Too bad, it also hung on nightly (just seems less rare, thus more dangerous):
For the older nightly, this Heisenbug seems to be less frequent, or totally absent on -01. May also be true for the latest nightly. |
A.
Note, CTRL-C didn't work to kill, I had to use the kill command (did in another terminal tab). I previously ran into hangs with hyperfine, which I do not believe implicated, it does the latter, but wqith it I could kill with CTRL-C, meaning hyperfine got killed but julia was still running in the background.
I would mark this as a regression. I've done plenty of benchmarking before, often with hyperfine for 1.6, or time (or just
@btime
), and this never happened with hyperfine. I'm however new to using only "sh -c" (which is implied by hyperfine). See at #39598 (comment)This affect 1.7.0-beta2 too (tested later):
This is getting strange, running that julia version straight after no problem. It's either only random and/or my machine getting strange. Any idea what could cause it? Everything else seems to work fine. I do not recall if I was using that exact git commit of 1.7 before.
I was probably using all my three 1.7 downloads frequently before, not sure which most, and running all of them once went ok now:
B.
Since I got "ERROR: TaskFailedException" on the same line, it it plausible it was from previous invocation, i.e. when running with sh? If not then not even sh needs be implicated. I guess that's the mostly likely reason, since I tried later to run that 1.7 version 20 times in a row without any problems.
The text was updated successfully, but these errors were encountered: