-
-
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
Stack overflow in Julia nightly, Mac OS #57149
Comments
Duplicate of #55513 |
Sorry, I realized that was only one of the issues however. It also causes the OrcJIT to internally crash while running
due to an excess in the number of function calls. Since it was the OrcJIT that crashed, julia is still holding the OrcJIT-related locks after the StackOverflow and thus is unable to continue with code generation (e.g. cannot generate the code to print the error). We used to have workarounds for this (only letting OrcJIT get one function at a time), but that limited scalability. This is an OrcJIT implementation issue, and not something we can solve downstream. |
Is there something I can do, as a pkg developer? To at least reduce the occurrences of the issue? |
Nothing particularly simple, as I don't think we have any tooling written for helping with that sort of search analysis. You can try to avoid generating excessive methods (I don't know any specifics here for Clapeyron) with distinct signatures. You could try adding Unfortunately it seems that means the measured upper limit for OrcJIT to crash is only about 1700 function calls being present, in the best of circumstances (typically probably only half of that), so that is rather a small limit |
Why is macos aarch64 the only affected platform? Also, why isn't the SciML ecosystem running into this? |
Hello,
I've been consistently finding stack overflows in my tests for Clapeyron.jl in the
Julia nightly - macOS-latest - aarch64
Github actions, worker. The warning is the following:And then it hangs until the test timeout.
The text was updated successfully, but these errors were encountered: