Skip to content
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

[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) #20092

Merged
merged 2 commits into from
May 29, 2020

Conversation

akuchling
Copy link
Member

@akuchling akuchling commented May 14, 2020

Backporting to 3.8 and adding a NEWS item (I should have added one to the master branch -- oh well).

https://bugs.python.org/issue25872

Automerge-Triggered-By: @csabella

mgraczyk and others added 2 commits May 14, 2020 13:26
…ythonGH-18007)

The crash that this fixes occurs when using traceback and other modules from multiple threads;
del cache[filename] can raise a KeyError.
(cherry picked from commit d72ea60)

Co-authored-by: Michael Graczyk <mgraczyk@users.noreply.github.com>
Copy link
Contributor

@csabella csabella left a comment

Choose a reason for hiding this comment

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

lgtm

@miss-islington
Copy link
Contributor

Thanks @akuchling for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 29, 2020
…GH-18007) (pythonGH-20092)

Backporting to 3.8 and adding a NEWS item (I should have added one to the master branch -- oh well).
(cherry picked from commit b86636b)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
@bedevere-bot
Copy link

GH-20511 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request May 29, 2020
…) (GH-20092)

Backporting to 3.8 and adding a NEWS item (I should have added one to the master branch -- oh well).
(cherry picked from commit b86636b)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
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.

6 participants