Skip Menu |

This queue is for tickets about the IO-Tty CPAN distribution.

Report information
The Basics
Id: 130491
Status: resolved
Priority: 0/
Queue: IO-Tty

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.12
Fixed in: (no value)



Subject: File numbers not closed on some operating systems
IPC::Run is has a broken test in t/pty.t because IO::Pty objects are not closing all of their file handles when they are destroyed. https://github.com/toddr/IPC-Run/issues/130 On Fedora 29 and Redhat 8, file handle 4 doesn't reliably close. I've seen it close occasionally so this failure isn't even consistent. $>perl -MIO::Pty -MIPC::Run::Debug -wE'print __FILE__ . " " . __LINE__ . " " . IPC::Run::Debug::_map_fds() . "\n";my $h = IO::Pty->new; print __FILE__ . " " . __LINE__ . " " . IPC::Run::Debug::_map_fds() . "\n";undef $h; print __FILE__ . " " . __LINE__ . " " . IPC::Run::Debug::_map_fds() . "\n";' -e 1 012--------- -e 1 012345------ -e 1 012-4-------
The file handle seems to get re-used so this isn't a incrementing leak. $>perl -MIO::Pty -MIPC::Run::Debug -wE'sub loop { print __FILE__ . " " . __LINE__ . " " . IPC::Run::Debug::_map_fds() . "\n";my $h = IO::Pty->new; print __FILE__ . " " . __LINE__ . " " . IPC::Run::Debug::_map_fds() . "\n";undef $h; print __FILE__ . " " . __LINE__ . " " . IPC::Run::Debug::_map_fds() . "\n"; } loop() for(1..10);' -e 1 012--------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4------- -e 1 012-4------- -e 1 012345------ -e 1 012-4-------
Ticket migrated to github as https://github.com/toddr/IO-Tty/issues/14