New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/pull/34030#issuecomment-1000515210 Comment: The first gives ``` $ sage-9.5.beta8_1 ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 9.5.beta8, Release Date: 2021-12-12 │ │ Using Python 3.10.1. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: this is a prerelease version, and it may be unstable. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ sage: for i in srange(1000000): print(sage.rings.integer.Integer.factorial(i)) 1 1 2 6 24 120 720 5040 40320 362880 3628800 39916800 479001600 6227020800 87178291200 1307674368000 20922789888000 355687428096000 6402373705728000 121645100408832000 2432902008176640000 51090942171709440000 1124000727777607680000 25852016738884976640000 620448401733239439360000 15511210043330985984000000 403291461126605635584000000 *** SIG 11 *** inside sig_on do_raise_exception(sig=11) PyErr_Occurred() = 0 Raising Python exception 0 ms after signal... --------------------------------------------------------------------------- SignalError Traceback (most recent call last) in ----> 1 for i in srange(Integer(1000000)): print(sage.rings.integer.Integer.fac torial(i)) /usr/lib/sage-9.5.beta8/local/var/lib/sage/venv-python3.10/lib/python3.10/site- packages/sage/rings/integer.pyx in sage.rings.integer.Integer.factorial (build/ cythonized/sage/rings/integer.c:29386)() 4476 cdef Integer z = PY_NEW(Integer) 4477 -> 4478 sig_on() 4479 mpz_fac_ui(z.value, mpz_get_ui(self.value)) 4480 sig_off() SignalError: Segmentation fault sage: quit Exiting Sage (CPU time 0m0.81s, Wall time 0m59.58s). ------------------------------------------------------------------------ Unhandled SIGSEGV: A segmentation fault occurred. This probably occurred because a *compiled* module has a bug in it and is not properly wrapped with sig_on(), sig_off(). Python will now terminate. ------------------------------------------------------------------------ Segmentation fault ``` I'll try the other tomorrow.