#5970: [with patch, needs review] Weak references in Polynomial Ring cache
---------------------------------+------------------------------------------
Reporter: SimonKing | Owner: malb
Type: defect | Status: new
Priority: critical | Milestone: sage-4.1.2
Component: commutative algebra | Keywords: polynomial ring cache weak
reference
Reviewer: | Author:
Merged: |
---------------------------------+------------------------------------------
Comment(by malb):
Valgrind output for {{{-O0 -ggdb}}}:
{{{
==27448== Invalid write of size 8
==27448== at 0xA436E60: reset_traps (init.c:510)
==27448== by 0xA438A5B: err_leave (init.c:984)
==27448== by 0x11674DE6:
__pyx_f_4sage_4libs_4pari_3gen_12PariInstance_GEN_to_str (gen.c:39989)
==27448== by 0x116048BD: __pyx_pf_4sage_4libs_4pari_3gen_3gen___repr__
(gen.c:3971)
==27448== by 0x44D91E: _PyObject_Str (object.c:424)
==27448== by 0x44D9D2: PyObject_Str (object.c:445)
==27448== by 0x45A0D9: string_new (stringobject.c:4075)
==27448== by 0x4682D2: type_call (typeobject.c:731)
==27448== by 0x41A95C: PyObject_Call (abstract.c:2492)
==27448== by 0x49C3FE: PyEval_EvalFrameEx (ceval.c:3917)
==27448== by 0x4A0908: PyEval_EvalCodeEx (ceval.c:2968)
==27448== by 0x49EFC7: PyEval_EvalFrameEx (ceval.c:3802)
==27448== by 0x4A0908: PyEval_EvalCodeEx (ceval.c:2968)
==27448== by 0x4F74DC: function_call (funcobject.c:524)
==27448== by 0x41A95C: PyObject_Call (abstract.c:2492)
==27448== by 0x4222D3: instancemethod_call (classobject.c:2579)
==27448== by 0x41A95C: PyObject_Call (abstract.c:2492)
==27448== by 0xB7DBC1F:
__pyx_pf_4sage_9structure_11sage_object_10SageObject___repr__
(sage_object.c:1387)
==27448== by 0x41A95C: PyObject_Call (abstract.c:2492)
==27448== by 0x4991B5: PyEval_CallObjectWithKeywords (ceval.c:3575)
==27448== by 0x47118D: slot_tp_repr (typeobject.c:5295)
==27448== by 0x44D91E: _PyObject_Str (object.c:424)
==27448== by 0x45F3F5: PyString_Format (stringobject.c:4848)
==27448== by 0x41AFB0: binary_op1 (abstract.c:917)
==27448== by 0x41D97D: PyNumber_Remainder (abstract.c:969)
==27448== Address 0x5c5bdd8 is 0 bytes inside a block of size 424 free'd
==27448== at 0x4C2261F: free (vg_replace_malloc.c:323)
==27448== by 0xA4379AB: pari_close_opts (init.c:715)
==27448== by 0xA437A4E: pari_close (init.c:729)
==27448== by 0x1166D250:
__pyx_pf_4sage_4libs_4pari_3gen_12PariInstance__unsafe_deallocate_pari_stack
(gen.c:36617)
==27448== by 0x49F050: PyEval_EvalFrameEx (ceval.c:3690)
==27448== by 0x4A0908: PyEval_EvalCodeEx (ceval.c:2968)
==27448== by 0x49EFC7: PyEval_EvalFrameEx (ceval.c:3802)
==27448== by 0x4A0908: PyEval_EvalCodeEx (ceval.c:2968)
==27448== by 0x4A0A21: PyEval_EvalCode (ceval.c:522)
==27448== by 0x4C03AB: PyRun_FileExFlags (pythonrun.c:1335)
==27448== by 0x4C06DA: PyRun_SimpleFileExFlags (pythonrun.c:931)
==27448== by 0x416215: Py_Main (main.c:599)
==27448== by 0x56EA5C5: (below main) (in /lib/libc-2.9.so)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5970#comment:8>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---