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 bernie9998
Recipients bernie9998
Date 2010-09-17.18:17:56
SpamBayes Score 7.835745e-06
Marked as misclassified No
Message-id <1284747482.26.0.727712350645.issue9888@psf.upfronthosting.co.za>
In-reply-to
Content
When creating an int overflow via a subtraction operation with a datetime object and a timedelta object, the resulting datetime object can cause a segmentation fault when the ctime method is called.

Segmentation Fault occurred on python 2.6.5 on 64 bit ubuntu lucid.

Code as follows:

from datetime import datetime, timedelta
(datetime.now() - timedelta(734395)).ctime()
History
Date User Action Args
2010-09-17 18:18:02bernie9998setrecipients: + bernie9998
2010-09-17 18:18:02bernie9998setmessageid: <1284747482.26.0.727712350645.issue9888@psf.upfronthosting.co.za>
2010-09-17 18:18:00bernie9998linkissue9888 messages
2010-09-17 18:17:59bernie9998create