[MacPorts] #70603: python312 @3.12.5_0+lto+optimizations: segfaults with ctypes
MacPorts
noreply at macports.org
Wed Aug 21 20:11:26 UTC 2024
#70603: python312 @3.12.5_0+lto+optimizations: segfaults with ctypes
-------------------------+------------------------------
Reporter: quintusdias | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Keywords: | Port: jmr at macports.org
-------------------------+------------------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/70603>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list