Bug#538169: Leaves a file descriptor open on /dev/console

Enrico Zini enrico at debian.org
Thu Jul 23 18:29:37 UTC 2009


Package: gdm
Version: 2.20.9-1
Severity: minor

Hello,

thank you for maintaning gdm.

I am studying the console handling code in getvt.c and I have noticed
that in get_free_vt_sys, the file descriptor open to /dev/console is
never closed if the function ends successfully, and is not returned or
stored anywhere.

I am not sure there is a reason to keep that open, and it looks like it
is a minor bug. Feel free to close this report if this is the intended
behaviour.

Cheers,

Enrico

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gdm depends on:
ii  adduser              3.110               add and remove users and groups
ii  debconf [debconf-2.0 1.5.27              Debian configuration management sy
ii  gksu                 2.0.2-2+b1          graphical frontend to su
ii  gnome-terminal [x-te 2.26.2-2            The GNOME terminal emulator applic
ii  libart-2.0-2         2.3.20-2            Library of functions for 2D graphi
ii  libatk1.0-0          1.26.0-1            The ATK accessibility toolkit
ii  libattr1             1:2.4.43-3          Extended attribute shared library
ii  libc6                2.9-12              GNU C Library: Shared libraries
ii  libcairo2            1.8.6-2+b1          The Cairo 2D vector graphics libra
ii  libdbus-1-3          1.2.14-3            simple interprocess messaging syst
ii  libdbus-glib-1-2     0.80-4              simple interprocess messaging syst
ii  libdmx1              1:1.0.2-3           X11 Distributed Multihead extensio
ii  libfontconfig1       2.6.0-4             generic font configuration library
ii  libfreetype6         2.3.9-4.1           FreeType 2 font engine, shared lib
ii  libglade2-0          1:2.6.4-1           library to load .glade files at ru
ii  libglib2.0-0         2.20.1-2            The GLib library of C routines
ii  libgnomecanvas2-0    2.26.0-1            A powerful object-oriented display
ii  libgtk2.0-0          2.16.1-2            The GTK+ graphical user interface 
ii  libpam-modules       1.0.1-9             Pluggable Authentication Modules f
ii  libpam-runtime       1.0.1-9             Runtime support for the PAM librar
ii  libpam0g             1.0.1-9             Pluggable Authentication Modules l
ii  libpango1.0-0        1.24.0-3+b1         Layout and rendering of internatio
ii  librsvg2-2           2.26.0-1            SAX-based renderer library for SVG
ii  librsvg2-common      2.26.0-1            SAX-based renderer library for SVG
ii  libselinux1          2.0.82-1            SELinux shared libraries
ii  libwrap0             7.6.q-18            Wietse Venema's TCP wrappers libra
ii  libx11-6             2:1.2.1-1           X11 client-side library
ii  libxau6              1:1.0.4-2           X11 authorisation library
ii  libxdmcp6            1:1.0.2-3           X11 Display Manager Control Protoc
ii  libxext6             2:1.0.4-1           X11 miscellaneous extension librar
ii  libxi6               2:1.1.4-1           X11 Input extension library
ii  libxinerama1         2:1.0.3-2           X11 Xinerama extension library
ii  libxml2              2.7.3.dfsg-1        GNOME XML library
ii  lsb-base             3.2-22              Linux Standard Base 3.2 init scrip
ii  lxsession [x-session 0.3.8+svn20090521-1 a lightweight X11 session manager
ii  lxterminal [x-termin 0.1.5-1             desktop independent vte-based term
ii  metacity [x-window-m 1:2.26.0-3          lightweight GTK+ window manager
ii  openbox [x-window-ma 3.4.7.2-4           standards compliant, fast, light-w
ii  rxvt-unicode [x-term 9.06-1              RXVT-like terminal emulator with U
ii  xterm [x-terminal-em 243-1               X terminal emulator
ii  zlib1g               1:1.2.3.3.dfsg-13   compression library - runtime

Versions of packages gdm recommends:
ii  dialog                    1.1-20080819-1 Displays user-friendly dialog boxe
ii  gdm-themes                0.6.2          Themes for the GNOME Display Manag
ii  whiptail                  0.52.10-4      Displays user-friendly dialog boxe
ii  xnest                     2:1.4.2-11     Nested X server
ii  xserver-xephyr            2:1.4.2-11     nested X server
ii  xserver-xorg              1:7.3+19       the X.Org X server
ii  zenity                    2.26.0-1       Display graphical dialog boxes fro

Versions of packages gdm suggests:
ii  libpam-gnome-keyring          2.26.1-1   PAM module to unlock the GNOME key
ii  locales                       2.9-12     GNU C Library: National Language (
ii  pm-utils                      1.2.5-4    utilities and scripts for power ma

-- debconf information:
  gdm/daemon_name: /usr/bin/gdm
* shared/default-x-display-manager: gdm





More information about the pkg-gnome-maintainers mailing list