Bug#458004: vlc: segfault if VLC_VERBOSE >= 2

arno renevier arenevier at fdn.fr
Thu Dec 27 20:59:21 UTC 2007

Package: vlc
Version: 0.8.6.c-4
Severity: normal

I noticed a segfault in vlc.

$ export VLC_VERBOSE=2
$ vlc
VLC media player 0.8.6c Janus
zsh: segmentation fault  vlc

It seems that function VLC_Create checks VLC_VERBOSE, and then, calls msg_Dbg.
As libvlc.i_verbose has been set to 2, a message will be printed.
In FromLocale function (src/misc/unicode.c), there is a call to 

vlc_iconv( from_locale.hd, NULL, NULL, NULL, NULL );

But at that moment, LocaleInit has not been called yet, and from_locale.hd is
NULL. Therefore, vlc segfaults.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22custom
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vlc depends on:
ii  libaa1                  1.4p5-33         ascii art library
ii  libatk1.0-0             1.20.0-1         The ATK accessibility toolkit
ii  libc6                   2.7-5            GNU C Library: Shared libraries
ii  libcaca0                0.99.beta13b-4   colour ASCII art library
ii  libcairo2               1.4.12-2         The Cairo 2D vector graphics libra
ii  libcdio7                0.78.2+dfsg1-1   library to read and control CD-ROM
ii  libcucul0               0.99.beta13b-4   low-level Unicode character drawin
ii  libdbus-1-3             1.1.2-1          simple interprocess messaging syst
ii  libdbus-glib-1-2        0.74-1           simple interprocess messaging syst
ii  libfreetype6            2.3.5-1+b1       FreeType 2 font engine, shared lib
ii  libfribidi0             0.10.7-4         Free Implementation of the Unicode
ii  libgcc1                 1:4.2.2-4        GCC support library
ii  libgl1-mesa-glx [libgl1 7.0.2-3          A free implementation of the OpenG
ii  libglib2.0-0            2.14.4-2         The GLib library of C routines
ii  libglu1-mesa [libglu1]  7.0.2-3          The OpenGL utility library (GLU)
ii  libgtk2.0-0             2.12.3-2         The GTK+ graphical user interface 
ii  libice6                 2:1.0.4-1        X11 Inter-Client Exchange library
ii  libiso9660-5            0.78.2+dfsg1-1   library to work with ISO9660 files
ii  libjpeg62               6b-14            The Independent JPEG Group's JPEG 
ii  libnotify1 [libnotify1- 0.4.4-3          sends desktop notifications to a n
ii  libpango1.0-0           1.18.3-1         Layout and rendering of internatio
ii  libpng12-0              1.2.15~beta5-3   PNG library - runtime
ii  libsdl-image1.2         1.2.6-1          image loading library for Simple D
ii  libsdl1.2debian         1.2.12-3         Simple DirectMedia Layer
ii  libsm6                  2:1.0.3-1+b1     X11 Session Management library
ii  libstdc++6              4.2.2-4          The GNU Standard C++ Library v3
ii  libtar                  1.2.11-4         C library for manipulating tar arc
ii  libtiff4                3.8.2-7          Tag Image File Format (TIFF) libra
ii  libvcdinfo0             0.7.23-4         library to extract information fro
ii  libvlc0                 0.8.6.c-4        multimedia player and streamer lib
ii  libwxbase2.6-0      wxBase library (runtime) - non-GUI
ii  libwxgtk2.6-0       wxWidgets Cross-platform C++ GUI t
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  libxinerama1            1:1.0.2-1        X11 Xinerama extension library
ii  libxosd2                2.2.14-1.4       X On-Screen Display library - runt
ii  libxv1                  1:1.0.3-1        X11 Video extension library
ii  ttf-dejavu-core         2.22-1           Vera font family derivate with add
ii  vlc-nox                 0.8.6.c-4        multimedia player and streamer (wi
ii  zlib1g                  1: compression library - runtime

vlc recommends no packages.

-- no debconf information

More information about the pkg-multimedia-maintainers mailing list