On Fri, 05 Jul 2024 22:27:12 +0200 Steffen Weinhart <stw392@blue-cable.de> wrote:
> Package: kio
> Version: 5.115.0-6
> Severity: normal
> File: /usr/lib/x86_64-linux-gnu/libexec/kf5/kioslave5
> X-Debbugs-Cc: stw392@blue-cable.de
>
> Hi,
>
> I stumbled upon some kind of two-fold bug. I'll begin with the second part
> (which could as well be a bug on its own) because this is the most noticeable
> part.
> When kioslave5 is called with an empty string as third argument (<klauncher-
> socket> as indicated in '--help' message), it loops infinitely resulting in
> 100% CPU utilization.
> I can tell from inspecting with a debugger, that it keeps calling close()
> repeatedly.
Hello.
It looks like:
Ktorrent raises the nofile soft limit to hard limit and spawns http kio helpers.
Because of changes done in the #1070322 kioslave5 process tries to close 1_073_741_813 file descriptors (in my case)
Then ktorrent kills these helpers on timeout (because more than 10 minutes is required for the loop) and shows connection error for trackers.