[Pkg-kde-extras] Bug#409707: knemo: fd-leakage in sys backend

Matthias Dellweg 2500 at gmx.de
Sun Feb 4 22:27:47 CET 2007


Package: knemo
Version: 0.4.6-1
Severity: important
Tags: patch

The sys backend of KNemo opens a socket every second and forgets to close
it, thus filling the fd-table of kded up to the limit 1024 open files. In my
case this makes printing through KDE impossible. The following patch solves
the Problem for me.

--- knemo-0.4.6.orig/src/knemod/backends/sysbackend.cpp
+++ knemo-0.4.6/src/knemod/backends/sysbackend.cpp
@@ -285,6 +285,7 @@
         {
             data.subnetMask = inet_ntoa(((struct
sockaddr_in*)&ifr.ifr_netmask)->sin_addr);
         }
+        close(fd);
     }
 }


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.2
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages knemo depends on:
ii  kdelibs4c2a            4:3.5.5a.dfsg.1-5 core libraries and binaries for al
ii  kicker                 4:3.5.5a.dfsg.1-5 desktop panel for KDE
ii  libacl1                2.2.42-1          Access control list shared library
ii  libart-2.0-2           2.3.17-1          Library of functions for 2D graphi
ii  libattr1               1:2.4.32-1.1      Extended attribute shared library
ii  libaudio2              1.8-2             The Network Audio System (NAS). (s
ii  libc6                  2.3.6.ds1-11      GNU C Library: Shared libraries
ii  libfam0                2.7.0-12          Client library to control the FAM 
ii  libfontconfig1         2.4.2-1           generic font configuration library
ii  libfreetype6           2.2.1-5           FreeType 2 font engine, shared lib
ii  libgcc1                1:4.1.1-21        GCC support library
ii  libice6                1:1.0.1-2         X11 Inter-Client Exchange library
ii  libidn11               0.6.5-1           GNU libidn library, implementation
ii  libiw28                28-1              Wireless tools - library
ii  libjpeg62              6b-13             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.15~beta5-0    PNG library - runtime
ii  libqt3-mt              3:3.3.7-3         Qt GUI Library (Threaded runtime v
ii  libsm6                 1:1.0.1-3         X11 Session Management library
ii  libstdc++6             4.1.1-21          The GNU Standard C++ Library v3
ii  libx11-6               2:1.0.3-5         X11 client-side library
ii  libxcursor1            1.1.7-4           X cursor management library
ii  libxext6               1:1.0.1-2         X11 miscellaneous extension librar
ii  libxft2                2.1.8.2-8         FreeType-based font drawing librar
ii  libxi6                 1:1.0.1-4         X11 Input extension library
ii  libxinerama1           1:1.0.1-4.1       X11 Xinerama extension library
ii  libxrandr2             2:1.1.0.2-5       X11 RandR extension library
ii  libxrender1            1:0.9.1-3         X Rendering Extension client libra
ii  libxt6                 1:1.0.2-2         X11 toolkit intrinsics library
ii  net-tools              1.60-17           The NET-3 networking toolkit
ii  zlib1g                 1:1.2.3-13        compression library - runtime

Versions of packages knemo recommends:
ii  kcontrol               4:3.5.5a.dfsg.1-5 control center for KDE
ii  wireless-tools         28-1              Tools for manipulating Linux Wirel

-- no debconf information




More information about the pkg-kde-extras mailing list