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.

Author ajaksu2
Recipients ajaksu2
Date 2008-08-23.16:55:51
SpamBayes Score 1.0375709e-08
Marked as misclassified No
Message-id <1219510555.19.0.327680854391.issue3653@psf.upfronthosting.co.za>
In-reply-to
Content
Calling sys.excepthook(1,'1',1) crashes 3.0:

Python 3.0b3+ (py3k:65987, Aug 23 2008, 10:04:31)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; sys.excepthook(1,'1',1)
Segmentation fault

gdb points at "PyException_GetTraceback  at Objects/exceptions.c:265
265         Py_XINCREF(base_self->traceback);"

This was found by Fusil and Victor Stinner (haypo) sent me a patch (see
attachment).

Thanks bpeterson for triaging :)

PS: I also think that issue3643 should be targeted to 3.0, as the
underlying issue is the same, it would be an easy way to segfault
python3.0 and has a clean patch available.
History
Date User Action Args
2008-08-23 16:55:55ajaksu2setrecipients: + ajaksu2
2008-08-23 16:55:55ajaksu2setmessageid: <1219510555.19.0.327680854391.issue3653@psf.upfronthosting.co.za>
2008-08-23 16:55:53ajaksu2linkissue3653 messages
2008-08-23 16:55:52ajaksu2create