On May 2, 1:00 pm, mabshoff <mabsh...@googlemail.com> wrote:
> On May 2, 2:58 am, Alex Ghitza <aghi...@gmail.com> wrote:

<SNIP>

> > I played around with prime_pi() for a while, both on sage.math and on
> > my laptop at the office (macbook running 32-bit archlinux).  I didn't
> > manage to get a segfault on either machine with prime_pi(2^50).  I
> > guess that's the good news?  
>
> Somewhat. As it turns out 3.4.2.a0 does not blow up, but 3.4.1 does:
>
> mabsh...@sage:/scratch/mabshoff/sage-3.4.2.final$ sage
> ----------------------------------------------------------------------
> | Sage Version 3.4.1, Release Date: 2009-04-21                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: time prime_pi(2^50)
> /usr/local/sage/local/bin/sage-sage: line 198: 13649 Segmentation
> fault      sage-ipython "$@" -i
> mabsh...@sage:/scratch/mabshoff/sage-3.4.2.final$ ./sage
> ----------------------------------------------------------------------
> | Sage Version 3.4.2.rc0, Release Date: 2009-04-30                   |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: time prime_pi(2^50)
> <SNIP>

Ok, in hindsight it is pretty obvious why this doesn't segfault in
3.4.2.a0 any more:

mabsh...@sage:/scratch/mabshoff/sage-3.4.2.final$ ./sage
----------------------------------------------------------------------
| Sage Version 3.4.2.rc0, Release Date: 2009-04-30                   |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: len(prime_range(2^50))
/scratch/mabshoff/sage-3.4.2.final/local/bin/sage-sage: line 198:
13833 Segmentation fault      sage-ipython "$@" -i

So I am rewriting the tickets: #5943 is about the still existing crash
in 3.4.2.final while #5963 is about the wrong results for prime_pi()
on some platforms.

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to