I debugged this today and found the following. When we attach a debugger we very quickly end-up in g_resource_new_from_data:
(gdb) backtrace #0 0x0000792a248ad645 in __GI___libc_malloc (bytes=bytes@entry=80) at ./malloc/malloc.c:3301 #1 0x0000792a24b1fafa in g_malloc (n_bytes=80) at ../../../glib/gmem.c:100 #2 0x0000792a24da5272 in gvdb_table_new_from_bytes (bytes=0x5fe9aca33360, trusted=1, error=0x7fff0e5cd9f0) at ../../../subprojects/gvdb/gvdb/gvdb-reader.c:147 #3 0x0000792a24cfd30a in g_resource_new_from_data (data=data@entry=0x5fe9aca33360, error=error@entry=0x0) at ../../../gio/gresource.c:627 #4 0x0000792a24cfd3f9 in register_lazy_static_resources_unlocked () at ../../../gio/gresource.c:1398 #5 0x0000792a24cfd743 in register_lazy_static_resources () at ../../../gio/gresource.c:1417 #6 register_lazy_static_resources () at ../../../gio/gresource.c:1411 #7 g_resources_enumerate_children (path=path@entry=0x5fd5afe8dad0 "/org/gtk/libgtk/icons/16x16/actions/", lookup_flags=lookup_flags@entry=G_RESOURCE_LOOKUP_FLAGS_NONE, error=error@entry=0x0) at ../../../gio/gresource.c:1250 #8 0x0000792a251c4514 in scan_resources (icon_theme=<optimized out>, full_dir=0x5fd5afe8dad0 "/org/gtk/libgtk/icons/16x16/actions/", dir=0x5fd5afd30af0) at ../../../gtk/gtkicontheme.c:3258 #9 theme_subdir_load (icon_theme=icon_theme@entry=0x5fd5afacf9e0, theme=theme@entry=0x5fd5afd2f410, theme_file=theme_file@entry=0x5fd5afe4d620, subdir=0x5fd5afd2f460 "16x16/actions") at ../../../gtk/gtkicontheme.c:3439 #10 0x0000792a251c4b56 in insert_theme (icon_theme=icon_theme@entry=0x5fd5afacf9e0, theme_name=<optimized out>) at ../../../gtk/gtkicontheme.c:1239 #11 0x0000792a251c4bed in insert_theme (icon_theme=icon_theme@entry=0x5fd5afacf9e0, theme_name=<optimized out>) at ../../../gtk/gtkicontheme.c:1259 #12 0x0000792a251c4bed in insert_theme (icon_theme=icon_theme@entry=0x5fd5afacf9e0, theme_name=<optimized out>) at ../../../gtk/gtkicontheme.c:1259 #13 0x0000792a251c4bed in insert_theme (icon_theme=icon_theme@entry=0x5fd5afacf9e0, theme_name=<optimized out>) at ../../../gtk/gtkicontheme.c:1259 #14 0x0000792a251c4d30 in load_themes (icon_theme=0x5fd5afacf9e0) at ../../../gtk/gtkicontheme.c:1373 #15 ensure_valid_themes (icon_theme=icon_theme@entry=0x5fd5afacf9e0) at ../../../gtk/gtkicontheme.c:1482 #16 0x0000792a251c6037 in real_choose_icon (icon_theme=icon_theme@entry=0x5fd5afacf9e0, icon_names=icon_names@entry=0x7fff0e5ce130, size=size@entry=22, scale=scale@entry=1, flags=0) at ../../../gtk/gtkicontheme.c:1696 #17 0x0000792a251c67ac in choose_icon (icon_theme=icon_theme@entry=0x5fd5afacf9e0, icon_names=icon_names@entry=0x7fff0e5ce130, size=size@entry=22, scale=scale@entry=1, flags=flags@entry=0) at ../../../gtk/gtkicontheme.c:2015 #18 0x0000792a251c6c51 in gtk_icon_theme_lookup_icon_for_scale (icon_theme=icon_theme@entry=0x5fd5afacf9e0, icon_name=icon_name@entry=0x5fd5afbdc2c0 "indicator-keyboard-En", size=size@entry=22, scale=scale@entry=1, flags=flags@entry=0) at ../../../gtk/gtkicontheme.c:2161 #19 0x0000792a251c6dbd in gtk_icon_theme_lookup_icon (icon_theme=icon_theme@entry=0x5fd5afacf9e0, icon_name=icon_name@entry=0x5fd5afbdc2c0 "indicator-keyboard-En", size=size@entry=22, flags=flags@entry=0) at ../../../gtk/gtkicontheme.c:2063 #20 0x00005fd5af1077e0 in _indicator_keyboard_source_get_icon (self=0x5fd5afb1b850) at source.c:1839 #21 indicator_keyboard_source_get_icon (self=0x5fd5afb1b850) at source.c:1982 Setting a breakpoint to indicator_keyboard_source_get_icon never triggers, but if we break in g_resource_new_from_data the function keeps getting hit seemingly forever. I wonder if there is a bug in GTK rather than in indicator-keyboard? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055388 Title: suspected memory leak with indicator-keyboard (causing gnome-session- flashback to freeze after startup) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/indicator-keyboard/+bug/2055388/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs