Bug 839343 - RFE: Make an actually working sympow package
RFE: Make an actually working sympow package
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: sympow (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Conrad Meyer
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-11 12:11 EDT by Paulo Andrade
Modified: 2012-07-11 13:01 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-07-11 13:01:56 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Paulo Andrade 2012-07-11 12:11:14 EDT
Current sympow package will fail like this in first usage of it in sagemath doctests:

---%<---
$ cd /usr/lib64/sympow
$ gdb sympow 
GNU gdb (GDB) Fedora (7.4.50.20120703-8.fc18)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib64/sympow/sympow...done.
(gdb) r -curve [0,-1,1,-10,-20] -moddeg
Starting program: /usr/lib64/sympow/sympow -curve [0,-1,1,-10,-20] -moddeg
sympow 1.019 RELEASE  (c) Mark Watkins --- see README and COPYING for details
Minimal model of curve  is [0,-1,1,-10,-20]
At 11: Inertia Group is  C1 MULTIPLICATIVE REDUCTION
Conductor is 11
Twist effect is 1, Even valuation gives 1/1
Twist conductor is 11
Using precision of 6 digits
Creating datafiles/M02LM.bin from datafiles/M02LM.txt

Program received signal SIGSEGV, Segmentation fault.
__GI__IO_fwrite (buf=buf@entry=0x7ffff7f20010, size=size@entry=8, 
    count=count@entry=46080, fp=fp@entry=0x0) at iofwrite.c:41
41        _IO_acquire_lock (fp);
(gdb) bt
#0  __GI__IO_fwrite (buf=buf@entry=0x7ffff7f20010, size=size@entry=8, 
    count=count@entry=46080, fp=fp@entry=0x0) at iofwrite.c:41
#1  0x0000000000411e07 in txt2bin (num=<optimized out>, 
    B=B@entry=0x7fffffffd0b0 "datafiles/M02LM.bin", R=R@entry=0x62db30)
    at generate.c:180
#2  0x000000000040866e in load_files (which=0, sp=sp@entry=2, ep=ep@entry=1, 
    dv=dv@entry=0) at disk.c:91
#3  0x0000000000416e6a in prepare_sympow (sl=0, dv=0, sp=2) at prepare.c:74
#4  prepare_sympow_check (bk=<optimized out>, sl=0, nw=0, prec=6, dv=0, sp=2)
    at prepare.c:88
#5  prepare_sympow_check (sp=2, dv=0, prec=6, nw=0, sl=0, bk=<optimized out>)
    at prepare.c:81
#6  0x0000000000417737 in process_string (IN=IN@entry=0x7fffffffd3b0 "2w0p6", 
    UB=UB@entry=35184372088832) at prepare.c:120
#7  0x0000000000417bfb in preparation (K=K@entry=60, 
    IN=IN@entry=0x7fffffffd3b0 "2w0p6", UB=UB@entry=35184372088832)
    at prepare.c:154
#8  0x000000000040104a in main (argc=<optimized out>, argv=0x7fffffffe0d8)
    at main.c:66
(gdb) 
---%<---

Sample doctest failure:

---%<---
sage -t  -force_lib "devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py"
[?1034h  ***   Warning: new stack size = 1003360 (0.957 Mbytes).
/usr/bin/sympow: line 27:  6177 Segmentation fault      (core dumped) ./sympow $*
  ***   Warning: new stack size = 1003360 (0.957 Mbytes).
/usr/bin/sympow: line 27:  6184 Segmentation fault      (core dumped) ./sympow $*
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 1305:
    sage: E.analytic_rank(algorithm='sympow')
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_27[5]>", line 1, in <module>
        E.analytic_rank(algorithm='sympow')###line 1305:
    sage: E.analytic_rank(algorithm='sympow')
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 1358, in analytic_rank
        return sympow.analytic_rank(self)[0]
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 287, in analytic_rank
        raise RuntimeError, "failed to compute analytic rank"
    RuntimeError: failed to compute analytic rank
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 1309:
    sage: E.analytic_rank(algorithm='all')
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_27[6]>", line 1, in <module>
        E.analytic_rank(algorithm='all')###line 1309:
    sage: E.analytic_rank(algorithm='all')
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 1369, in analytic_rank
        self.analytic_rank('rubinstein'), self.analytic_rank('sympow')])
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 1358, in analytic_rank
        return sympow.analytic_rank(self)[0]
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 287, in analytic_rank
        raise RuntimeError, "failed to compute analytic rank"
    RuntimeError: failed to compute analytic rank
Saturation index bound = 265
WARNING: saturation at primes p > 97 will not be done;  
points may be unsaturated at primes between 97 and index bound
Failed to saturate MW basis at primes [ ]
Saturation index bound = 265
WARNING: saturation at primes p > 199 will not be done;  
points may be unsaturated at primes between 199 and index bound
Failed to saturate MW basis at primes [ ]
After 10 attempts at enlargement, giving up!
--points not proved 2-saturated,
2-saturation failed!
Failed to saturate MW basis at primes [ 2 ]
2 After 10 attempts at enlargement, giving up!
--points not proved 2-saturated,
2-saturation failed!
Failed to saturate MW basis at primes [ 2 ]
/usr/bin/sympow: line 27:  6223 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6229 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6242 Segmentation fault      (core dumped) ./sympow $*
2 **********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3171:
    sage: E.modular_degree()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_65[4]>", line 1, in <module>
        E.modular_degree()###line 3171:
    sage: E.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3174:
    sage: E.modular_degree()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_65[6]>", line 1, in <module>
        E.modular_degree()###line 3174:
    sage: E.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3181:
    sage: EllipticCurve([0, 0, 1, -7, 6]).modular_degree()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_65[8]>", line 1, in <module>
        EllipticCurve([Integer(0), Integer(0), Integer(1), -Integer(7), Integer(6)]).modular_degree()###line 3181:
    sage: EllipticCurve([0, 0, 1, -7, 6]).modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modula/usr/bin/sympow: line 27:  6250 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6254 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6270 Segmentation fault      (core dumped) ./sympow $*
r degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3183:
    sage: EllipticCurve([0, 0, 1, -7, 6]).modular_degree(algorithm='sympow')
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_65[9]>", line 1, in <module>
        EllipticCurve([Integer(0), Integer(0), Integer(1), -Integer(7), Integer(6)]).modular_degree(algorithm='sympow')###line 3183:
    sage: EllipticCurve([0, 0, 1, -7, 6]).modular_degree(algorithm='sympow')
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3194:
    sage: factor(E.modular_degree())
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_65[12]>", line 1, in <module>
        factor(E.modular_degree())###line 3194:
    sage: factor(E.modular_degree())
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3262:
    sage: E.congruence_number()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_67[3]>", line 1, in <module>
        E.congruence_number()###line 3262:
    sage: E.congruence_number()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3293, in congruence_number
        m = self./usr/bin/sympow: line 27:  6274 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6278 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6282 Segmentation fault      (core dumped) ./sympow $*
modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3264:
    sage: E.congruence_number()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_67[4]>", line 1, in <module>
        E.congruence_number()###line 3264:
    sage: E.congruence_number()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3293, in congruence_number
        m = self.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3267:
    sage: E.congruence_number()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_67[6]>", line 1, in <module>
        E.congruence_number()###line 3267:
    sage: E.congruence_number()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3293, in congruence_number
        m = self.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3269:
    sage: E.modular_degree()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/nc/usr/bin/sympow: line 27:  6286 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6290 Segmentation fault      (core dumped) ./sympow $*
/usr/bin/sympow: line 27:  6294 Segmentation fault      (core dumped) ./sympow $*
adoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_67[7]>", line 1, in <module>
        E.modular_degree()###line 3269:
    sage: E.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3272:
    sage: E.modular_degree()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_67[9]>", line 1, in <module>
        E.modular_degree()###line 3272:
    sage: E.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 3285:
    sage: E.congruence_number()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_67[11]>", line 1, in <module>
        E.congruence_number()###line 3285:
    sage: E.congruence_number()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3293, in congruence_number
        m = self.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 324:
    sage: E.modular_degree()
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/sh/usr/bin/sympow: line 27:  6298 Segmentation fault      (core dumped) ./sympow $*
are/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_7[3]>", line 1, in <module>
        E.modular_degree()###line 324:
    sage: E.modular_degree()
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 329:
    sage: E._set_modular_degree(E.database_curve().modular_degree())
Exception raised:
    Traceback (most recent call last):
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/share/sagemath/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_7[6]>", line 1, in <module>
        E._set_modular_degree(E.database_curve().modular_degree())###line 329:
    sage: E._set_modular_degree(E.database_curve().modular_degree())
      File "/usr/lib64/python2.7/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 3203, in modular_degree
        m = sympow.modular_degree(self)
      File "/usr/lib64/python2.7/site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
        raise RuntimeError, "failed to compute modular degree"
    RuntimeError: failed to compute modular degree
**********************************************************************
File "/usr/share/sagemath/devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py", line 330:
    sage: E.modular_degree()
Expected:
    1984
Got:
    123456789
**********************************************************************
4 items had failures:
   2 of  15 in __main__.example_27
   5 of  14 in __main__.example_65
   6 of  13 in __main__.example_67
   3 of   9 in __main__.example_7
***Test Failed*** 16 failures.
For whitespace errors, see the file /home/pcpa/.sage/tmp/ell_rational_field_6150.py
	 [51.6 s]
---%<---


But, with the suggested package:

---%<---
$ sage -t  -force_lib "devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py"
sage -t -force_lib "devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py"
         [50.3 s]
 
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 50.3 seconds
---%<---

The suggested package also requires a small change to my current WIP sagemath package, to match my Mandriva sagemath package, where it already handles copying sympow datafiles to a user writable directory. This is required because sympow is not tolerant to errors and needs to create ".bin" files from the ".txt" files, as well as be able to create new data files. Example:

$ ls /usr/lib64/sympow/datafiles/
A012M.txt  A014S.txt  A017M.txt  A019S.txt  m01EM.txt  M02HS.txt
A012S.txt  A015M.txt  A017S.txt  A01OM.txt  m01ES.txt  M02LM.txt
A013M.txt  A015S.txt  A018M.txt  A01OS.txt  m02EM.txt  M02LS.txt
A013S.txt  A016M.txt  A018S.txt  H02EM.txt  m02ES.txt  param_data
A014M.txt  A016S.txt  A019M.txt  H02ES.txt  M02HM.txt

and after running the sage doctest I see:

$ ls ~/.sage/sympow/datafiles/
A012M.bin  A014M.txt  A016S.txt  A019M.txt  H02ES.txt  m02ES.txt  M02LM.txt
A012M.txt  A014S.txt  A017M.txt  A019S.txt  m01EM.bin  M02HM.bin  M02LS.txt
A012S.txt  A015M.txt  A017S.txt  A01OM.txt  m01EM.txt  M02HM.txt  param_data
A013M.txt  A015S.txt  A018M.txt  A01OS.txt  m01ES.txt  M02HS.txt
A013S.txt  A016M.txt  A018S.txt  H02EM.txt  m02EM.txt  M02LM.bin

If doing a full doctest it would create more .bin files


BTW, note that upstream no longer exists for sympow, what may be an issue at some point, e.g. if need to validate again upstream tarballs.


Suggested package:

Spec URL: http://fedorapeople.org/~pcpa/sympow.spec
SRPM URL: http://fedorapeople.org/~pcpa/sympow-1.019-6.fc18.src.rpm
Comment 1 Paulo Andrade 2012-07-11 12:15:41 EDT
Conrad, as with several other packages, I just requested commit acl, so I can correct it myself :-)
Comment 2 Conrad Meyer 2012-07-11 12:22:41 EDT
Granted! Thanks.
Comment 3 Paulo Andrade 2012-07-11 13:01:56 EDT
New sympow correcting the problem has been submitted to rawhide.

Note You need to log in before you can comment on or make changes to this bug.