mx.DateTime.DateTimeDelta.pytimedelta() segfaults

Joel Rosdahl <[email protected]> Sun, 25 Nov 2012 20:27:11 +0100
Newsgroups gmane.comp.python.egenix.user
Message-ID <CAK8D=phtRiTy27mAyQ=-TB=VcERs2-5-Od9yTKqsw=F7thUODA@mail.gmail.com>
Hi,

Reported by a Debian user
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664686):

An mx.DateTimeDelta object created with DateTimeDeltaFrom() crashes on
pytimedelta() call. For example:

    $ python
    Python 2.7.2+ (default, Nov 30 2011, 19:22:03)
    [GCC 4.6.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import mx.DateTime
    >>> t = mx.DateTime.DateTimeDeltaFrom("3 hours")
    >>> t
    <mx.DateTime.DateTimeDelta object for '03:00:00.00' at 7fcbf377f870>
    >>> t.absvalues()
    (0, 10800.0)
    >>> t.pytimedelta()
    Segmentation fault

Reported on mxBase 3.2.1 but crashes on 3.2.4 as well.

Regards,
-- Joel (Debian package maintainer)


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users