CC: | Carlos Mejia <cmejia2 [...] csc.com.au>, Kenneth Bosward <kbosward [...] csc.com.au>, Beena Sindia <bsindia [...] csc.com.au>, Mark A Curtis <mcurtis9 [...] csc.com.au> |
Subject: | Date::Manip Memory Leak |
Date: | Thu, 19 Jul 2012 16:10:03 +1100 |
To: | bug-Date-Manip [...] rt.cpan.org |
From: | Andrew P Levy <alevy4 [...] csc.com.au> |
Hi CPAN,
Can you please raise the following critical bug.
Would you please look at the following issue whereby UnixDate leaks memory
on RHEL 6 64-bit. Tested with version 6.31 of Date::Manip. The memory leak
can be observed quite easily by comparing the output of the pmap utility
over different periods (example below) against the following script.
Appreciate your efforts in the open source community!
########Script Start (test.pl)
#!/usr/bin/perl -w
use strict;
use Date::Manip qw(UnixDate);
my $date;
for (my $i=0;; $i++)
{
for (my $j=0; $j<100; $j++)
{
$date = UnixDate(localtime, '%C');
}
sleep 1;
}
########Script End
[root@myhost ~]# rpm -qa | grep release
redhat-release-server-6Server-6.2.0.3.el6.x86_64
[root@myhost ~]# ps -ef | grep test.pl | grep -v grep
root 779 29753 3 14:56 pts/3 00:00:00 /usr/bin/perl -w ./test.pl
[root@myhost ~]# pmap 779 > /tmp/test.pmap; sleep 10; pmap 779
Show quoted text
> /tmp/test.pmap2; diff /tmp/test.pmap /tmp/test.pmap2
4c4
< 0000000001c17000 61692K rw--- [ anon ]
---
Show quoted text> 0000000001c17000 64728K rw--- [ anon ]
74c74
< total 97508K
---
Show quoted text> total 100544K
Thanks much!
Regards,
Andrew.
Show quoted text_______________________________________________________
Engineer
Midrange Engineering, Australia
CSC
Coniston Technology Park, Edney Lane, Mt St Thomas, NSW, 2500, Australia
GOS Midrange | Ph: +61-2-4253-7184 | Mobile: +61-(0)-423-027-639 |
alevy4@csc.com | http://www.csc.com
USD queue "CSC.Nsy.Midrange Eng"
Please consider the environment before printing this e-mail. <br> <br>CSC -
This is a private message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. Note: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose • CSC Australia Pty Limited; Registered Office: 5B/26
Talavera Road, Macquarie Park NSW 2113 Australia; Incorporated in
Australia. ACN: 008 476 944