On Sat, Jul 25, 2009 at 5:08 PM, Stephen Hartke<har...@gmail.com> wrote:
> Might this be related to how binomial is evaluated using GiNaC?  Similar
> problems occur when replacing binomial with log.

Valgrind says yes:


==26568== 4 bytes in 1 blocks are definitely lost in loss record 35 of 3,312
==26568==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==26568==    by 0x71A0270: __pyx_f_4sage_5rings_7integer_fast_tp_new
(integer.c:28497)
==26568==    by 0x719B3DF:
__pyx_f_4sage_5rings_7integer_8int_to_Z__call_ (integer.c:28008)
==26568==    by 0x5AB90AA:
__pyx_pf_4sage_9structure_6parent_6Parent___call__ (parent.c:4130)
==26568==    by 0x805D596: PyObject_Call (abstract.c:1861)
==26568==    by 0x80CCFB4: PyEval_EvalFrameEx (ceval.c:3823)
==26568==    by 0x80D0104: PyEval_EvalCodeEx (ceval.c:2875)
==26568==    by 0x8116CF0: function_call (funcobject.c:517)
==26568==    by 0x805D596: PyObject_Call (abstract.c:1861)
==26568==    by 0x806377E: instancemethod_call (classobject.c:2519)
==26568==    by 0x805D596: PyObject_Call (abstract.c:1861)
==26568==    by 0x7E681FC:
__pyx_f_4sage_5rings_10polynomial_18polynomial_element_10Polynomial__hash_c
(polynomial_element.c:8163)
==26568==    by 0x7DE8301:
__pyx_pf_4sage_5rings_10polynomial_18polynomial_element_10Polynomial___hash__
(polynomial_element.c:8113)
==26568==    by 0x949106F:
__pyx_pf_4sage_5rings_12number_field_30number_field_element_quadratic_28NumberFieldElement_quadratic___hash__(_object*)
(number_field_element_quadratic.cpp:7281)
==26568==    by 0xAA1F7FA: GiNaC::Number_T::hash() const (numeric.cpp:797)
==26568==    by 0xAA1F94F: GiNaC::numeric::calchash() const (numeric.cpp:1788)
==26568==    by 0xA919E5A: GiNaC::basic::is_equal(GiNaC::basic const&)
const (basic.h:264)
==26568==    by 0xA9ED4B5: GiNaC::mul::eval(int) const (ex.h:348)
==26568==    by 0xA947B9C:
GiNaC::ex::construct_from_basic(GiNaC::basic const&) (ex.cpp:312)
==26568==    by 0xAA26E21: GiNaC::operator*(GiNaC::ex const&,
GiNaC::ex const&) (ex.h:267)
==26568==    by 0xA9A5B38: GiNaC::exp_eval(GiNaC::ex const&)
(inifcns_trans.cpp:83)
==26568==    by 0xA96102C: GiNaC::function::eval(int) const (function.cpp:1388)
==26568==    by 0xA947B9C:
GiNaC::ex::construct_from_basic(GiNaC::basic const&) (ex.cpp:312)
==26568==    by 0xAB09757:
__pyx_pf_4sage_8symbolic_10expression_10Expression_exp(_object*,
_object*) (ex.h:267)
==26568==    by 0x80CE962: PyEval_EvalFrameEx (ceval.c:3596)


-- 
Carlo Hamalainen
http://carlo-hamalainen.net

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to