#9958: Upgrade python to 2.7
---------------------------+------------------------------------------------
   Reporter:  mhampton     |       Owner:  tbd       
       Type:  enhancement  |      Status:  needs_work
   Priority:  major        |   Milestone:            
  Component:  packages     |    Keywords:            
     Author:               |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by fbissey):

 A little bit more details, these are curious:
 {{{
 sage -t -long  -force_lib devel/sage-
 main/sage/rings/padics/padic_capped_relative_element.pyx
 **********************************************************************
 File "/usr/share/sage/devel/sage-
 main/sage/rings/padics/padic_capped_relative_element.pyx", line 2297:
     sage: hash(R(-1))
 Expected:
     95367431640624
 Got:
     1977800240
 }}}

 {{{
 sage -t -long  -force_lib devel/sage-
 main/sage/combinat/words/suffix_trees.py
 **********************************************************************
 File "/usr/share/sage/devel/sage-
 main/sage/combinat/words/suffix_trees.py", line 1345:
     sage: t.trie_type_dict() == dict([[(0, W("a")), 4], [(0, W("b")), 3],
 [(3, W("a")), 2], [(4, W("b")), 5], [(5, W("a")), 1]])
 Expected:
     True
 Got:
     False
 **********************************************************************
 sage -t -long  -force_lib devel/sage-
 main/sage/combinat/words/suffix_trees.py
 **********************************************************************
 File "/usr/share/sage/devel/sage-
 main/sage/combinat/words/suffix_trees.py", line 1345:
     sage: t.trie_type_dict() == dict([[(0, W("a")), 4], [(0, W("b")), 3],
 [(3, W("a")), 2], [(4, W("b")), 5], [(5, W("a")), 1]])
 Expected:
     True
 Got:
     False
 **********************************************************************
 }}}
 This one doesn't worry me as much but should be looked at
 {{{
 sage -t -long  -force_lib devel/sage-
 main/sage/combinat/words/nfactor_enumerable_word.py
 **********************************************************************
 File "/usr/share/sage/devel/sage-
 main/sage/combinat/words/nfactor_enumerable_word.py", line 22:
     sage: it.next()
 Expected:
     word: 5645
 Got:
     word: 4564
 **********************************************************************
 File "/usr/share/sage/devel/sage-
 main/sage/combinat/words/nfactor_enumerable_word.py", line 24:
     sage: it.next()
 Expected:
     word: 4564
 Got:
     word: 5645
 **********************************************************************
 }}}

 {{{
 sage -t -long  -force_lib devel/sage-main/sage/structure/parent.pyx
 **********************************************************************
 File "/usr/share/sage/devel/sage-main/sage/structure/parent.pyx", line
 634:
     sage: CCls()._test_eq()
 Expected:
     Traceback (most recent call last):
     ...
     AssertionError: <class '__main__.CCls'> == None
 Got nothing
 }}}

 The following were killed:
 {{{
 sage -t -long  -force_lib devel/sage-main/sage/rings/homset.py #
 Killed/crashed
 sage -t -long  -force_lib devel/sage-main/sage/schemes/generic/scheme.py #
 Killed/crashed
 }}}
 In my original run
 {{{
 sage -t -long -force_lib "devel/sage-main/sage/rings/morphism.pyx"
 }}}
 also got killed but not in a subsequent run after I adopted a small change
 in sage-doctest to get rid of PYTHONWARNINGS=default in sage-env.

 Example of killed test:
 {{{
 sage -t -long -verbose -force_lib "devel/sage-main/sage/rings/homset.py"
 ...

 Trying:
     phi = S.hom([b,a])###line 141:_sage_    >>> phi = S.hom([b,a])
 Expecting nothing
 ok
 Trying:
     phi == loads(dumps(phi))###line 142:_sage_    >>> phi ==
 loads(dumps(phi))
 Expecting:
     True
 /usr/lib64/libcsage.so(print_backtrace+0x24)[0x7f83de940534]
 /usr/lib64/libcsage.so(sigdie+0x1d)[0x7f83de9405cd]
 /usr/lib64/libcsage.so(sage_signal_handler+0x131)[0x7f83de940741]
 /lib64/libpthread.so.0(+0xfae0)[0x7f83e2385ae0]
 
/usr/lib64/libsingular.so.3(_Z9id_DeletePP10sip_sidealP9sip_sring+0x53)[0x7f83c5c48383]
 /usr/lib64/python2.7/site-
 packages/sage/libs/singular/groebner_strategy.so(+0x388d)[0x7f83ad27488d]
 /usr/lib64/libpython2.7.so.1.0(PyDict_Clear+0xfc)[0x7f83e261597c]
 /usr/lib64/libpython2.7.so.1.0(+0x82a09)[0x7f83e2615a09]
 /usr/lib64/libpython2.7.so.1.0(+0x112e7e)[0x7f83e26a5e7e]
 /usr/lib64/libpython2.7.so.1.0(_PyObject_GC_Malloc+0x11c)[0x7f83e26a684c]
 /usr/lib64/libpython2.7.so.1.0(_PyObject_GC_New+0xd)[0x7f83e26a685d]
 /usr/lib64/libpython2.7.so.1.0(+0x7fe11)[0x7f83e2612e11]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/python2.7/site-
 packages/sage/rings/polynomial/polydict.so(+0x168c3)[0x7f83c8f378c3]
 /usr/lib64/libpython2.7.so.1.0(+0xa0468)[0x7f83e2633468]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/python2.7/site-
 packages/sage/rings/polynomial/polydict.so(+0xa451)[0x7f83c8f2b451]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 
/usr/lib64/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47)[0x7f83e2670ca7]
 /usr/lib64/python2.7/lib-dynload/cPickle.so(+0x5f06)[0x7f83dcb2df06]
 /usr/lib64/python2.7/lib-dynload/cPickle.so(+0xaf47)[0x7f83dcb32f47]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/python2.7/site-
 packages/sage/structure/sage_object.so(+0x152fc)[0x7f83dc7012fc]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x56bc)[0x7f83e267692c]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f83e26782f2]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5a78)[0x7f83e2676ce8]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(+0x71282)[0x7f83e2604282]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/libpython2.7.so.1.0(+0x5a24f)[0x7f83e25ed24f]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x491d)[0x7f83e2675b8d]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x522e)[0x7f83e267649e]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(+0x71282)[0x7f83e2604282]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/libpython2.7.so.1.0(+0x5a24f)[0x7f83e25ed24f]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x491d)[0x7f83e2675b8d]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x522e)[0x7f83e267649e]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(+0x7138b)[0x7f83e260438b]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/libpython2.7.so.1.0(+0x5a24f)[0x7f83e25ed24f]
 /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f83e25de453]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x491d)[0x7f83e2675b8d]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x522e)[0x7f83e267649e]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x522e)[0x7f83e267649e]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x522e)[0x7f83e267649e]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x88d)[0x7f83e26781dd]
 /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f83e26782f2]
 /usr/lib64/libpython2.7.so.1.0(+0xff25c)[0x7f83e269225c]
 /usr/lib64/libpython2.7.so.1.0(PyRun_FileExFlags+0x90)[0x7f83e2693090]
 /usr/lib64/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0x1ff)[0x7f83e2693c6f]
 /usr/lib64/libpython2.7.so.1.0(Py_Main+0xb53)[0x7f83e26a4fc3]
 /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f83e201cb6d]
 /usr/bin/python2.7[0x4008a9]

 ------------------------------------------------------------------------
 Unhandled SIGSEGV: A segmentation fault 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.
 ------------------------------------------------------------------------
 The doctested process was killed by signal 11
          [2.5 s]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9958#comment:18>
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