#5943: Sage 3.4.2.a0: len(prime_range(2^50)) segfaults
---------------------------+------------------------------------------------
 Reporter:  mabshoff       |       Owner:  was     
     Type:  defect         |      Status:  new     
 Priority:  blocker        |   Milestone:  sage-4.0
Component:  number theory  |    Keywords:          
---------------------------+------------------------------------------------

Comment(by mabshoff):

 We might want to either implement this ourselves or just put reasonable
 limit on this:
 {{{
 sage" len(prime_range(2^35))
 
/home/mabshoff/.sage/temp/sage.math.washington.edu/10069/_home_mabshoff__sage_init_sage_0.py
 in <module>()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/IPython/iplib.pyc in ipmagic(self, arg_s)
     951         else:
     952             magic_args = self.var_expand(magic_args,1)
 --> 953             return fn(magic_args)
     954
     955     def ipalias(self,arg_s):

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/IPython/Magic.pyc in magic_time(self, parameter_s)
    1905         if mode=='eval':
    1906             st = clk()
 -> 1907             out = eval(code,glob)
    1908             end = clk()
    1909         else:

 
/home/mabshoff/.sage/temp/sage.math.washington.edu/10069/_home_mabshoff__sage_init_sage_0.py
 in <module>()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/sage/rings/fast_arith.so in sage.rings.fast_arith.prime_range
 (sage/rings/fast_arith.c:3772)()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/sage/rings/fast_arith.so in sage.rings.fast_arith.prime_range
 (sage/rings/fast_arith.c:3458)()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/sage/libs/pari/gen.so in
 sage.libs.pari.gen.PariInstance.primes_up_to_n
 (sage/libs/pari/gen.c:40660)()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/sage/libs/pari/gen.so in sage.libs.pari.gen._pari_trap
 (sage/libs/pari/gen.c:44402)()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/sage/libs/pari/gen.so in
 sage.libs.pari.gen.PariInstance.allocatemem (sage/libs/pari/gen.c:40001)()

 /scratch/mabshoff/sage-3.4.2.final/local/lib/python2.5/site-
 packages/sage/libs/pari/gen.so in sage.libs.pari.gen.init_stack
 (sage/libs/pari/gen.c:43371)()

 MemoryError: Unable to allocate 131072000000 bytes memory for PARI.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5943#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to