Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Memory Leak in Math::Pari
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ilya Zakharevich
12-18-04 05:48 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Modules archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:33 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.