-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Python 3.10: segfault due to invalid pointer #5193
Comments
Can you post the minimal code that you're using to trigger that? Sorry, I see that it's just import image. How did you install pillow? |
It's very likely that there's something wrong with the build, because we do test on 3.10-dev in CI, and the test suite passes. |
Pillow is being rebuilt as part of a mass-rebuild preparing for Python 3.10. The package python-pillow (https://src.fedoraproject.org/rpms/python%2Dpillow) is being built as usual: https://src.fedoraproject.org/rpms/python-pillow/blob/master/f/python-pillow.spec
where The downstream bug has more info: https://bugzilla.redhat.com/show_bug.cgi?id=1904379
|
I've created #5194 to resolve this. Are you able to test that at all? |
I can confirm that the issue is solved. I can import PIL as expected and build packages depending on Pillow. |
I can also repro something similar on masterPython 3.10.0a0 (heads/master:5b24d15, Sep 2 2020, 09:22:20)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> exit()
python3.10(80947,0x113d475c0) malloc: *** error for object 0x10c038ab0: pointer being freed was not allocated
python3.10(80947,0x113d475c0) malloc: *** set a breakpoint in malloc_error_break to debug
[1] 80947 abort python3.10 PRPython 3.10.0a0 (heads/master:5b24d15, Sep 2 2020, 09:22:20)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> exit() Tests run with pytest pass in both cases. |
The fix for this should now be released as part of Pillow 8.1.1 |
On 3.10 alpha 4, pillow fail to run and segfault with "invalid pointer". All projects depending on Pillow also fail to build.
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: