[New-bugs-announce] [issue17715] Raising an exception in __trunc__ gives a segmentation fault.
Mark Dickinson
report at bugs.python.org
Sat Apr 13 17:57:33 CEST 2013
New submission from Mark Dickinson:
Python 3.4.0a0 (default:838fdf3bb0c6, Apr 13 2013, 16:54:22)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class A:
... def __trunc__(self): 1/0
...
>>> int(A())
Segmentation fault
It looks as though the problem is in PyNumber_Long, where there's an unchecked return value for PyEval_CallObject.
----------
assignee: mark.dickinson
components: Interpreter Core
messages: 186735
nosy: mark.dickinson
priority: high
severity: normal
status: open
title: Raising an exception in __trunc__ gives a segmentation fault.
type: crash
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17715>
_______________________________________
More information about the New-bugs-announce
mailing list