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 amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2012-10-23.22:33:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351031608.7.0.419151487248.issue16305@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import math, sys
>>> math.factorial(sys.maxsize - 1)
(Hit Ctrl-C)
Segmentation fault

The cause is probably in mathmodule.c::factorial_odd_part():
  error:
    Py_DECREF(outer);
  done:
    Py_DECREF(inner);
    return outer;
In case of error, the function returns a released reference instead of NULL.
History
Date User Action Args
2012-10-23 22:33:28amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc
2012-10-23 22:33:28amaury.forgeotdarcsetmessageid: <1351031608.7.0.419151487248.issue16305@psf.upfronthosting.co.za>
2012-10-23 22:33:28amaury.forgeotdarclinkissue16305 messages
2012-10-23 22:33:28amaury.forgeotdarccreate