-
-
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
Unreachable reached in Atoms.jl yet again #31703
Comments
Looks like the initial cause is some sort of memory corruption:
|
Progress in reducing this:
|
Thanks @JeffBezanson. CC @dlfivefifty |
Reduced further:
|
Best issue title. |
Julia: we reach the unreachable. |
I managed to fix my reduced case, but it doesn't fix the package. New reduction:
As a workaround, I suggest reducing the complexity of type parameter constraints. For example, changing
(There I just removed the "triangular" part of the constraint |
Thanks @JeffBezanson! I should in general try to simplify my types, hopefully I could lower my compile times as well. I finally finished the bisect:
|
Ok! I may have a fix for the type intersection issue. Unfortunately, it seems to bring along a new method ambiguity. (What happens is, type intersection incorrectly returning
|
Interesting! I will have a look tomorrow if I am calling Again CC @dlfivefifty who's written most of BlockBandedMatrices. |
And by sheer luck, I think I now have a version that fixes it without adding the ambiguity. It would still be worth thinking about whether the methods are indeed ambiguous though; there might be another potential problem lurking there. |
This works on Julia v1.1 but crashes on 20834c3. Will try bisect.
Expected output:
Actual output.txt
Environment:
Project.toml.txt
Manifest.toml.txt
The text was updated successfully, but these errors were encountered: