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 <rep...@bugs.python.org> <http://bugs.python.org/issue17715> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com