KEMBAR78
[ci, 3.13] disable segfaulting profiler tests in 3.13 by williamwen42 · Pull Request #141674 · pytorch/pytorch · GitHub
Skip to content

Conversation

williamwen42
Copy link
Member

@williamwen42 williamwen42 commented Nov 27, 2024

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 27, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141674

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 82953fc with merge base 16676fd (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@williamwen42
Copy link
Member Author

cc @sraikund16 - can you find someone to investigate this?

@williamwen42 williamwen42 changed the title [ci, 3.13] disable segfaulting memory profiler tests in 3.13 [ci, 3.13] disable segfaulting profiler tests in 3.13 Dec 2, 2024
pytorch-bot bot pushed a commit that referenced this pull request Dec 9, 2024
@atalman atalman mentioned this pull request Dec 12, 2024
37 tasks
@github-actions github-actions bot deleted the gh/williamwen42/176/head branch January 4, 2025 02:05
pytorchmergebot pushed a commit that referenced this pull request May 19, 2025
Per [PEP 667](https://peps.python.org/pep-0667/) `PyFrame_GetLocals` no longer returns dict, but rather instance of `PyFrameLocalsProxy_Type`, so calling `PyDict_GetItemString` is no longer valid(it will always return None) and must be replaced with `PyMapping_GetItemString`

Tested by partially reverting #141674 full revert will be done in the followup PR

Fixes #148273
Pull Request resolved: #153848
Approved by: https://github.com/Skylion007
pytorchbot pushed a commit that referenced this pull request May 21, 2025
Per [PEP 667](https://peps.python.org/pep-0667/) `PyFrame_GetLocals` no longer returns dict, but rather instance of `PyFrameLocalsProxy_Type`, so calling `PyDict_GetItemString` is no longer valid(it will always return None) and must be replaced with `PyMapping_GetItemString`

Tested by partially reverting #141674 full revert will be done in the followup PR

Fixes #148273
Pull Request resolved: #153848
Approved by: https://github.com/Skylion007

(cherry picked from commit c0343b1)
atalman pushed a commit that referenced this pull request May 21, 2025
Fix profiler on cpython-3.13 (#153848)

Per [PEP 667](https://peps.python.org/pep-0667/) `PyFrame_GetLocals` no longer returns dict, but rather instance of `PyFrameLocalsProxy_Type`, so calling `PyDict_GetItemString` is no longer valid(it will always return None) and must be replaced with `PyMapping_GetItemString`

Tested by partially reverting #141674 full revert will be done in the followup PR

Fixes #148273
Pull Request resolved: #153848
Approved by: https://github.com/Skylion007

(cherry picked from commit c0343b1)

Co-authored-by: Nikita Shulga <nshulga@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants