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.15: gh-142349 backport moves `c_stack_refs` in `_PyThreadStateImpl`, breaking greenlet's rc2-built wheels · Issue #158593 · python/cpython Closed Labels 3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesrelease-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBecause in RC1 release you said, the following bug is only an issue for wheels built on RC2 and doesn't reproduce on new builds from source:
The 3.15 backport of gh-142349 (#158569, 021f634) adds lazy_imports in the middle of _PyThreadStateImpl. On free-threaded builds this moves c_stack_refs from offset 1088 to 1096. greenlet reads c_stack_refs on every switch. Its cp315t wheels on PyPI were built against rc2, so on the current 3.15 branch they read the wrong field and grow memory until the process is killed. In a pytest run this pushed a 64 GB machine into an OOM in under a minute. Building greenlet from source fixes it. Could lazy_imports go at the end of the struct, so wheels built against rc1/rc2 keep working on 3.15.0? The script below runs one switch in a child process and kills it past 1 GiB: uv run --python <free-threaded build of the 3.15 branch> greenlet_315_repro.py CPython versions tested on:3.15 Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabels3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesrelease-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |