Dear Maintainer,

This may not be Konsole's bug.

By deep dive into the problem, I found those redundant FDs were coming from
kwin_wayland, the wayland implementation of KWin. Today I tried to start a
Konsole Terminal in another desktop environment rather than KDE Plasma, and
the redundant FDs problem did not reproduce this time.

So you may close this bug ticket.

So this

On Thu, 09 May 2024 22:11:48 +0800 anthony <lkphantom1...@gmail.com> wrote:

> 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

Reply via email to