3.14.0a2 rebuild needed for 0x03070000 limited api c extension #127191
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
pending
The issue will be closed if no feedback is provided
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
An existing C api extension compiled with Python 3.7-3.11 behaves differently when run in Python 3.14.0a2. Causing a reference count change where none is expected. The python test code looks like this
The C function unicode2T1 is not expected to change any of the refcounts checked, but if built with python 3.7-3.11
we see a decrease in the refcount for font.encName when running in python 3.14.0a2.
If built with python 3.14.0a2 the reference count decrease is not seen in the test. It seems that my code is broken in terms of the abi3 guarantee.
To ease checking I built a bash script to checkout and build the test environments; this can be found here.
I run this like
Sorry this example is so large, but at least reportlab is not required. We do have a python version of this code rl_accel.py
CPython versions tested on:
3.9, 3.10, 3.11, 3.12, 3.13, 3.14
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: