Public bug reported:

Running up to date natty (11.04, last update Tue Dec 14 17:30)

All gtk2.0 and many Qt apps crash in gtkicontheme due to an
uninitialized parameter (theme_name). This currently makes it impossible
to log in through X since the gdm greeter also crashes. When logging in
using startx and a non-gtk based session - a plain xterm or a non-gtk
dependent window manager like Xmonad - any application which directly or
indirectly uses the gtk theme engine crashes. This includes Qt apps
which use the gtk theme engine.

A sample trace looks like this, created using gcalctool but it could
have been made using any application which uses gtk or the gtk theme
engine:

-----------------------8<------------------------
fr...@ostrogoth:~$ gdb gcalctool
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/gcalctool...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/gcalctool 
[Thread debugging using libthread_db enabled]
[New Thread 0xb6ef6b70 (LWP 5351)]

(process:5347): Gtk-CRITICAL **: set_table: assertion `buffer->tag_table
== NULL' failed

Program received signal SIGSEGV, Segmentation fault.
__strcmp_ia32 () at ../sysdeps/i386/i686/multiarch/../strcmp.S:39
39      ../sysdeps/i386/i686/multiarch/../strcmp.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/../strcmp.S
(gdb) thread apply all bt full

Thread 2 (Thread 0xb6ef6b70 (LWP 5351)):
#0  0xb7fe1416 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7671df6 in __poll (fds=0xb7709ff4, nfds=3, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <value optimized out>
        oldtype = 0
        result = <value optimized out>
#2  0xb777a88b in g_poll () from /lib/libglib-2.0.so.0
No symbol table info available.
#3  0xb776a21f in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#4  0xb776a9a3 in g_main_loop_run () from /lib/libglib-2.0.so.0
No symbol table info available.
#5  0xb7967dc4 in ?? () from /usr/lib/libgio-2.0.so.0
No symbol table info available.
#6  0xb779339f in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#7  0xb7713cc9 in start_thread (arg=0xb6ef6b70) at pthread_create.c:304
        __res = <value optimized out>
        __ignore1 = <value optimized out>
        __ignore2 = <value optimized out>
        pd = 0xb6ef6b70
        now = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1217245196, 0, 4001536, 
                -1225825480, 1954574631, 1212015396}, mask_was_saved = 0}}, 
---Type <return> to continue, or q <return> to quit---
          priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 
0x0, 
              canceltype = 0}}}
        not_first_call = <value optimized out>
        robust = <value optimized out>
        freesize = <value optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#8  0xb76806be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.

Thread 1 (Thread 0xb7130820 (LWP 5347)):
#0  __strcmp_ia32 () at ../sysdeps/i386/i686/multiarch/../strcmp.S:39
No locals.
#1  0xb7b7ec50 in get_directory_index (directory=0x810e280 "8x8/emblems", 
    cache=<value optimized out>)
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkiconcache.c:190
        name = <value optimized out>
        name_offset = <value optimized out>
        dir_list_offset = <value optimized out>
        n_dirs = 65536
        i = <value optimized out>
#2  0xb7b85c3a in theme_subdir_load (icon_theme=0x80bc848, 
    theme_name=0x810e138 
"\260\242\020\bpF\017\b\210F\017\b\310\350\020\b\330\350\020\b\360\350\020\b\b\351\020\b
 \351\020\b8\351\020\bP\351\020\bh\351\020\b")
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:2575
        d = 0x80f3f60
        type_string = <value optimized out>
        context_string = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        size = 8
        min_size = 8
        max_size = 8
        threshold = 2
        dir_mtime = <value optimized out>
        type = ICON_THEME_DIR_FIXED
        full_dir = 0x810e358 "/usr/share/icons/gnome/8x8/emblems"
        dir = 0x810e2d0
        context = 938
        error = 0x0
#3  insert_theme (icon_theme=0x80bc848, 
    theme_name=0x810e138 
"\260\242\020\bpF\017\b\210F\017\b\310\350\020\b\330\350\020\b\360\350\020\b\b\351\020\b
 \351\020\b8\351\020\bP\351\020\bh\351\020\b")
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:992
        i = <value optimized out>
        l = <value optimized out>
        dirs = 0x810e138
        themes = <value optimized out>
        priv = 0x810a2b0
        theme = 0x810cc00
        path = <value optimized out>
        theme_file = 0x807ed40
        error = 0x0
        dir_mtime = <value optimized out>
        stat_buf = {st_dev = 2051, __pad1 = 0, __st_ino = 185325, st_mode = 
16877, 
          st_nlink = 12, st_uid = 0, st_gid = 0, st_rdev = 0, __pad2 = 0, 
          st_size = 4096, st_blksize = 4096, st_blocks = 8, st_atim = {
---Type <return> to continue, or q <return> to quit---
            tv_sec = 1251132777, tv_nsec = 0}, st_mtim = {tv_sec = 1292283378, 
            tv_nsec = 0}, st_ctim = {tv_sec = 1292283380, tv_nsec = 190999199}, 
          st_ino = 185325}
#4  0xb7b86f2f in load_themes (icon_theme=0x80bc848)
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:1058
        dir_mtime = <value optimized out>
        stat_buf = {st_dev = 7516186188, __pad1 = 61428, __st_ino = 3081209892, 
          st_mode = 3, st_nlink = 3221218884, st_uid = 3086923844, 
          st_gid = 3078684722, st_rdev = 4429751488, __pad2 = 58892, 
          st_size = 12884901888, st_blksize = 1, st_blocks = 
-5224263580219599645, 
          st_atim = {tv_sec = -1217300336, tv_nsec = -1213747448}, st_mtim = {
            tv_sec = -1207974284, tv_nsec = -1073748468}, st_ctim = {
            tv_sec = 134965336, tv_nsec = 12}, st_ino = 13192815724393427720}
        priv = 0x80bc858
        gdir = <value optimized out>
        file = <value optimized out>
        unthemed_icon = <value optimized out>
        new_suffix = <value optimized out>
        base = <value optimized out>
        dir = <value optimized out>
        old_suffix = <value optimized out>
        tv = {tv_sec = 1458858444, tv_usec = 16}
#5  ensure_valid_themes (icon_theme=0x80bc848)
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:1212
        priv = 0x80bc858
        tv = {tv_sec = 46, tv_usec = -1208237384}
        was_valid = 145014784
---Type <return> to continue, or q <return> to quit---
#6  0xb7b873ec in choose_icon (icon_theme=<value optimized out>, 
    icon_names=0xbfffe6f8, size=16, flags=GTK_ICON_LOOKUP_USE_BUILTIN)
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:1265
        priv = 0x80bc858
        l = <value optimized out>
        icon_info = 0x0
        unthemed_icon = 0x0
        allow_svg = 1
        use_builtin = 4
        i = <value optimized out>
#7  0xb7b87f52 in IA__gtk_icon_theme_lookup_icon (icon_theme=0x80bc848, 
    icon_name=0xb7e900d8 "lpi-help", size=16, flags=GTK_ICON_LOOKUP_USE_BUILTIN)
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:1444
        names = {0xb7e900d8 "lpi-help", 0x0}
        info = <value optimized out>
        __PRETTY_FUNCTION__ = "IA__gtk_icon_theme_lookup_icon"
#8  0xb7b88b88 in IA__gtk_icon_theme_load_icon (icon_theme=0x80bc848, 
    icon_name=0xb7e900d8 "lpi-help", size=16, flags=0, error=0xbfffe7bc)
    at /build/buildd/gtk+2.0-2.23.2/gtk/gtkicontheme.c:1539
        icon_info = <value optimized out>
        pixbuf = 0x0
        __PRETTY_FUNCTION__ = "IA__gtk_icon_theme_load_icon"
#9  0xb7e8f8c9 in launchpad_integration_add_item_factory ()
   from /usr/lib/liblaunchpad-integration.so.1
No symbol table info available.
#10 0xb7e8f97c in ?? () from /usr/lib/liblaunchpad-integration.so.1
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#11 0xb7e8fd0d in launchpad_integration_get_action_group ()
   from /usr/lib/liblaunchpad-integration.so.1
No symbol table info available.
#12 0xb7e8fe1b in launchpad_integration_add_items ()
   from /usr/lib/liblaunchpad-integration.so.1
No symbol table info available.
#13 0x0805d550 in ?? ()
No symbol table info available.
#14 0xb780ad64 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#15 0xb780dcb4 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#16 0xb780ef40 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#17 0xb780f057 in g_object_new () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#18 0x0805daba in math_window_new ()
No symbol table info available.
#19 0x08051dc5 in main ()
No symbol table info available.
(gdb) 
(gdb) 
(gdb) 
(gdb) q
-----------------------8<------------------------

The theme_name parameter is used uninitialized (thread 1, #3:
theme_name=0x810e138
"\260\242\020\bpF\017\b\210F\017\b\310\350\020\b\330\350\020\b\360\350\020\b\b\351\020\b
\351\020\b8\351\020\bP\351\020\bh\351\020\b").

Relevant package information:

gtk2-engines 1:2.20.2-0ubuntu1
gtk2-engines-murrine 0.98.1.1-0ubuntu1
gtk2-engines-pixbuf 2.23.2-0ubuntu2
gtk2-engines-qtcurve 1.6.4-1ubuntu1
libgtk2.0-0 2.23.2-0ubuntu2
libgtk2.0-0-dbgsym 2.23.2-0ubuntu2
libgtk2.0-bin 2.23.2-0ubuntu2
libgtk2.0-common 2.23.2-0ubuntu2
libgtk2.0-dev 2.23.2-0ubuntu2
libgtk2.0-doc 2.23.2-0ubuntu2

libgtk2.0-0:
  Installed: 2.23.2-0ubuntu2
  Candidate: 2.23.2-0ubuntu2
  Version table:
 *** 2.23.2-0ubuntu2 0
        990 http://se.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        990 http://archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

** Affects: gtk+2.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/690244

Title:
  All gtk2.0 apps crash in gtkicontheme due to use of uninitialized parameter  
'theme_name'

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to