Package: imms Version: 2.0.3-2 Severity: grave Tags: patch,sid Justification: renders package unusable
immsd will repeatedly segfault as soon as XMMS connects to its socket. The underlying problem is a bug (feature?) with initstate_r() from libc6(2.3.5). See also <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323811">Bug 323811</a>. While this is definitely a libc6 bug, there is an easy workaround that allows imms to work until libc is fixed. See attached patch (which is technically for 2.1.1 but should apply to any 2.x source). -- Brad -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12.3 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages imms depends on: ii fftw3 3.0.1-13 library for computing Fast Fourier ii libc6 2.3.5-4 GNU C Library: Shared libraries an ii libgcc1 1:4.0.1-5 GCC support library ii libglib1.2 1.2.10-10 The GLib library of C routines ii libglib2.0-0 2.8.0-1 The GLib library of C routines ii libgtk1.2 1.2.10-17 The GIMP Toolkit set of widgets fo ii libpcre3 5.0-1.1 Perl 5 Compatible Regular Expressi ii libsqlite3-0 3.2.2-3 SQLite 3 shared library ii libstdc++6 4.0.1-5 The GNU Standard C++ Library v3 ii libtag1c2 1.3.1-1.1 TagLib Audio Meta-Data Library ii libx11-6 6.8.2.dfsg.1-5 X Window System protocol client li ii libxext6 6.8.2.dfsg.1-5 X Window System miscellaneous exte ii libxi6 6.8.2.dfsg.1-5 X Window System Input extension li ii libxss1 6.8.2.dfsg.1-5 X Screen Saver client-side library ii xlibs 6.8.2.dfsg.1-5 X Window System client libraries m ii xmms 1.2.10+cvs20050209-2 Versatile X audio player that look ii zlib1g 1:1.2.3-3 compression library - runtime Versions of packages imms recommends: ii sox 12.17.7-3 A universal sound sample translato pn sqlite <none> (no description available) ii sqlite3 3.2.2-3 A command line interface for SQLit -- no debconf information
--- imms-2.1.1.orig/immscore/utils.cc +++ imms-2.1.1/immscore/utils.cc @@ -25,6 +25,7 @@ static bool initialized = false; if (!initialized) { + rand_data.state = (int32_t*)rand_state; initstate_r(time(0), rand_state, sizeof(rand_state), &rand_data); initialized = true; }