#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):

 Unfortunately, the new zodb spkg from #10352 does not solve the problem:
 {{{
 sage: sage.databases.conway.ConwayPolynomials().has_polynomial(3,2)
 python: Modules/gcmodule.c:326: visit_decref: Assertion `gc->gc.gc_refs !=
 0' failed.

 Program received signal SIGABRT, Aborted.
 0x00007ffff6d95d95 in raise () from /lib64/libc.so.6
 (gdb) bt
 #0  0x00007ffff6d95d95 in raise () from /lib64/libc.so.6
 #1  0x00007ffff6d972ab in abort () from /lib64/libc.so.6
 #2  0x00007ffff6d8e8fe in __assert_fail_base () from /lib64/libc.so.6
 #3  0x00007ffff6d8e9a2 in __assert_fail () from /lib64/libc.so.6
 #4  0x00007ffff7b129c9 in visit_decref (op=0x688ee28, data=0x0) at
 Modules/gcmodule.c:326
 #5  0x00007ffff7a1cbce in dict_traverse (op=0x637f690,
 visit=0x7ffff7b1290e <visit_decref>, arg=0x0) at Objects/dictobject.c:2088
 #6  0x00007ffff7b12a3e in subtract_refs (containers=0x7ffff7dc14e0
 <generations>) at Modules/gcmodule.c:345
 #7  0x00007ffff7b13a73 in collect (generation=0) at Modules/gcmodule.c:874
 #8  0x00007ffff7b13d96 in collect_generations () at Modules/gcmodule.c:996
 #9  0x00007ffff7b14a4a in _PyObject_GC_Malloc (basicsize=120) at
 Modules/gcmodule.c:1457
 #10 0x00007ffff7a4c1b7 in PyType_GenericAlloc (type=0x7fffc5af4660
 <BucketType>, nitems=0) at Objects/typeobject.c:753
 #11 0x00007ffff7a4c341 in PyType_GenericNew (type=0x7fffc5af4660
 <BucketType>, args=0x7ffff7f90060, kwds=0x0) at Objects/typeobject.c:778
 #12 0x00007ffff7a597cd in tp_new_wrapper (self=0x7fffc5af4660
 <BucketType>, args=0x7ffff7f90060, kwds=0x0) at Objects/typeobject.c:4779
 #13 0x00007ffff7a21088 in PyCFunction_Call (func=0x61a0948, arg=0xf1f3e0,
 kw=0x0) at Objects/methodobject.c:85
 #14 0x00007ffff7ac6b75 in call_function (pp_stack=0x7fffffff8190, oparg=1)
 at Python/ceval.c:4021
 #15 0x00007ffff7ac16ba in PyEval_EvalFrameEx (f=0x63727d0, throwflag=0) at
 Python/ceval.c:2666
 #16 0x00007ffff7ac40aa in PyEval_EvalCodeEx (co=0x64f70f0,
 globals=0x6273ce0, locals=0x0, args=0xe20688, argcount=3, kws=0x0,
 kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
 #17 0x00007ffff79fd3fb in function_call (func=0x6500060, arg=0xe20660,
 kw=0x0) at Objects/funcobject.c:526
 #18 0x00007ffff79be33e in PyObject_Call (func=0x6500060, arg=0xe20660,
 kw=0x0) at Objects/abstract.c:2529
 #19 0x00007ffff7ac8113 in ext_do_call (func=0x6500060,
 pp_stack=0x7fffffff8698, flags=1, na=1, nk=0) at Python/ceval.c:4334
 #20 0x00007ffff7ac194b in PyEval_EvalFrameEx (f=0x63725b0, throwflag=0) at
 Python/ceval.c:2705
 #21 0x00007ffff7ac40aa in PyEval_EvalCodeEx (co=0x64f7040,
 globals=0x6273ce0, locals=0x0, args=0x6516cb8, argcount=2, kws=0x0,
 kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
 #22 0x00007ffff79fd3fb in function_call (func=0x64eff78, arg=0x6516c90,
 kw=0x0) at Objects/funcobject.c:526
 #23 0x00007ffff79be33e in PyObject_Call (func=0x64eff78, arg=0x6516c90,
 kw=0x0) at Objects/abstract.c:2529
 #24 0x00007ffff79da311 in instancemethod_call (func=0x64eff78,
 arg=0x6516c90, kw=0x0) at Objects/classobject.c:2578
 #25 0x00007ffff79be33e in PyObject_Call (func=0x619e260, arg=0x81a840,
 kw=0x0) at Objects/abstract.c:2529
 #26 0x00007ffff2f92b73 in load_binpersid (self=0x62c9a58) at
 
/home/simon/SAGE/debug/sage-5.6.beta1/spkg/build/python-2.7.3.p5/src/Modules/cPickle.c:4083
 #27 0x00007ffff2f95a46 in load (self=0x62c9a58) at
 
/home/simon/SAGE/debug/sage-5.6.beta1/spkg/build/python-2.7.3.p5/src/Modules/cPickle.c:4927
 #28 0x00007ffff2f96bf9 in Unpickler_load (self=0x62c9a58, unused=0x0) at
 
/home/simon/SAGE/debug/sage-5.6.beta1/spkg/build/python-2.7.3.p5/src/Modules/cPickle.c:5393
 ...
 }}}

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