-
-
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
jl_current_exception doesn't return the exception when called from atexit #47472
Comments
Bisected to e34860e |
@vtjnash any suggestions for what we can do here? We don't need to recreate the old behavior, just need some way to find the error stack when we exit due to an error. |
How do MPI bindings for other languages handle this? |
The official C and Fortran ones require you to manually call mpi4py, which is probably the most widely used 3rd party one, and the closest to MPI.jl, by default adds an |
Ok, so mpi4py is only able to use MPI_Abort if you go through that wrapper, but we want it to work without such a wrapper? |
Ideally, yes. |
In Julia 1.8 (and earlier):
On the current nightly:
There is similar behavior with
current_exceptions()
as well. This is a problem as there isn't a good way to determine if we're exiting due to an error or not (#35981)The text was updated successfully, but these errors were encountered: