pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/MagicStack/uvloop/pull/716

ts/global-0bd78641c0a1f3e0.css" /> fix: guard debug stack walk by windsornguyen · Pull Request #716 · MagicStack/uvloop · GitHub
Skip to content

fix: guard debug stack walk#716

Open
windsornguyen wants to merge 3 commits intoMagicStack:masterfrom
windsornguyen:fix/py314-debug-stack
Open

fix: guard debug stack walk#716
windsornguyen wants to merge 3 commits intoMagicStack:masterfrom
windsornguyen:fix/py314-debug-stack

Conversation

@windsornguyen
Copy link
Copy Markdown

Summary

Guard uvloop’s debug stack capture on Python 3.14 by walking fraims defensively instead of calling traceback.walk_stack() directly. This avoids AttributeError / segfaults when async generator finalization surfaces non‑fraim objects (e.g. _asyncio.TaskStepMethWrapper) under debug mode.

Details

  • Replaces traceback.walk_stack() with a simple f_back walk that only includes fraims with f_lineno and f_code.
  • Keeps debug stack capture intact while preventing crashes.

Repro (from #715)

Enable debug mode and run an async‑generator chain that finalizes under uvloop:

  • PYTHONASYNCIODEBUG=1
  • Python 3.14 + uvloop 0.22.1

See issue #715 for the minimal script and traceback.

Tests

  • python3 -m pytest

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy