#8573: prod(primes_first_n(64)).divisors() crashes
--------------------------------------+--------------------------
Reporter: asdjughewou9474388 | Owner: tbd
Type: defect | Status: needs_work
Priority: minor | Milestone: sage-6.2
Component: basic arithmetic | Resolution:
Keywords: integer divisors | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------+--------------------------
Description changed by jdemeyer:
Old description:
> {{{
> sage: prod(primes_first_n(64)).divisors()
> ------------------------------------------------------------------------
> Unhandled SIGSEGV: A segmentation fault occurred in Sage.
> This probably occurred because a *compiled* component of Sage has a bug
> in it and is not properly wrapped with sig_on(), sig_off().
> Sage will now terminate.
> ------------------------------------------------------------------------
> }}}
> The crash is due to the fact that the number has exactly 2^64 divisors
> and this overflows a C integer.
New description:
{{{
sage: prod(primes_first_n(64)).divisors()
------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Sage will now terminate.
------------------------------------------------------------------------
}}}
The crash is due to the fact that the number has exactly `2^64` divisors
and this overflows a C integer.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/8573#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.