Message173643
>>> 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. |
|
Date |
User |
Action |
Args |
2012-10-23 22:33:28 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc |
2012-10-23 22:33:28 | amaury.forgeotdarc | set | messageid: <1351031608.7.0.419151487248.issue16305@psf.upfronthosting.co.za> |
2012-10-23 22:33:28 | amaury.forgeotdarc | link | issue16305 messages |
2012-10-23 22:33:28 | amaury.forgeotdarc | create | |
|