[MacPorts] #64595: python38: Python 3.8.12 crashes at end of execution on Mac 10.15 if C type pointers are used
MacPorts
noreply at macports.org
Thu Feb 3 01:38:07 UTC 2022
#64595: python38: Python 3.8.12 crashes at end of execution on Mac 10.15 if C type
pointers are used
-----------------------------------------------+----------------------
Reporter: guzmanpaco | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: python 3.8, crash, c type pointer | Port: python38
-----------------------------------------------+----------------------
On our testing, we encounter an abort crash at the end of execution when a
c pointer is assigned to a variable. We are able to replicate it using
sample code from:
https://docs.python.org/3/library/ctypes.html
{{{
import ctypes as C
from ctypes import *
def py_cmp_func(a, b):
print("py_cmp_func", a0, b0)
return 0
CMPFUNC = CFUNCTYPE, POINTER)
cmp_func = CMPFUNC
}}}
Abort occurs after this code is run.
We did not encounter this issue using code above on:
1. Python 3.8.12 using OSX 10.12
2. Python 3.8.10 using OSX 10.15.1
3. Python 3.9.10 using OSX 10.15.1
4. Python 3.10.1 using OSX 10.15.1
5. Latest Python 3.2-3.7 using OSX 10.15.1
Mac ports was used for installing and setting up Python versions.
Attached is the log generated by OSX 10.15.
Issue only occurs on iMac 21.5 Late 2015 using Python 3.8.12 on OSX
10.15.1.
Specifications of Mac:
https://support.apple.com/kb/SP733?locale=en_US
I tested on iMac 21.5 Late 2009 using Python 3.8.12 (Installed by Mac
Ports) on OSX 10.12.6 and crash was not encountered.
We checked using homebrew pyenv's Python 3.8.12 (Python does not provide
PKG for 3.8.12 and PyEnv built from source) and crash does not occur. We
think that maybe the installer used for Python 3.8.12 on Mac Ports has an
issue with 10.15.1.
--
Ticket URL: <https://trac.macports.org/ticket/64595>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list