Subject: | Memory leak/Infinite file open (AtCfg_linux_2_4_2.al) loop |
* RedHat Linux 7.1
* Linux version 2.4.9 (root@mercury.gostnet.com) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
STRACE OUTPUT: (loops forever trying to open this file. I simply "touched" the file and the tried again, which is what you see below)
open("/usr/local/lib/perl5/site_perl/5.6.1/auto/Schedule/At/AtCfg_linux_2_4_2.al", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401e5000
read(4, "", 4096) = 0
close(4) = 0
munmap(0x401e5000, 4096) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64("/usr/local/lib/perl5/site_perl/5.6.1/auto/Schedule/At/AtCfg_linux_2_4_2.al", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/usr/local/lib/perl5/site_perl/5.6.1/auto/Schedule/At/AtCfg_linux_2_4_2.al", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401e5000
read(4, "", 4096) = 0
close(4) = 0
munmap(0x401e5000, 4096) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64("/usr/local/lib/perl5/site_perl/5.6.1/auto/Schedule/At/AtCfg_linux_2_4_2.al", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/usr/local/lib/perl5/site_perl/5.6.1/auto/Schedule/At/AtCfg_linux_2_4_2.al", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401e5000
read(4, "", 4096) = 0
close(4)
Module is inoperable (same thing happens during "make test")