Skip to content

gh-126220: Fix crash on calls to _lsprof.Profiler methods with 0 args (backportable) #126271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 1, 2024

This is the fix with no AC that we can backport.

#126233 will be reworked to only apply AC to already fixed functions. I plan to merge this one first and then rebase the oirginal one.

@sobolevn sobolevn added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Nov 1, 2024
@picnixz picnixz changed the title gh-126220: Fix crash on calls to _lsprof.Profiler methods with 0 args gh-126220: Fix crash on calls to _lsprof.Profiler methods with 0 args (backportable) Nov 1, 2024
@picnixz
Copy link
Member

picnixz commented Nov 1, 2024

I'm changing the title of the PR just so that we don't have two PRs that look exactly the same on the issue.

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(BTW, PyErr_Format always returns NULL)

@sobolevn sobolevn merged commit 28b148f into python:main Nov 1, 2024
39 checks passed
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 1, 2024
…h 0 args (backportable) (pythonGH-126271)

(cherry picked from commit 28b148f)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 1, 2024
…h 0 args (backportable) (pythonGH-126271)

(cherry picked from commit 28b148f)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Nov 1, 2024

GH-126310 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 1, 2024
@bedevere-app
Copy link

bedevere-app bot commented Nov 1, 2024

GH-126311 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Nov 1, 2024
@sobolevn
Copy link
Member Author

sobolevn commented Nov 1, 2024

Thank you! I will backport this change and go back to the original PR soon :)

@erlend-aasland
Copy link
Contributor

I'm changing the title of the PR just so that we don't have two PRs that look exactly the same on the issue.

Next time, remember to edit such a change out of the squashed commit title ;)

@erlend-aasland
Copy link
Contributor

Nit: ideally, the other PR would have received the title change (adapt to Argument Clinic ...), not this one.

sobolevn added a commit that referenced this pull request Nov 1, 2024
…th 0 args (backportable) (GH-126271) (#126311)

gh-126220: Fix crash on calls to `_lsprof.Profiler` methods with 0 args (backportable) (GH-126271)
(cherry picked from commit 28b148f)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
sobolevn added a commit that referenced this pull request Nov 1, 2024
…th 0 args (backportable) (GH-126271) (#126310)

gh-126220: Fix crash on calls to `_lsprof.Profiler` methods with 0 args (backportable) (GH-126271)
(cherry picked from commit 28b148f)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
…h 0 args (backportable) (python#126271)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…h 0 args (backportable) (python#126271)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
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.

3 participants