-
Notifications
You must be signed in to change notification settings - Fork 236
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
"realloc(): invalid pointer" running ForeignFunctions example in Ubuntu 18.04 #3128
Comments
Where is |
Since #3124, the gc heap. That makes sense. I wonder why it works for Ubuntu post-18.04? And whichever macOS version the GitHub actions are running. Maybe I should revert that change before the release. |
Ubuntu 18.04 still has GMP 6.1, and this item from the GMP 6.2 changelog looks possibly related:
|
Yeah, I think the example in the documentation is small enough that later versions of GMP didn't actually allocate anything. But if we give it bigger numbers, the crash still happens. For example, in Ubuntu 22.04 using GMP 6.2.1: i3 : x = mpzT 2^100
o3 = 1267650600228229401496703205376
o3 : ForeignObject of type mpz_t
i4 : mpzAdd(x, 3^100, 4^100)
realloc(): invalid pointer
Aborted (core dumped)
Process M2 exited abnormally with code 134 |
The only way to make this work directly is for |
Yeah, that's basically what the previous behavior was. :) I'll revert the change soon. |
After #3124 was merged, I'm getting the following, but only in Ubuntu 18.04:
The text was updated successfully, but these errors were encountered: