-
Notifications
You must be signed in to change notification settings - Fork 245
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
Consistent segmentation fault when order of p
and tspan
are swapped in ODEProblem
#740
Comments
I cannot recreate this.
The error you show is not of this code because there is not 83 lines. |
I've just copy pasted the above MWE, and run it. Totally clean script. I get:
|
This is Julia v1.10.4? It looks like it's related to the Julia issue that was already fixed. |
You are right, i was on v1.10. I've upgraded to v1.10.4 and the code works. It doesn't even error, it computes and solves regardless of the inverted order of p, tspan. |
Describe the bug 🐞
Basically, this is a user experience improvement. If the order of
tspan
andp
are swapped when creating anODEProblem
, there are no erros thrown at problem creation. However, there is a segfault when calling solve. This makes realizing the problem extremely hard. Took me a while to figure out that the problem was the incorrectODEProblem
order instead of me doing something very bad in my equations.The following MWE consistently throws a seg fault for me, even across different package versions. The error is the same (segfault) and occurs both before and after a package update.
Expected behavior
An informative error should be thrown instead in the creation of the ODEProblem.
Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
Windows 10, Julia 1.10
The text was updated successfully, but these errors were encountered: