Skip Menu |

This queue is for tickets about the Params-Validate CPAN distribution.

Report information
The Basics
Id: 4280
Status: resolved
Priority: 0/
Queue: Params-Validate

People
Owner: Nobody in particular
Requestors: cubic [...] acronis.ru
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.68
Fixed in: 0.69



Subject: Memory leak in XS version
Small test script attached. Leak only in XS part, PurePerl part working fine. Leak appear under perl5.8.0 and under 5.8.1. It's realy-realy bad. Almost all software on our production server uses this module so memory is under pressure. Best regards. Ruslan.
#!/usr/bin/perl -w use strict; #use Apache::Leak; use Params::Validate qw(validate SCALAR ARRAYREF CODEREF); Params::Validate::validation_options( allow_extra => 1 ); use vars qw($Logger $LogToFile $LogToFileNamed); sub foo { my %p = validate( @_, { level => { type => SCALAR }, message => { type => SCALAR }, } ); warn "[".$p{level}."]:".$p{message}.""; }; #leak_test { while(1) { foo(level => 'debug', message => 'x' x 70); };
Date: Mon, 3 Nov 2003 12:37:51 -0600 (CST)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-Params-Validate [...] rt.cpan.org>
Subject: Re: [cpan #4280] Memory leak in XS version
RT-Send-Cc:
On Mon, 3 Nov 2003, Guest via RT wrote: Show quoted text
> > This message about Params-Validate was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=4280 > > > Small test script attached. > Leak only in XS part, PurePerl part working fine. > Leak appear under perl5.8.0 and under 5.8.1. > > It's realy-realy bad. Almost all software on our production server uses this module so memory is under pressure.
It is bad. Thanks for the report. I've just released 0.69 to fix this. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/