-
-
Notifications
You must be signed in to change notification settings - Fork 32k
The interpreter crashes when specializing bound method calls on unbound objects #131998
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
Looks like a 3.14 regression. |
I can reproduce the crash on Python 3.13. |
Hmm, I couldn't. Let me double check. |
I can reproduce the crash on a Python 3.13 release build (PGO+LTO). I cannot reproduce the crash on a Python 3.13 debug build ( |
Ah, this doesn't occur on a 3.13.2 release build, so this will be a neat surprise in the upcoming release next week. |
The crash on Python 3.13.2 using the Fedora 41 package: $ cat x.py
def call(part):
part.pop()
call(['a'])
try:
call(list)
except TypeError:
raise
$ python3.13 -VV
Python 3.13.2 (main, Feb 4 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)]
$ python3.13 x.py
Erreur de segmentation (core dumped) |
I can reproduce using that script on 3.13.2, but not the original one that @devdanzin provided. |
ob->ob_type
in _PyEval_EvalFrameDefault
…method descriptor in a specialized code path (pythonGH-132000) (cherry picked from commit ac3c439) Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: 8000 sobolevn <mail@sobolevn.me> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Mark Shannon <mark@hotpy.org>
Thanks everyone! |
…descriptor in a specialized code path (python#132000) Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Mark Shannon <mark@hotpy.org>
Uh oh!
There was an error while loading. Please reload this page.
Crash report
What happened?
The following code segfaults the interpreter:
(Edited by @ZeroIntensity) Smaller reproducer:
Backtrace:
Found using fusil by @vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a6+ (heads/main:3a8cefba0b6, Apr 1 2025, 21:31:55) [GCC 11.4.0]
Linked PRs
NULL
dereference when using an unbound method descriptor in a specialized code path #132000NULL
dereference when using an unbound method descriptor in a specialized code path (GH-132000) #132262The text was updated successfully, but these errors were encountered: