New submission from Brian Bernstein <bernie9...@gmail.com>:

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()

----------
components: None
files: segfault.py
messages: 116700
nosy: bernie9998
priority: normal
severity: normal
status: open
title: int overflow in datetime causes seg fault from datetime.ctime()
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file18909/segfault.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9888>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to