https://bugzilla.redhat.com/show_bug.cgi?id=987118
Bug ID: 987118
Summary: perl-5.18: File handles modified with binmode ':unix'
leak
Product: Fedora
Version: rawhide
Component: perl
Assignee: mmaslano(a)redhat.com
Reporter: ppisar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: cweyl(a)alumni.drew.edu, iarnell(a)gmail.com,
jplesnik(a)redhat.com, kasal(a)ucw.cz,
mmaslano(a)redhat.com,
perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com,
psabata(a)redhat.com, rc040203(a)freenet.de,
tcallawa(a)redhat.com
File handle will leak the close() call if has been modified with binmode to
':unix' layer.
[test@fedora-20 tmp]$ cat test
for my $x (1 .. 10000) {
open my $temp, '>', "/tmp/t" or die "$!";
binmode $temp, ":unix";
close $temp;
}
[test@fedora-20 tmp]$ perl ./test
Too many open files at ./test line 2.
Reported to upstream
<
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118957>.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=UDC1hZzy1Y&a=cc_unsubscribe