[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: yes, this was fixed by issue7150. -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed superseder: -> datetime operations spanning MINYEAR give bad results ___ Python tracker

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently it has been fixed somewhere between 2.6.5 and 2.6.6. I get a segmentation fault in 2.6.5, but an OverflowError in all of {2.6.6, 2.7, 3.1, 3.2}. -- nosy: +pitrou ___ Python tracker

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread Brian Bernstein
Brian Bernstein added the comment: After further investigation, it appears the cause is the ability to overflow the datetime object by almost a year. I've modified the test to demonstrate this relative to the current date: from datetime import date, datetime, timedelta (datetime.now()-timede

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread R. David Murray
R. David Murray added the comment: This does not reproduce for me on python2.6.5 gentoo linux; however, gentoo linux does have some additional post 2.6.5 patches applied. It also does not reproduce on 2.7. -- nosy: +barry, r.david.murray ___ Python

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread Brian Bernstein
New submission from Brian Bernstein : 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 ubu