GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — 3.14.0a2 rebuild needed for 0x03070000 limited api c extension · Issue #127191 · python/cpython Closed as not planned Labels 3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug 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 from sys import getrefcount from _rl_accel import unicode2T1 utext = 'This is the end of the world' class Font: def __init__(self,name): self.fontName = name self.substitutionFonts = [] self.encName = 'utf8' font = Font('Helvetica') defns = 'utext font font.encName font.fontName font.substitutionFonts'.split() rc0 = [getrefcount(eval(x,globals())) for x in defns] print(rc0) unicode2T1(utext,[font]+font.substitutionFonts) rc1 = [getrefcount(eval(x,globals())) for x in defns] print(rc1) if rc1!=rc0: print('!!!!! reference counts changed !!!!!') The C function unicode2T1 is not expected to change any of the refcounts checked, but if built with python 3.7-3.11 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 EARLYPYTHON=~/bin/python311 LATEPYTHON=~/bin/python314 tests/runner.sh 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 Relateddiscuss.python.org/t/3-14-0a2-rebuild-needed-for-0x03070000-limited-api-c-extension/72006 Activity
MetadataMetadataAssigneesLabels3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |