On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
> > I know this isn't a bug in sage, but it is good to be aware of... If
> > the contents of the file crash.py is:
> >
> > <file>
> > def crash():
> >     n = 5
> >     k = 2
> >     return [( 2**(n-2*i-2) - 2**(floor(n/2)-i-1) - 1 ) for i in
> > range(k)]
> > </file>
> >
> > Then you get bizarre behavior:
> >
> > sage: load crash.py
> > sage: crash()
> >
> > ------------------------------------------------------------
> > Unhandled SIGSEGV: A segmentation fault occured in SAGE.
> > <etc>
> > ------------------------------------------------------------

The actual SIGSEGV part of the bug was caused by
a mistake in the arithmetic architecture code, in
which in one case it assumed that an element
was of type Element, but it wasn't.   This is fixed
if you do hg_sage.pull() or apply the attached patch.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Attachment: 4386.patch
Description: Binary data

Reply via email to