Opened 2 years ago

#64595 new defect

python38: Python 3.8.12 crashes at end of execution on Mac 10.15 if C type pointers are used

Reported by: guzmanpaco Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: python 3.8, crash, c type pointer Cc:
Port: python38

Description

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.

Attachments (1)

log.txt (12.8 KB) - added by guzmanpaco 2 years ago.
crash/abort log from Mac OS 10.15

Download all attachments as: .zip

Change History (1)

Changed 2 years ago by guzmanpaco

Attachment: log.txt added

crash/abort log from Mac OS 10.15

Note: See TracTickets for help on using tickets.