GNOME Bugzilla – Bug 534641
leaks in gnome-session
Last modified: 2008-05-27 20:54:46 UTC
Found by valgrind: ==7061== 30 bytes in 1 blocks are definitely lost in loss record 37 of 124 ==7061== at 0x40290DE: malloc (vg_replace_malloc.c:207) ==7061== by 0x4167948: IceComposeNetworkIdList (listen.c:202) ==7061== by 0x8055339: gsm_xsmp_init (xsmp.c:174) ==7061== by 0x8052F2A: main (main.c:123) ==7061== 1,195 (24 direct, 1,171 indirect) bytes in 1 blocks are definitely lost in loss record 85 of 124 ==7061== at 0x4027192: calloc (vg_replace_malloc.c:397) ==7061== by 0x517602F: g_malloc0 (gmem.c:151) ==7061== by 0x805603E: egg_desktop_file_new_from_key_file (eggdesktopfile.c:162) ==7061== by 0x8055E14: egg_desktop_file_new (eggdesktopfile.c:68) ==7061== by 0x804D8C6: set_property (app.c:129) ==7061== by 0x51028CA: object_set_property (gobject.c:697) ==7061== by 0x5102690: g_object_newv (gobject.c:959) ==7061== by 0x5102D39: g_object_new_valist (gobject.c:1027) ==7061== by 0x5102033: g_object_new (gobject.c:795) ==7061== by 0x804CB0C: gsm_app_autostart_new (app-autostart.c:102) ==7061== by 0x8053F94: append_autostart_apps (session.c:286) ==7061== by 0x8053BD2: gsm_session_new (session.c:141) ==7061== by 0x8052F46: main (main.c:132) ==7061== 17,344 (10,589 direct, 6,755 indirect) bytes in 299 blocks are definitely lost in loss record 122 of 124 ==7061== at 0x40290DE: malloc (vg_replace_malloc.c:207) ==7061== by 0x5175F9D: g_malloc (gmem.c:131) ==7061== by 0x518E27C: g_slice_alloc (gslice.c:824) ==7061== by 0x518E572: g_slice_alloc0 (gslice.c:833) ==7061== by 0x51645B7: g_key_file_new (gkeyfile.c:263) ==7061== by 0x8053D27: append_default_apps (session.c:211) ==7061== by 0x8053BA9: gsm_session_new (session.c:134) ==7061== by 0x8052F46: main (main.c:132)
(In reply to comment #0) > ==7061== 30 bytes in 1 blocks are definitely lost in loss record 37 of 124 > ==7061== at 0x40290DE: malloc (vg_replace_malloc.c:207) > ==7061== by 0x4167948: IceComposeNetworkIdList (listen.c:202) > ==7061== by 0x8055339: gsm_xsmp_init (xsmp.c:174) > ==7061== by 0x8052F2A: main (main.c:123) This is leaked in a g_warning that shouldn't be emitted: g_warning ("IceListenForConnections returned %d non-local listeners: %s", num_listeners - 1, IceComposeNetworkIdList (num_listeners - 1, listeners)); Can you paste that output?
No SCIM IMEs found: SCIM startup was skipped. Started none ** (gnome-session:13204): WARNING **: IceListenForConnections returned 1 non-local listeners: unix/unix:/tmp/.ICE-unix/13204 ** (gnome-session:13204): DEBUG: SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/13204 ** (gnome-session:13204): WARNING **: dbus-daemon is already running: processes launched by D-Bus won't have access to $SESSION_MANAGER!
Fixed all reported leaks. The unexpected warning is related to the problem that Kjartan reported on d-d-l. Any clue?