8000 gh-92112: Fix crash triggered by an evil custom `mro()` by izbyshev · Pull Request #92113 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92112: Fix crash triggered by an evil custom mro() #92113

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 1 commit into from
May 6, 2022

Conversation

izbyshev
Copy link
Contributor
@izbyshev izbyshev commented May 1, 2022

No description provided.

@izbyshev izbyshev requested a review from markshannon as a code owner May 1, 2022 11:16
@AlexWaygood AlexWaygood added the type-crash A hard crash of the interpreter, possibly with a core dump label May 1, 2022
@JelleZijlstra JelleZijlstra self-assigned this May 3, 2022
@JelleZijlstra JelleZijlstra added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels May 4, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @JelleZijlstra for commit 616024e 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 5, 2022
@JelleZijlstra JelleZijlstra merged commit 85354ed into python:main May 6, 2022
@miss-islington
Copy link
Contributor

Thanks @izbyshev for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @izbyshev and @JelleZijlstra, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 85354ed78c0edb6d81a2bd53cabc85e547b8b26e 3.10

@miss-islington
Copy link
Contributor

Sorry @izbyshev and @JelleZijlstra, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 85354ed78c0edb6d81a2bd53cabc85e547b8b26e 3.9

JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request May 6, 2022
…ythonGH-92113).

(cherry picked from commit 85354ed)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label May 6, 2022
@bedevere-bot
Copy link

GH-92370 is a backport of this pull request to the 3.10 branch.

JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request May 6, 2022
…ythonGH-92113).

(cherry picked from commit 85354ed)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@bedevere-bot
Copy link

GH-92372 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label May 6, 2022
JelleZijlstra added a commit that referenced this pull request May 7, 2022
) (#92370)

(cherry picked from commit 85354ed)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@JulienPalard
Copy link
Member

Ooohhhh you fixed it! Thanks @izbyshev! It was the following item on my todo-list, and woosh, already fixed!

Out of curiosity, how did you discovered the issue?

@izbyshev
Copy link
Contributor Author

You're welcome, @JulienPalard :)

Out of curiosity, how did you discovered the issue?

Nothing smart, unfortunately. I was trying to investigate a couple of mysterious non-reproducible Python crashes on a CI box at work, which occurred in Py_DECREF of a string. In one case, the string was the attribute name cached in the method cache, so I decided to take a look at Objects/typeobject.c and stumbled upon this bug (unrelated to my problem).

ambv pushed a commit that referenced this pull request May 16, 2022
…) (GH-92372)

(cherry picked from commit 85354ed)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
…ythonGH-92113) (pythonGH-92372)

(cherry picked from commit 85354ed)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0