#5943: Sage 3.4.2.a0: len(prime_range(2^50)) segfaults
---------------------------------+------------------------------------------
Reporter: mabshoff | Owner: was
Type: defect | Status: new
Priority: critical | Milestone: sage-4.8
Component: number theory | Resolution:
Keywords: | Work_issues:
Upstream: N/A | Reviewer: Keshav Kini
Author: Michael Orlitzky | Merged:
Dependencies: |
---------------------------------+------------------------------------------
Changes (by jdemeyer):
* status: closed => new
* resolution: fixed =>
* merged: sage-4.8.alpha5 =>
Comment:
On hawk (OpenSolaris 06.2009-32):
{{{
sage -t -long -force_lib devel/sage/sage/rings/fast_arith.pyx
**********************************************************************
File
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-4.8.alpha5/devel
/sage-main/sage/rings/fast_arith.pyx", line 122:
sage: prime_range(sys.maxint)
Expected:
Traceback (most recent call last):
...
PariError: not enough memory (28)
Got:
Traceback (most recent call last):
File
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-4.8.alpha5/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-4.8.alpha5/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/export/home/buildbot/build/sage/hawk-1/hawk_full/build/sage-4.8.alpha5/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_1[16]>", line 1, in <module>
prime_range(sys.maxint)###line 122:
sage: prime_range(sys.maxint)
File "fast_arith.pyx", line 56, in sage.rings.fast_arith.prime_range
(sage/rings/fast_arith.c:4149)
cpdef prime_range(start, stop=None, algorithm="pari_primes", bint
py_ints=False):
File "fast_arith.pyx", line 161, in
sage.rings.fast_arith.prime_range (sage/rings/fast_arith.c:3929)
res.append(z)
MemoryError
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5943#comment:11>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.