Code Comments
Programming Forum and web based access to our favorite programming groups.From documentation of v2.010601: A memory leak on the PARI stack was possible in a rare situaton: if a PARI function returning a value which is not on stack (very few possibilities: gnil, gun etc.) is called when no Math::Pari temporary values are on stack, the GENs created for the function arguments would leak. I think some people saw this leak before, but since it was so hard to reproduce, suffered from it silently. Please retest Math::Pari if you had "PARI stack overflow" errors. Thanks for your patience, Ilya P.S. It can take several hours for this version to propagate to CPAN. P.P.S. Actual code to reproduce the leak is very simple; I found it mostly by luck (or a misprint ;-). Do $z = PARI 0; LOOP_OVER_THIS: $x = 256*$z; The PARI code for multiplication recognizes multiplication by 0, so it returns the globally defined constant 0, which prohibits freeing the result of conversion of Perl value 256 to a PARI value.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.