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 vstinner
Recipients Arfrever, vstinner
Date 2009-08-14.22:39:31
SpamBayes Score 1.0368544e-08
Marked as misclassified No
Message-id <1250289573.42.0.683709136047.issue6697@psf.upfronthosting.co.za>
In-reply-to
Content
The error occurs in Py_Main(), on _PyUnicode_AsString(commandObj). The
problem is that _PyUnicode_AsString() is not checked for error. Here is
a patch fixing two errors:
 - display on error message instead of a crash on
_PyUnicode_AsString(commandObj) failure
 - don't call Py_DECREF(commandObj) if commandObj is NULL
(PyUnicode_FromWideChar error, a different error)

My patch also includes a test. The test should be moved somewhere else,
but I don't know where.
History
Date User Action Args
2009-08-14 22:39:33vstinnersetrecipients: + vstinner, Arfrever
2009-08-14 22:39:33vstinnersetmessageid: <1250289573.42.0.683709136047.issue6697@psf.upfronthosting.co.za>
2009-08-14 22:39:32vstinnerlinkissue6697 messages
2009-08-14 22:39:31vstinnercreate