prod(primes_first_n(64)).divisors() crashes
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.
Change History (16)
Milestone: 
→ sageduplicate/invalid/wontfix

Status: 
new →
needs_review

Description: 
modified (diff)

Reviewers: 
→ Marc Mezzarobba, Jeroen Demeyer

Status: 
needs_review →
positive_review

Reviewers: 
Marc Mezzarobba, Jeroen Demeyer

Status: 
positive_review →
needs_work

Summary: 
prod(primes(190)).divisors() crashes →
prod(primes(311)).divisors() crashes

Component: 
factorization →
basic arithmetic

Description: 
modified (diff)

Keywords: 
integer added; product primes 190 removed

Milestone: 
sageduplicate/invalid/wontfix →
sage6.2

Summary: 
prod(primes(311)).divisors() crashes →
prod(primes_first_n(64)).divisors() crashes

Description: 
modified (diff)

Branch: 
→ u/jdemeyer/ticket/8573

Modified: 
Feb 3, 2014, 10:32:52 AM →
Feb 3, 2014, 10:32:52 AM

Status: 
needs_work →
needs_review

Authors: 
→ Jeroen Demeyer

Commit: 
→ 8c68d72c9c03ea70990c19eced71d70ad6624f3b

Branch: 
u/jdemeyer/ticket/8573 →
u/rws/ticket/8573

Modified: 
Feb 5, 2014, 9:33:59 AM →
Feb 5, 2014, 9:33:59 AM

Commit: 
8c68d72c9c03ea70990c19eced71d70ad6624f3b →
7e1f981184af2bda242e7f87b88e7e69c5ffb7ba

Reviewers: 
→ Ralf Stephan

Status: 
needs_review →
positive_review

Commit: 
7e1f981184af2bda242e7f87b88e7e69c5ffb7ba →
42a405b44485e706741706ecf8f9e3113de05d33

Status: 
positive_review →
needs_review

Branch: 
u/rws/ticket/8573 →
u/jdemeyer/ticket/8573

Commit: 
42a405b44485e706741706ecf8f9e3113de05d33 →
8c68d72c9c03ea70990c19eced71d70ad6624f3b

Status: 
needs_review →
positive_review

Branch: 
u/jdemeyer/ticket/8573 →
8c68d72c9c03ea70990c19eced71d70ad6624f3b

Resolution: 
→ fixed

Status: 
positive_review →
closed

It now (6.1) fails with a
MemoryError
, which looks reasonable to me.