-
-
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
Segfault in nightly and 1.7.0-rc3 #43123
Comments
I'm also getting the same segfault with v1.7.0-rc3, "macOS x86 (Intel or Rosetta)" |
And also with v1.7.0-rc3, "macOS ARM (M-series Processor)" |
Crash is in codegen:
|
Reproduce on Win 10 + Cygwin x86_64 + master branch 455236e + debug mode, https://gist.github.com/inkydragon/70e8afacbe1c4387115a93ce6b477223 Simplified test code:
fn1 = t->0.0;
fn2 = t->0.0;
generator = (
fn1,
fn2
);
function broken2(gen, control)
for f in gen
if f === control
nothing
end
end
end
[ f===fn1 for f in generator] # works
filter(x -> x===fn1, generator) # works
broken2(generator, fn1) # throw |
Can you tag me when the patch lands in Nightly, so I can try running my tests again? |
I can confirm that I'm no longer seeing the segfault with the latest Nightly |
Around Oct 10, 2021 (±2 days), I started seeing segfaults in the "Nightly" CI runs for some of my packages.
The last run that worked without error was this one on Oct 7: https://github.com/JuliaQuantumControl/QuantumControlBase.jl/actions/runs/1318143883
The first one that segfaulted was https://github.com/JuliaQuantumControl/QuantumControlBase.jl/runs/3854752966?check_suite_focus=true on Oct 10. This is actually a failure in an "upstream" package (Krotov), I just realized (although I suspect the underlying cause might be connected to what I'm reporting below).
On Oct 12, I added some code to the
QuantumControlBase
repo that's been consistently segfaulting on Nightly, but running fine on the normal CI, most recently at https://github.com/JuliaQuantumControl/QuantumControlBase.jl/runs/4129399244?check_suite_focus=trueI didn't realize that the problematic code in
QuantumControlBase
was only added on Oct 12 when I tried to reproduce this locally just now; sorry if that makes this report a bit more confusing than it needs to be. I'll have a look at what's going in inKrotov
as well, if I can.In any case, I've been able to reproduce the segfault in
QuantumControlBase
locally on macOS using today's Nightly version of Julia, and I managed to pare it down to the following minimal example (no dependencies):This is derived from
QuantumControlBase.getcontrolderiv
.If I put the above code in a file
minimal.jl
, andinclude
it in a fresh Nightly-REPL, I'm seeing the segfault. I've not been able to go any deeper than that; there are a few variations commented out above that run through.The text was updated successfully, but these errors were encountered: