-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Calling _pickle.load
with a MagicMock
results in SystemError
/aborts
#126461
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
Labels
3.12
only security fixes
3.13
bugs and security fixes
3.14
bugs and security fixes
extension-modules
C modules in the Modules dir
type-crash
A hard crash of the interpreter, possibly with a core dump
Comments
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Nov 6, 2024
Handle _Unpickler_SetStringInput() failure.
vstinner
added a commit
that referenced
this issue
Nov 6, 2024
Handle _Unpickler_SetStringInput() failure.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 6, 2024
…GH-126485) Handle _Unpickler_SetStringInput() failure. (cherry picked from commit a1c57bc) Co-authored-by: Victor Stinner <vstinner@python.org>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 6, 2024
…GH-126485) Handle _Unpickler_SetStringInput() failure. (cherry picked from commit a1c57bc) Co-authored-by: Victor Stinner <vstinner@python.org>
This was referenced Nov 6, 2024
Fixed. Thanks for your bug report. |
vstinner
added a commit
that referenced
this issue
Nov 6, 2024
vstinner
added a commit
that referenced
this issue
Nov 6, 2024
picnixz
pushed a commit
to picnixz/cpython
that referenced
this issue
Dec 8, 2024
…#126485) Handle _Unpickler_SetStringInput() failure.
ebonnal
pushed a commit
to ebonnal/cpython
that referenced
this issue
Jan 12, 2025
…#126485) Handle _Unpickler_SetStringInput() failure.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
only security fixes
3.13
bugs and security fixes
3.14
bugs and security fixes
extension-modules
C modules in the Modules dir
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
Calling
_pickle.load(MagicMock())
with a results in an abort in debug builds and aSystemError
in non-debug.In debug builds:
In non-debug builds:
Found using fusil by @vstinner.
CPython versions tested on:
3.13, 3.14, CPython main branch
Operating systems tested on:
Linux, Windows
Output from running 'python -VV' on the command line:
Python 3.14.0a1+ experimental free-threading build (heads/main-dirty:bfc1d2504c, Nov 4 2024, 07:55:58) [GCC 11.4.0]
Linked PRs
The text was updated successfully, but these errors were encountered: