#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 vbraun):
Well ideally we'd ship Sage in a state where it at least starts up with a
debug build. If I find something thats particularly useful in debugging
then I'll document it. For now:
{{{
(sage-sh) vbraun@volker-desktop:sage-5.6.beta0$ gdb python
...
(gdb) run -v
...
>>> import sage.all_cmdline
...
Fatal Python error: UNREF invalid object
Program received signal SIGABRT, Aborted.
0x0000003da9835ba5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x0000003da9835ba5 in raise () from /lib64/libc.so.6
#1 0x0000003da9837358 in abort () from /lib64/libc.so.6
#2 0x00007ffff7d1a63b in Py_FatalError (msg=0x7ffff7d63eb1 "UNREF invalid
object")
at Python/pythonrun.c:1677
#3 0x00007ffff7c49f18 in _Py_ForgetReference (op=0x21194c0) at
Objects/object.c:2223
#4 0x00007ffff7c49f6b in _Py_Dealloc (op=0x21194c0) at
Objects/object.c:2242
#5 0x00007fffd9de6e7c in initpadic_ZZ_pX_element () at
sage/rings/padics/padic_ZZ_pX_element.cpp:9634
#6 0x00007ffff7d0a496 in _PyImport_LoadDynamicModule (
name=0x7ffffffe4360 "sage.rings.padics.padic_ZZ_pX_element",
pathname=0x7ffffffe3260
"/home/vbraun/opt/sage-5.6.beta0/local/lib/python2.7/site-
packages/sage/rings/padics/padic_ZZ_pX_element.so", fp=0x20d23b0) at
./Python/importdl.c:53
...
(gdb) frame 5
#5 0x00007fffd9de6e7c in initpadic_ZZ_pX_element () at
sage/rings/padics/padic_ZZ_pX_element.cpp:9634
9634 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
(gdb) l
9629 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9630 __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__one); if
(unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34;
__pyx_clineno = __LINE__; goto __pyx_L1_error;}
9631 __Pyx_GOTREF(__pyx_t_2);
9632 __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if
(unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34;
__pyx_clineno = __LINE__; goto __pyx_L1_error;}
9633 __Pyx_GOTREF(__pyx_t_3);
9634 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9635 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9636 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__big, __pyx_t_3) < 0)
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__;
goto __pyx_L1_error;}
9637 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13864#comment:15>
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.