Skip to content

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

Merged
miss-islington merged 2 commits into
python:3.8from
akuchling:backport-d72ea60-3.8
May 29, 2020
Merged

miss-islington merged 2 commits into
python:3.8from
akuchling:backport-d72ea60-3.8

Conversation

@akuchling

@akuchling akuchling commented May 14, 2020 •

Copy link
Copy Markdown
Contributor

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>

@csabella csabella left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown

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

6 participants