Bug 406205 - File descriptor leak
Summary: File descriptor leak
Status: RESOLVED DUPLICATE of bug 406303
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-04 08:10 UTC by Frediano Ziglio
Modified: 2019-04-25 10:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frediano Ziglio 2019-04-04 08:10:14 UTC
SUMMARY
When I open konsole just after the login I can note file descriptor from parent process (plasmashell).
I'm using Fedora 29 packages, I downloaded plasmashell repository but I cannot find a possible fix for this.

STEPS TO REPRODUCE
1. Login to computer
2. Open konsole from menu
3. Launch "lsof -p $$". You can note some file descriptors like

  bash    3038 test   22u  unix 0x000000005ee05d8e       0t0    50812 /run/user/25800/plasmashellOnanZp.1.slave-socket type=STREAM
  bash    3038 test   29u  unix 0x000000006df597ab       0t0    50855 /run/user/25800/plasmashellbjinfS.3.slave-socket type=STREAM
  bash    3038 test   30u  unix 0x000000001aa40dd7       0t0    56450 /run/user/25800/plasmashellICpefe.2.slave-socket type=STREAM
  bash    3038 test   35u  unix 0x00000000509ffe44       0t0    50866 /run/user/25800/plasmashellIxStba.4.slave-socket type=STREAM
  bash    3038 test   37u  unix 0x00000000bb2513ad       0t0    51825 /run/user/25800/plasmashellPwZtCi.6.slave-socket type=STREAM

4. Run a "lsof > descriptors"
5. Scan for a file above, like "grep /run/user/25800/plasmashellOnanZp.1.slave-socket descriptors". You will find konsole, plasmashell and some others (like bash and lsof)
6. Run a "pstree -alp > ps_tree". You can see plasmashell process is the parent of konsole


OBSERVED RESULT
Additional file descriptors from parent.


EXPECTED RESULT
No leak of file descriptors.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 29 x64
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.55.0
Qt Version: 5.11.3

ADDITIONAL INFORMATION
After a while the files disappears on both plasmashell and file system so if I close konsole and open again I cannot find these files anymore.
Comment 1 Christoph Feck 2019-04-25 10:17:46 UTC

*** This bug has been marked as a duplicate of bug 406303 ***