https://bugs.kde.org/show_bug.cgi?id=378268
Bug ID: 378268 Summary: ksysguardd eats filehandles, quits when 1023 are used up. Product: ksysguard Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: ksysguardd Assignee: ksysguard-b...@kde.org Reporter: reisenwe...@web.de Target Milestone: --- Created attachment 104811 --> https://bugs.kde.org/attachment.cgi?id=104811&action=edit strace log of last two pipe() and clone() calls before +++ exited with 1 +++ pipe(0x7fff1904da90) = -1 EMFILE (Too many open files) [2017-03-30 Thu 11:35:12] <DocScrutinizer05> hmm, obviously ksysguardd cteates a pipe (2 filehandles), then clones a child, closes write side of pipe, tries reading from end of pipe, and eventually does same again, while read side of pipe stays open [2017-03-30 Thu 11:37:21] <DocScrutinizer05> I guess the ksysguardd parent eventually should close its side of the pipe, no? [2017-03-30 Thu 11:38:19] <DocScrutinizer05> I can't think of it really intentionally trying to spawn >1023 children with a pipe to each one [2017-03-30 Thu 11:39:17] <DocScrutinizer05> heck, on some systems the process table isn't large enough for 1024 processes ;-) [2017-03-30 Thu 11:44:01] <DocScrutinizer05> http://paste.opensuse.org/4123994 there's no `close(1021)` ever, after the `pipe([1021, 1022])` [2017-03-30 Thu 11:48:19] <DocScrutinizer05> so of course next sequence looks like http://paste.opensuse.org/46086581 -- You are receiving this mail because: You are watching all bug changes.