-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
linecache.checkcache() is not threadsafe or GC finalizer re-entrancy safe #126775
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
Comments
Originally reported on pypy pypy/pypy#5109 and found in SymPy |
oh I totally forgot to link to the pypy issue! I thought I had done that, sorry |
cfbolz
pushed a commit
that referenced
this issue
Dec 10, 2024
…fe (#126776) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Dec 10, 2024
…ncy safe (pythonGH-126776) (cherry picked from commit 2233c30) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Dec 10, 2024
…ncy safe (pythonGH-126776) (cherry picked from commit 2233c30) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <[email protected]>
cfbolz
pushed a commit
that referenced
this issue
Dec 10, 2024
…ency safe (GH-126776) (#127779) gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe (GH-126776) (cherry picked from commit 2233c30) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <[email protected]>
cfbolz
pushed a commit
that referenced
this issue
Dec 10, 2024
…ency safe (GH-126776) (#127778) gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe (GH-126776) (cherry picked from commit 2233c30) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <[email protected]>
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this issue
Jan 8, 2025
…ncy safe (python#126776) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bartosz Sławecki <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
This crashes with a KeyError every time for me on 3.12 and 3.13, but some people report that it never crashes on CPython:
The script seems to run "forever" on Python3.9, 3.10 and 3.11 3.14.0a1+ (heads/main:ba088c8f9cf.
CPython versions tested on:
3.12, 3.13
Operating systems tested on:
No response
Linked PRs
important meta issue:
This reproducer absolutely should not reproduce on cpython!!
There does seem to be another issue, because this function should be deleted instantly because its refcount drops to 0, and never run the finalizer during the linecache.checkcache call
The text was updated successfully, but these errors were encountered: