-
-
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
^(big(foo), bar) can cause SIGBART #8286
Comments
That's galling. Libraries should not call |
Have we reported this upstream? Would be nice to have a ticket number. |
Running the above in
Seems fixed. Should we test for this, or close? |
No, I'm sure there are still cases where GMP can internally overflow and call |
For reference: https://stackoverflow.com/questions/3558684/avoiding-abort-in-libgmp |
Still there in 1.0:
|
Yes, it’s an upstream issue with GMP, which should not call abort like this. If someone wants to track down all the places GMP calls abort and fix them, it would be a worthy service. |
This regressed in 1.6:
Even though we're still carrying the patch, and we do configure it:
Other cases simply segfault now:
Bisected to #45375 |
Example:
This is probably not specific to
^
, since this happens when gmp tries torellaoc
too much space:It seems a bit impolite to crash julia because of this. What do people think is a good fix?
realloc
to much space.SIGABRT
and throw a julia errorSIGABRT
I don't like
1
because it requires doing something different for each function (I think?), but2
and3
have their own downsides.The text was updated successfully, but these errors were encountered: