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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2016-12-16.23:38:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481931496.89.0.341758339319.issue28994@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch makes few minor changes related to handling errors in C.

* Fixed possible NULL dereference in PyErr_NormalizeException().

* Fixed error checking in atexit._run_exitfuncs().

* Fixed possible memory leaks in _Py_FatalError_PrintExc().

* PyErr_NormalizeException() no longer recursive.

* If an error is occurred during handling other error, the original exception is chained as the __contex__ attribute to the new exception instead of just be dropped.

* PyTraceBack_Print() no longer fails OverflowError if tracebacklimit is very large negative or positive value.

* ctype error message now include the name of the initial exception instead of the repr of its class.

* Py_XDECREFs is replaced with Py_DECREFs if this is safe.

* Added few asserts.

* Other minor cleanups.
History
Date User Action Args
2016-12-16 23:38:17serhiy.storchakasetrecipients: + serhiy.storchaka
2016-12-16 23:38:16serhiy.storchakasetmessageid: <1481931496.89.0.341758339319.issue28994@psf.upfronthosting.co.za>
2016-12-16 23:38:16serhiy.storchakalinkissue28994 messages
2016-12-16 23:38:16serhiy.storchakacreate