#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:
--------------------------------------+--------------------------
Changes (by jdemeyer):
* keywords: product primes 190 divisors => integer divisors
* milestone: sage-duplicate/invalid/wontfix => sage-6.2
* component: factorization => basic arithmetic
Old description:
> Exactly what the title says...The divisors of the product of all primes
> under 190 crashes sage.
>
> I believe the crash is due to the fact that the number that comes out of
> prod(primes(190)) has 4398046511104 divisors.
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:5>
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.