I'm getting the same error as in #26002 
<https://trac.sagemath.org/ticket/26002> in src/sage/rings/integer.pyx

In my patchbot run 
https://patchbot.sagemath.org/log/0/debian/9.8/x86_64/4.9.0-8-amd64/cofio/2019-03-13%2016:31:01
this just appeared as slow, but I don't see that this test should have this 
runtime:

sage -t --long --warn-long 46.7 src/sage/rings/integer.pyx
**********************************************************************
File "src/sage/rings/integer.pyx", line 3009, in sage.rings.integer.Integer.
divisors
Warning, slow doctest:
    for i in range(20):  # long time
        try:
            alarm(RDF.random_element(1e-3, 0.5))
            _ = n.divisors()
            cancel_alarm()  # we never get here
        except AlarmInterrupt:
            pass
Test ran for 47.08 s
    [1128 tests, 61.72 s]

Now it just keeps on failing:


sage -t --long --warn-long 48.7 src/sage/rings/integer.pyx
**********************************************************************
File "src/sage/rings/integer.pyx", line 3009, in sage.rings.integer.Integer.
divisors
Failed example:
    for i in range(20):  # long time
        try:
            alarm(RDF.random_element(1e-3, 0.5))
            _ = n.divisors()
            cancel_alarm()  # we never get here
        except AlarmInterrupt:
            pass
Exception raised:
    Traceback (most recent call last):
      File 
"/srv/public/kliem/patchbot-sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
, line 671, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/srv/public/kliem/patchbot-sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
, line 1095, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.rings.integer.Integer.divisors[20]>", line 4, in 
<module>
        _ = n.divisors()
      File "sage/rings/integer.pyx", line 3079, in sage.rings.integer.
Integer.divisors (build/cythonized/sage/rings/integer.c:19782)
        ptr = <unsigned long*>check_allocarray(divisor_count, 3 * sizeof(
unsigned long))
      File "memory.pxd", line 87, in cysignals.memory.check_allocarray (
build/cythonized/sage/rings/integer.c:47092)
    MemoryError: failed to allocate 33554432 * 24 bytes
**********************************************************************
File "src/sage/rings/integer.pyx", line 3849, in sage.rings.integer.Integer
.?
Failed example:
    n.factor(proof=True)
Exception raised:
    Traceback (most recent call last):
      File 
"/srv/public/kliem/patchbot-sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
, line 671, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File 
"/srv/public/kliem/patchbot-sage/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
, line 1095, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.rings.integer.Integer.?[9]>", line 1, in <module>
        n.factor(proof=True)
      File "sage/rings/integer.pyx", line 3931, in sage.rings.integer.
Integer.factor (build/cythonized/sage/rings/integer.c:24848)
        F = factor_using_pari(n, int_=int_, debug_level=verbose, proof=proof
)
      File "sage/rings/factorint.pyx", line 352, in 
sage.rings.factorint.factor_using_pari 
(build/cythonized/sage/rings/factorint.c:6396)
        p, e = n.__pari__().factor(proof=proof)
      File "cypari2/gen.pyx", line 4307, in cypari2.gen.Gen.factor
    AlarmInterrupt
**********************************************************************

I'm on branch `patchbot/ticket_merged`, but this issue also appeared in a 
different install on branch
public/upgrade_polymake_to_version_3_2r4 
<https://trac.sagemath.org/git-merger/2879106058ba56fb9e3b422d709a377378b1f6d2>

Btw, my patchbot was stopped due to https://trac.sagemath.org/ticket/27477. 
This is why I even noticed.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to