#13864: Configure Python with  pydebug when SAGE_DEBUG is set
----------------------------------------------------------+-----------------
       Reporter:  jpflori                                 |         Owner:  
jason                           
           Type:  task                                    |        Status:  
needs_work                      
       Priority:  major                                   |     Milestone:  
sage-pending                    
      Component:  misc                                    |    Resolution:      
                            
       Keywords:  python spkg                             |   Work issues:  
make sure Sage builds and starts
Report Upstream:  N/A                                     |     Reviewers:  
Volker Braun                    
        Authors:  Jean-Pierre Flori                       |     Merged in:      
                            
   Dependencies:  #13865, #13867, #13868, #13876, #13832  |      Stopgaps:      
                            
----------------------------------------------------------+-----------------

Comment (by SimonKing):

 I am running "make testall".

 So far, the tests don't look bad: I see some failures of optional tests -
 I don't know why they are executed? In the first run, I still had
 SAGE_DEBUG=yes, but repeating it without SAGE_DEBUG I still see that
 optional tests were executed.

 Is that because of "make testall" versus "make test"?

 Interestingly, it is in the ''optional'' tests that I see instances of
 negative refcounts.
 {{{
     sage: magma('GF(5)!1 eq Rationals()!1')            # optional magma
 required
 Exception raised:
     Traceback (most recent call last):
       File
 "/home/simon/SAGE/debug/sage-5.6.beta1/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/home/simon/SAGE/debug/sage-5.6.beta1/local/bin/sagedoctest.py", line 38,
 in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/home/simon/SAGE/debug/sage-5.6.beta1/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_28[2]>", line 1, in <module>
         magma('GF(5)!1 eq Rationals()!1')            # optional magma
 required###line 762:
     sage: magma('GF(5)!1 eq Rationals()!1')            # optional magma
 required
       File "/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python/site-
 packages/sage/interfaces/magma.py", line 752, in __call__
         A = Expect.__call__(self, x)
       File "/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python/site-
 packages/sage/interfaces/interface.py", line 195, in __call__
         return cls(self, x, name=name)
       File "/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python/site-
 packages/sage/interfaces/expect.py", line 1308, in __init__
         raise TypeError, x
     TypeError: Unable to start magma
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libcsage.so(print_backtrace+0x31)[0x7fa5e6666c87]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libcsage.so(sigdie+0x14)[0x7fa5e6666cb9]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libcsage.so(sage_signal_handler+0x1dd)[0x7fa5e666685d]
 /lib64/libpthread.so.0(+0xfd00)[0x7fa5e8545d00]
 /lib64/libc.so.6(gsignal+0x35)[0x7fa5e7b7cd95]
 /lib64/libc.so.6(abort+0x17b)[0x7fa5e7b7e2ab]
 /lib64/libc.so.6(+0x2d8fe)[0x7fa5e7b758fe]
 /lib64/libc.so.6(+0x2d9a2)[0x7fa5e7b759a2]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x1a69c9)[0x7fa5e88f99c9]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0xb0bce)[0x7fa5e8803bce]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x1a6a3e)[0x7fa5e88f9a3e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x1a7a73)[0x7fa5e88faa73]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x1a7d96)[0x7fa5e88fad96]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(_PyObject_GC_Malloc+0xaa)[0x7fa5e88fba4a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyType_GenericAlloc+0x5c)[0x7fa5e88331b7]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyType_GenericNew+0x2d)[0x7fa5e8833341]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0xed7cd)[0x7fa5e88407cd]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyCFunction_Call+0xc0)[0x7fa5e8808088]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ab75)[0x7fa5e88adb75]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x10e5)[0x7fa5e88ab0aa]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x913fb)[0x7fa5e87e43fb]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15c113)[0x7fa5e88af113]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7ea2)[0x7fa5e88a894b]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x10e5)[0x7fa5e88ab0aa]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x913fb)[0x7fa5e87e43fb]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x6e311)[0x7fa5e87c1311]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/lib-
 dynload/cPickle.so(+0x10b73)[0x7fa5e31abb73]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/lib-
 dynload/cPickle.so(+0x13a46)[0x7fa5e31aea46]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/lib-
 dynload/cPickle.so(+0x14bf9)[0x7fa5e31afbf9]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15a75c)[0x7fa5e88ad75c]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15b08a)[0x7fa5e88ae08a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad76)[0x7fa5e88add76]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15b08a)[0x7fa5e88ae08a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad76)[0x7fa5e88add76]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15b08a)[0x7fa5e88ae08a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad76)[0x7fa5e88add76]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x10e5)[0x7fa5e88ab0aa]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x913fb)[0x7fa5e87e43fb]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x6e311)[0x7fa5e87c1311]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x524a6)[0x7fa5e87a54a6]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_CallMethod+0x19c)[0x7fa5e87a58b8]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/site-
 
packages/ZODB3-3.7.0-py2.7-linux-x86_64.egg/persistent/cPersistence.so(+0x2211)[0x7fa5b0931211]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/site-
 
packages/ZODB3-3.7.0-py2.7-linux-x86_64.egg/persistent/cPersistence.so(+0x48c8)[0x7fa5b09338c8]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/site-
 
packages/ZODB3-3.7.0-py2.7-linux-x86_64.egg/BTrees/_OOBTree.so(+0xb454)[0x7fa5b0b42454]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python2.7/site-
 
packages/ZODB3-3.7.0-py2.7-linux-x86_64.egg/BTrees/_OOBTree.so(+0xf966)[0x7fa5b0b46966]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15a943)[0x7fa5e88ad943]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15b08a)[0x7fa5e88ae08a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad76)[0x7fa5e88add76]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15b08a)[0x7fa5e88ae08a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad76)[0x7fa5e88add76]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15b08a)[0x7fa5e88ae08a]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad76)[0x7fa5e88add76]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x10e5)[0x7fa5e88ab0aa]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x913fb)[0x7fa5e87e43fb]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x6e311)[0x7fa5e87c1311]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python/site-
 packages/sage/structure/factory.so(+0x4081)[0x7fa5d2fe7081]
 /home/simon/SAGE/debug/sage-5.6.beta1/local/lib/python/site-
 packages/sage/structure/factory.so(+0x3da7)[0x7fa5d2fe6da7]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ba58)[0x7fa5e88aea58]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad92)[0x7fa5e88add92]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7c11)[0x7fa5e88a86ba]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x10e5)[0x7fa5e88ab0aa]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x5a)[0x7fa5e88a0a88]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15d693)[0x7fa5e88b0693]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x437d)[0x7fa5e88a4e26]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x10e5)[0x7fa5e88ab0aa]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x913fb)[0x7fa5e87e43fb]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x6e311)[0x7fa5e87c1311]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(PyObject_Call+0x83)[0x7fa5e87a533e]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ba58)[0x7fa5e88aea58]
 
/home/simon/SAGE/debug/sage-5.6.beta1/local/lib/libpython2.7.so.1.0(+0x15ad92)[0x7fa5e88add92]
 ...
 python(main+0x20)[0x4007b4]
 /lib64/libc.so.6(__libc_start_main+0xed)[0x7fa5e7b6923d]
 python[0x4006d9]

 ------------------------------------------------------------------------
 Unhandled SIGABRT: An abort() occurred in Sage.
 This probably occurred because a *compiled* component of Sage has a bug
 in it and is not properly wrapped with sig_on(), sig_off(). You might
 want to run Sage under gdb with 'sage -gdb' to debug this.
 Sage will now terminate.
 ------------------------------------------------------------------------
 }}}

 Some tests actually opened a pdf viewer - at least with SAGE_DEBUG.

 And some doctest processes were killed, such as
 {{{
 sage -t  --optional -force_lib "devel/sage/doc/en/tutorial/tour_rings.rst"
 The doctested process was killed by signal 6
          [5.5 s]
 sage -t  --optional -force_lib
 "devel/sage/doc/en/tutorial/interactive_shell.rst"
          [3.8 s]
 sage -t  --optional -force_lib
 "devel/sage/doc/en/tutorial/tour_coercion.rst"
 The doctested process was killed by signal 6
          [3.2 s]
 }}}
 In the latter cases, I see best chances to see an effect of #715 and
 friends.

 I am retrying now after unsetting SAGE_DEBUG and only doing "make test",
 not "make testall".

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13864#comment:73>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to