Skip Menu |
 

This queue is for tickets about the Proc-ProcessTable CPAN distribution.

Report information
The Basics
Id: 69397
Status: resolved
Priority: 0/
Queue: Proc-ProcessTable

People
Owner: Nobody in particular
Requestors: b.jakubski [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.45
Fixed in: (no value)



Subject: Leaking descriptors when processes disappear during proc file being read
Download (untitled) / with headers
text/plain 388b
It seems there is a bug in C code in read_file. If read() call returns -1 then file this function returns NULL, but descriptor is not closed. When Proc::ProcessTable reads file in /proc for particular process and that process disappears during that read then read returns -1 (ESRCH), and file descriptor is NOT closed. This actually proved fatal on busy server in long running process.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.