Hi,
On 2013-02-05, Simon King <
simon...@uni-jena.de> wrote:
> For me, sage-5.7.beta2 crashes on quitting Sage, when I build it with
> SAGE_DEBUG=yes (and the fixes for the debug version stated in #13864).
> This is *without* MALLOC_CHECK_.
>
> What I get on exit is pasted below. I don't know if installing the gdb spkg
> would give more info.
It does give more, but I don't really understand what to learn from the
backtrace below. At least, there are no weak references mentioned, which
always sounds like a good news to me, for some reason...
Cheers,
Simon
Stack backtrace
---------------
No symbol table info available.
#1 0x00007f9a7385d250 in print_enhanced_backtrace () from /home/simon/SAGE/debug/sage-5.7.beta2/local/lib/libcsage.so
No symbol table info available.
#2 0x00007f9a7385d2c2 in sigdie () from /home/simon/SAGE/debug/sage-5.7.beta2/local/lib/libcsage.so
No symbol table info available.
#3 0x00007f9a7385cae3 in sage_signal_handler () from /home/simon/SAGE/debug/sage-5.7.beta2/local/lib/libcsage.so
No symbol table info available.
#4 <signal handler called>
No symbol table info available.
#5 0x00007f9a77039ebe in _PyObject_DebugDumpAddress (p=0x1d5d660) at Objects/obmalloc.c:1649
q = 0x1d5d660 ""
tail = 0xfe00000001d5d65f <Address 0xfe00000001d5d65f out of bounds>
nbytes = 18302628885633695743
serial = 30791264
i = 0
ok = 1
id = -53 '\313'
#6 0x00007f9a77039c1e in _PyObject_DebugCheckAddressApi (api=111 'o', p=0x1d5d660) at Objects/obmalloc.c:1590
q = 0x1d5d660 ""
msgbuf = "bad ID: Allocated using API '\313', verified using API 'o'\000\000\000\000\000\000\000\000"
msg = 0x7fffaaef2030 "bad ID: Allocated using API '\313', verified using API 'o'"
nbytes = 28691032
tail = 0x67 <Address 0x67 out of bounds>
i = 32767
id = -53 '\313'
#7 0x00007f9a770398de in _PyObject_DebugFreeApi (api=111 'o', p=0x1d5d660) at Objects/obmalloc.c:1478
q = 0x1d5d650 "\375\377\377\377\377\377\377\377\313\313\313\313\313\313\313", <incomplete sequence \313>
nbytes = 28720288
#8 0x00007f9a7703978a in _PyObject_DebugFree (p=0x1d5d660) at Objects/obmalloc.c:1422
No locals.
#9 0x00007f9a641a9292 in __pyx_f_4sage_5rings_7integer_fast_tp_dealloc (__pyx_v_o=0x1d5d660) at sage/rings/integer.c:35775
__pyx_t_1 = 0
#10 0x00007f9a77037be4 in _Py_Dealloc (op=0x1d5d660) at Objects/object.c:2243
dealloc = 0x7f9a641a91c4 <__pyx_f_4sage_5rings_7integer_fast_tp_dealloc>
#11 0x00007f9a77028e8e in dict_dealloc (mp=0x1d9f680) at Objects/dictobject.c:985
ep = 0x1da38c8
fill = 25
#12 0x00007f9a77037be4 in _Py_Dealloc (op=0x1d9f680) at Objects/object.c:2243
dealloc = 0x7f9a77028d5b <dict_dealloc>
#13 0x00007f9a77028e8e in dict_dealloc (mp=0x673ba0) at Objects/dictobject.c:985
ep = 0x1c07048
fill = 277
#14 0x00007f9a77037be4 in _Py_Dealloc (op=0x673ba0) at Objects/object.c:2243
dealloc = 0x7f9a77028d5b <dict_dealloc>
#15 0x00007f9a770f1b45 in _PyImport_Fini () at Python/import.c:244
No locals.
#16 0x00007f9a77105b86 in Py_Finalize () at Python/pythonrun.c:470
interp = 0x602010
tstate = 0x6020a0
#17 0x00007f9a7712276b in Py_Main (argc=3, argv=0x7fffaaef2488) at Modules/main.c:664
c = -1
sts = 0
command = 0x0
filename = 0x7fffaaef3861 "/home/simon/SAGE/debug/sage-5.7.beta2/local/bin/sage-ipython"
module = 0x0
fp = 0x684a90
p = 0x0
unbuffered = 0
skipfirstline = 0
stdin_is_interactive = 1
help = 0
version = 0
saw_unbuffered_flag = 0
cf = {cf_flags = 0}
#18 0x00000000004007b4 in main (argc=3, argv=0x7fffaaef2488) at ./Modules/python.c:23
No locals.
Cython backtrace (newest frame = last)
--------------------------------------
#0 0x0000000000400794 in main()
#1 0x00007f9a771218aa in Py_Main()
#2 0x00007f9a77105b2e in Py_Finalize()
#3 0x00007f9a770f1ac5 in _PyImport_Fini()
#4 0x00007f9a77037baf in _Py_Dealloc()
#5 0x00007f9a77028d5b in dict_dealloc()
#6 0x00007f9a77037baf in _Py_Dealloc()
#7 0x00007f9a77028d5b in dict_dealloc()
#8 0x00007f9a77037baf in _Py_Dealloc()
#9 0x00007f9a641a91c4 in fast_tp_dealloc() at /home/simon/SAGE/debug/sage-5.7.beta2/devel/sage-main/sage/rings/integer.pyx:6053
6048
6049 # Free the object. This assumes that Py_TPFLAGS_HAVE_GC is not
6050 # set. If it was set another free function would need to be
6051 # called.
6052
> 6053 PyObject_FREE(o)
6054
6055
6056 hook_fast_tp_functions()
6057 from sage.misc.allocator cimport hook_tp_functions
#10 0x00007f9a7703976d in _PyObject_DebugFree()
#11 0x00007f9a770398a8 in _PyObject_DebugFreeApi()
#12 0x00007f9a77039b0a in _PyObject_DebugCheckAddressApi()
#13 0x00007f9a77039c2c in _PyObject_DebugDumpAddress()
#14 0x00007f9a77402a10 in __restore_rt()
#15 0x00007f9a7385c94a in sage_signal_handler()
#16 0x00007f9a7385d252 in sigdie()
#17 0x00007f9a7385d12b in print_enhanced_backtrace()
#18 0x00007f9a76d6e860 in waitpid()