[New-bugs-announce] [issue4935] Segmentation fault in bytearray tests

Antoine Pitrou report at bugs.python.org
Tue Jan 13 19:50:39 CET 2009

New submission from Antoine Pitrou <pitrou at free.fr>:

This happens on a 32-bit build on a 64-bit system, which happens to have
some interesting properties: for example, malloc() will happily allocate
memory larger than Py_SSIZE_T_MAX.

The crash is exactly triggered by the following snippet:

        if sys.maxsize < (1 << 32) and struct.calcsize('P') == 4:

components: Interpreter Core
messages: 79766
nosy: pitrou
priority: critical
severity: normal
status: open
title: Segmentation fault in bytearray tests
type: crash

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list