Package: konsole Version: 4:23.08.1-1+b1 Severity: important X-Debbugs-Cc: lkphantom1...@gmail.com
Dear Maintainer, * What led up to the situation? The terminal did not close redundant FDs when creating shell process. * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? The shell process has many unexpected redundant FDs, and those FDs were inherit from konsole. * What outcome did you expect instead? The terminal emulator should not leave any redundant FDs for shell process. Today I found my Zsh comes with 157 FDs, in common sense zsh won't create such large amount open files. Then I tried command 'konsole -e /bin/sleep 10000', even through, the sleep process also has 100+ FDs that shouldn't exists. By comparing the FDs' number, those FDs were inherit from konsole. I thought you may close redundant FDs before creating shell process, or use CLOEXEC flag. This is my test output in konsole: % uname -r 6.1.27.xeon.ll % ls /proc/self/fd | wc -l 157 % ls /proc/$PPID/fd | wc -l 179 % cat /proc/$PPID/cmdline| tr '\0' ' ' /usr/bin/konsole --new-tab % -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.1.27.xeon.ll (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_USER Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages konsole depends on: ii kio 5.107.0-1+b2 ii konsole-kpart 4:23.08.1-1+b1 ii libc6 2.37-19 ii libkf5configcore5 5.107.0-1+b2 ii libkf5configwidgets5 5.107.0-2+b2 ii libkf5coreaddons5 5.107.0-1+b2 ii libkf5crash5 5.107.0-1+b2 ii libkf5dbusaddons5 5.107.0-1+b2 ii libkf5globalaccel-bin 5.107.0-2+b2 ii libkf5globalaccel5 5.107.0-2+b2 ii libkf5guiaddons5 5.107.0-1+b2 ii libkf5i18n5 5.107.0-1+b2 ii libkf5kiowidgets5 5.107.0-1+b2 ii libkf5notifyconfig5 5.107.0-1+b4 ii libkf5service-bin 5.107.0-1+b2 ii libkf5service5 5.107.0-1+b2 ii libkf5widgetsaddons5 5.107.0-1+b2 ii libkf5windowsystem5 5.107.0-1+b2 ii libkf5xmlgui5 5.107.0-1+b2 ii libqt5core5t64 5.15.10+dfsg-7.2+b1 ii libqt5gui5t64 5.15.10+dfsg-7.2+b1 ii libqt5widgets5t64 5.15.10+dfsg-7.2+b1 ii libstdc++6 14-20240330-1 konsole recommends no packages. Versions of packages konsole suggests: ii lrzsz 0.12.21-11 -- no debconf information