[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:
self.assertRaises(OverflowError,
self.marshal(b'\ta\n\tb').expandtabs,
sys.maxsize)
----------
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>
<http://bugs.python.org/issue4935>
_______________________________________
More information about the Python-bugs-list
mailing list