Package: gtk-theme-switch Followup-For: Bug #229384 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
After looking at the switch(1) code further, it seems that my comments about the 'dirname' variable were not quite correct. The usage of that variable does work as originally written, although using g_strdup() on each copy of it placed in the hash will not do any harm. I did look at the switch2 code, though, and found exactly the same problem with storing dent->d_name in the hash as I'd found with the original switch program. In switch2.c, both lines that go > g_hash_table_insert (hash, dent->d_name, dirname); should be replaced with > g_hash_table_insert (hash, g_strdup(dent->d_name), dirname); This fixed a couple of segfaults that I was getting with switch2. I'm also beginning to see that some of the weird messages (and perhaps even segfaults) are caused by the themes and aren't caused by switch{,2} in itself. .....Ron - -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.21-merlin-0 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages gtk-theme-switch depends on: ii libatk1.0-0 1.12.4-3 The ATK accessibility toolkit ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libcairo2 1.2.4-4 The Cairo 2D vector graphics libra ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libglib1.2 1.2.10-17 The GLib library of C routines ii libglib2.0-0 2.12.4-2 The GLib library of C routines ii libgtk1.2 1.2.10-18 The GIMP Toolkit set of widgets fo ii libgtk2.0-0 2.8.20-7 The GTK+ graphical user interface ii libpango1.0-0 1.14.8-5 Layout and rendering of internatio ii libx11-6 2:1.0.3-7 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 libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes' extensio 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 Versions of packages gtk-theme-switch recommends: ii gtk-engines-pixmap 0.12-8.1 Pixmap-based theme for GTK+ 1.2 - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGU5WxitqjxNhsdN4RAtOMAJ9fYa1Ec9sNYc+WC+qizeZby2u1MQCfUR2c s8feJ5uwYZXUqJW5i54lgVI= =eft9 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]