#13864: Configure Python with pydebug when SAGE_DEBUG is set
-------------------------------------+--------------------------------------
Reporter: jpflori | Owner: jason
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-5.6
Component: misc | Resolution:
Keywords: python spkg | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun
Authors: Jean-Pierre Flori | Merged in:
Dependencies: #13865 | Stopgaps:
-------------------------------------+--------------------------------------
Comment (by SimonKing):
Replying to [comment:26 jpflori]:
> Replying to [comment:24 vbraun]:
> > Replying to [comment:17 SimonKing]:
> > > Interestingly, the error on my laptop looks different from what
Volker reported in comment:15:
> > > ...
> > > dlopen("/home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7
/site-packages/sage/rings/integer.so", 2);
> > > python: Modules/gcmodule.c:326: visit_decref: Assertion
`gc->gc.gc_refs != 0' failed.
> > > ...
> >
> > You die in a garbage collection cycle, presumably because you have <
32 GB RAM (= my desktop). So the garbage collector runs earlier.
> Are you sure?
> I'd say this really looks like the weakref mess fixed up in 0.17.3.
After upgrading to Cython 0.17.3, I get an error that seems to confirm
what Volker stated.
So, now we have to try and find out where the padics problem comes from.
Note, however, that in pure python I still get a "harmless" import error
when I want to do
{{{
Python 2.7.3 (default, Dec 26 2012, 19:09:45)
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sage.rings.integer_ring import IntegerRing
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "integer.pxd", line 9, in init sage.rings.integer_ring
(sage/rings/integer_ring.c:12178)
File "integer.pyx", line 170, in init sage.rings.integer
(sage/rings/integer.c:38390)
File "/home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7/site-
packages/sage/rings/infinity.py", line 200, in <module>
import sage.rings.rational
File "fast_arith.pxd", line 5, in init sage.rings.rational
(sage/rings/rational.c:27828)
File "fast_arith.pyx", line 51, in init sage.rings.fast_arith
(sage/rings/fast_arith.c:8060)
ImportError: cannot import name ZZ
[133346 refs]
>>> quit()
}}}
Hence, no crash, but something is wrong with the ring of integers,
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13864#comment:28>
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.