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: mmasl...@redhat.com
          Reporter: ppi...@redhat.com
        QA Contact: extras...@fedoraproject.org
                CC: cw...@alumni.drew.edu, iarn...@gmail.com,
                    jples...@redhat.com, ka...@ucw.cz,
                    mmasl...@redhat.com,
                    perl-de...@lists.fedoraproject.org, ppi...@redhat.com,
                    psab...@redhat.com, rc040...@freenet.de,
                    tcall...@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
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-de...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to