After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 534641 - leaks in gnome-session
leaks in gnome-session
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
git master
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-24 15:03 UTC by Kjartan Maraas
Modified: 2008-05-27 20:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kjartan Maraas 2008-05-24 15:03:14 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)
Comment 1 Dan Winship 2008-05-24 15:20:48 UTC
(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?

Comment 2 Kjartan Maraas 2008-05-26 18:31:14 UTC
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!
Comment 3 Lucas Rocha 2008-05-27 20:54:46 UTC
Fixed all reported leaks. 

The unexpected warning is related to the problem that Kjartan reported on d-d-l. Any clue?