This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Objects/object.c:767:24: runtime error: member access within null pointer of type 'PyObject' (aka 'struct _object')
Type: crash Stage: resolved
Components: Interpreter Core Versions: Python 3.9
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: a-shvedov, christian.heimes
Priority: normal Keywords:

Created on 2022-02-01 12:38 by a-shvedov, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit
issue-file_asanlog.log a-shvedov, 2022-02-01 12:38 AddressSanitizer logfile
Messages (2)
msg412251 - (view) Author: A-Shvedov (a-shvedov) Date: 2022-02-01 12:38
Hello. Got an error with AFLplusplus, with crafted sample:

Compiled with: clang (version 6.0.0-3) ;

Configure params: --enable-optimizations --prefix= .

Package version: Python-3.9.9 ;

Builded binary info:
python: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/, for GNU/Linux 2.6.32, not stripped ;

Stderr with run crafted sample: Segmentation fault ;

AddressSanitizer run:
Objects/object.c:767:24: runtime error: member access within null pointer of type 'PyObject' (aka 'struct _object') ;

AddressSanitizer log attached in logfile.
msg412282 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-02-01 15:48
The crash occurs inside marshal module (Python/marshal.c). The marshal module is unsafe and cannot safely parse malicious code. Bad marshal code is expected to crash the interpreter.
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90757
2022-02-01 15:48:04christian.heimessetstatus: open -> closed

nosy: + christian.heimes
messages: + msg412282

resolution: wont fix
stage: resolved
2022-02-01 12:38:41a-shvedovcreate