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
Possible ABI breakage in 7.3.14 #4816
Comments
Probably has to do with some of the buffer interface changes I made for HPy. Do the Pillow tests pass, or can I somehow make the reproducer smaller by running a Pillow test? |
I wasn't able to get pillow to crash itself. |
It's possible that it happens only because both pillow and pikepdf have C extensions, and they were built against different versions of PyPy. |
FWIW, Pillow 10.2.0 is due to be released tomorrow, built using the versions listed here: https://github.com/pypa/cibuildwheel/blob/v2.16.2/cibuildwheel/resources/build-platforms.toml Checking the logs, it appears the following PyPy versions will be used:
|
Indeed, I can confirm that reverting it (plus updating |
What if you only change this back to 36 but leave the change of -#define Py_MAX_NDIMS 36
+#define PyBUF_MAX_NDIM 64 |
Sorry, I'm confused. Did you mean doing: -#define Py_MAX_NDIMS 36
+#define PyBUF_MAX_NDIM 36 ? |
yes, leave 8d45c2c in place and only change the macro to 36 |
Yes, this seems to be fix the problem. Thanks! |
cool, thanks |
change PyBUF_MAX_NDIM back to 36 for ABI consistancy (issue #4816)
Closed by #4825 |
It seems that some ABI change was introduced between 7.3.13 and 7.3.14, more specifically between 2023-11-29 and 2023-12-07 snapshots. The Pillow extensions built with the prior version crash when used with pikepdf built with the latter version.
To reproduce:
The result is:
Rebuilding Pillow from source or installing the older PyPy version resolves the issue.
The text was updated successfully, but these errors were encountered: