[sage-devel] Re: Segfault: Polynomials over RealField

2010-02-07 Thread Dima Pasechnik
The bug is in multiplication algorithm: in sage/rings/polynomial/polynomial_real_mpfr_dense.pyx in function that does ring multiplication: cpdef RingElement _mul_(left, RingElement _right): there is line 431: cdef PolynomialRealDense f = left._new(left._degree + right._degree) that is creates a

[sage-devel] Re: Segfault: Polynomials over RealField

2010-02-07 Thread Dima Pasechnik
even better: sage: P. = PolynomialRing(RealField()) sage: P(0)*P(0)+P(0) Program received signal SIGSEGV, Segmentation fault. On Feb 7, 10:10 pm, Dima Pasechnik wrote: > On Feb 7, 6:59 pm, Florent Hivert > wrote: > > > > >    Hi > > > On Sun, Feb 07, 2010 at 02:49:53AM -0800, Kiran Kedlaya wr

[sage-devel] Re: Segfault: Polynomials over RealField

2010-02-07 Thread Dima Pasechnik
On Feb 7, 6:59 pm, Florent Hivert wrote: >    Hi > > On Sun, Feb 07, 2010 at 02:49:53AM -0800, Kiran Kedlaya wrote: > > The following input segfaults sage 4.3.2 on sage.math, as well as sage > > 4.3 on various other machines. > > > P. = PolynomialRing(RealField()) > > print sum(P(0)*P(0) for k i