I can confirm that this seems to be what is going on. Usually, when I run ./sage -t devel/sage-main/sage/rings/real_mpfr.pyx
all of my memory gets eaten up. It worked just fine once, but never again. And I just tried RR(0).exact_rational() which causes the same problems. On Tue, 2007-06-19 at 09:43 -0700, Michel wrote: > William, > > A while ago I reported that the implementation of > > RR(0).exact_rational() > > made some machines run out of memory, giving weird > doctest errors. > > You posted a patch (special casing zero) but I now see > in the source of sage-2.6 you forgot to apply it. > > Can you please apply! > > Regards, > Michel > > > > > > > > On Jun 18, 7:19 pm, Michel <[EMAIL PROTECTED]> wrote: > > I can confirm that this particular test *sometimes* fails for me also. > > > > I also don't know what the cause is. > > > > Here is my /proc/cpuinfo. > > > > processor : 0 > > vendor_id : AuthenticAMD > > cpu family : 6 > > model : 8 > > model name : AMD Athlon(tm) XP 2200+ > > stepping : 1 > > cpu MHz : 1799.380 > > cache size : 256 KB > > fdiv_bug : no > > hlt_bug : no > > f00f_bug : no > > coma_bug : no > > fpu : yes > > fpu_exception : yes > > cpuid level : 1 > > wp : yes > > flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca > > cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow ts > > bogomips : 3603.04 > > > > Michel > > > > On Jun 18, 6:38 pm, Jonathan Bober <[EMAIL PROTECTED]> wrote: > > > > > I just compiled and tested sage on a machine that I haven't run it on > > > before, and got the following puzzling error: > > > > > sage -t devel/sage-main/sage/rings/real_mpfr.pyx > > > ********************************************************************** > > > File "real_mpfr.pyx", line 1471: > > > sage: RealField(5)(-pi).exact_rational() > > > Expected: > > > -25/8 > > > Got: > > > 1610612736 > > > ********************************************************************** > > > > > It works fine now, by which I mean, the test passes if I manually run > > > > > ./sage -t devel/sage-main/sage/rings/real_mpfr.pyx > > > > > and the following also works correctly: > > > > > sage: RealField(5)(-pi) > > > -3.1 > > > sage: RealField(5)(-pi).exact_rational() > > > -25/8 > > > > > Perhaps the error indicates a hardware failure (this is an old, battered > > > laptop) but I thought I would report it anyway. For reference, > > > from /proc/cpuinfo: > > > > > processor : 0 > > > vendor_id : AuthenticAMD > > > cpu family : 6 > > > model : 6 > > > model name : mobile AMD Athlon(tm) 4 1600+ > > > stepping : 2 > > > cpu MHz : 498.364 > > > cache size : 256 KB > > > fdiv_bug : no > > > hlt_bug : no > > > f00f_bug : no > > > coma_bug : no > > > fpu : yes > > > fpu_exception : yes > > > cpuid level : 1 > > > wp : yes > > > flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca > > > cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow > > > bogomips : 997.70 > > > > > I'm running 'make test' again, and might try to do some hardware tests. > > > I'll send another email if anything funny comes up. > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---