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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to