GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python 3.13 Error Walking Stack w/ PYTHONASYNCIODEBUG=1 · Issue #730 · MagicStack/uvloop

Python 3.13 Error Walking Stack w/ PYTHONASYNCIODEBUG=1 #730

New issue
Copy link
New issue
Copy link
Open
Open
Python 3.13 Error Walking Stack w/ PYTHONASYNCIODEBUG=1#730
Copy link

Description

@atulenko
atulenko
opened on Mar 5, 2026
Issue body actions

There appears to be a bug in uvloop for python 3.13 walking the stack when PYTHONASYNCIODEBUG=1 and there are c frames in the stack.

I suspect this is tied to changes in 3.13 with how python handles frames

To Repro:
Python 3.13
uvloop 0.22.1 (also confirmed it happens

run: docker build -f Dockerfile.latest -t crash-test-latest . 2>&1 | tail -3 && echo "---" && docker run --rm crash-test-latest 2>&1; echo "exit: $?"
exits w/ 139

If you go into the dockerfile and set ENV PYTHONASYNCIODEBUG= (instead of 1), exits w/ 0

Dockerfile:

FROM python:3.13-slim
RUN pip install uvloop==0.22.1
ENV PYTHONASYNCIODEBUG=1
COPY repro.py /repro.py
CMD ["python3", "/repro.py"]

Repro.py

import asyncio
import sys
import os

print(f"Python: {sys.version}")
print(f"Platform: {sys.platform}")
print(f"PYTHONASYNCIODEBUG: {os.environ.get('PYTHONASYNCIODEBUG', '<not set>')}")

import uvloop
print(f"uvloop: {uvloop.__version__}")

async def gen():
    yield 1
    yield 2

async def main():
    x = gen()
    await x.__anext__()
    # x goes out of scope on function exit

uvloop.install()
asyncio.run(main())
print("NO CRASH")
Reacted by Fantix King

Activity

  1. fantix commented on Mar 16, 2026

    @fantix
    fantix
    on Mar 16, 2026
    Member
    More actions

    Just to confirm that I can reproduce this, will look into a fix!

  2. mvanderlee commented on Apr 23, 2026

    @mvanderlee
    mvanderlee
    on Apr 23, 2026
    More actions

    Probably related to #715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue 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.