On Apr 1, 10:41 am, shreevatsa <[EMAIL PROTECTED]> wrote:
> Someone else was trying to do something, and I tried something and got
> a crash; mabshoff asked me to post a backtrace. (So if it is very
> long, don't blame me ;-))
>
> This is probably invalid mathematics that should raise an exception,
> but it causes a crash instead on my OS X 10.4. The other person also
> had this problem on Linux. mabshoff speculated it is a 32-bit/64-bit
> issue, since it raises an exception for him.
>
> Code:
> K.<x>=QQ['X']; p=EuclideanDomainElement(K);
> q=EuclideanDomainElement(K); (x^3+p*x+q).quo_rem(3*x^2+p)
<SNIP>
Note that it doesn't segfault with 2.11 on 64 bit:
sage: (x^3+p*x+q).quo_rem(3*x^2+p)
---------------------------------------------------------------------------
<type 'exceptions.NotImplementedError'> Traceback (most recent call
last)
/scratch/mabshoff/release-cycle/sage-3.0.alpha0/<ipython console> in
<module>()
/scratch/mabshoff/release-cycle/sage-3.0.alpha0/element.pyx in
sage.structure.element.RingElement.__mul__()
/scratch/mabshoff/release-cycle/sage-3.0.alpha0/coerce.pxi in
sage.structure.element._mul_c()
/scratch/mabshoff/release-cycle/sage-3.0.alpha0/element.pyx in
sage.structure.element.ModuleElement._iadd_c_impl()
/scratch/mabshoff/release-cycle/sage-3.0.alpha0/element.pyx in
sage.structure.element.Element._richcmp_c_impl()
/scratch/mabshoff/release-cycle/sage-3.0.alpha0/element.pyx in
sage.structure.element.Element._cmp_c_impl()
<type 'exceptions.NotImplementedError'>: BUG: sort algorithm for
elements of 'Univariate Polynomial Ring in X over Rational Field' not
implemented
sage:
So if somebody can reproduce this with a 32 bit build (on Linux or OSX
it seems) please open a ticket. Recently there have been a number of
issues that only hit us on 32 bits, so I would guess we need some more
testing on that platform. Maybe I should set up a 32 bit VMWare image
and run the whole doctest suite under valgrind on there. If anybody
wants to help out let me know.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---