Hi Martin (2026.07.13_06:58:31_+0000)
Since upgrading python3.13 from 3.13.5-2+deb13u2 to 3.13.5-2+deb13u3, an
application test suite that uses SQLAlchemy's asyncio ORM (and therefore
greenlet) segfaults reliably. The interpreter dies inside the cyclic GC and
inside pymalloc, at random places, in a different test on every run.
Urgh, sorry about that.
The same code, the same wheels, and the same greenlet version are stable on
upstream CPython 3.13.5 -- the identical upstream version Debian ships -- so
the regression appears to come from the Debian patch set in deb13u3 rather
than from CPython 3.13.5 itself.
Can you test this against upstream >= 3.13.13? That includes the same
patch.
This change is also in >= 3.14.4 and >= 3.15.0a7.
If it's working in these versions, but not with our backported patch,
then we're clearly missing a related patch, and we must find it.
If it's not working with the latest upstream releases, then there's an
upstream bug here that we should take upstream.
Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272