python312 @3.12.5_0+lto+optimizations: aborts with ctypes
I have a package called glymur that uses ctypes to interface with the openjpeg library and I have been running into segfaults when using python312 on intel. The more I try to isolate the bug, the more I think might not have anything to do with the openjpeg port, but rather with the ctypes module on python312.
The attached reproduction steps are basically pulled from the official python documentation at https://docs.python.org/3/library/ctypes.html#ctypes-callback-functions. It produces segfaults on python312, but not on python311 or python310. It also does not produce segfaults on Anaconda on the same machine. I do not see the segfaults on ARM either, just intel. Removing the +lto and +optimizations variants did not seem to change anything.
Change History (6)
Owner: |
set to jmr@…
|
Port: |
python312 added; jmr@macports.org removed
|
Status: |
new →
assigned
|
Owner: |
changed from jmr@… to jmroot
|
Status: |
assigned →
accepted
|
Resolution: |
→ fixed
|
Status: |
accepted →
closed
|
Summary: |
python312 @3.12.5_0+lto+optimizations: segfaults with ctypes →
python312 @3.12.5_0+lto+optimizations: aborts with ctypes
|
reproduction steps