GNOME Bugzilla – Bug 353959
Leak of strings from activation_environment
Last modified: 2008-08-28 11:04:32 UTC
==16524== 71 bytes in 6 blocks are possibly lost in loss record 74 of 174 ==16524== at 0x40053D0: malloc (vg_replace_malloc.c:149) ==16524== by 0x48AA8DC: standard_malloc (gmem.c:84) ==16524== by 0x48AADF5: g_malloc (gmem.c:131) ==16524== by 0x478BB5F: ORBit_alloc_string (in /usr/lib/libORBit-2.so.0.1.0) ==16524== by 0x478B828: CORBA_string_dup (in /usr/lib/libORBit-2.so.0.1.0) ==16524== by 0x41C998A: Bonobo_ActivationEnvValue_set (in /usr/lib/libbonobo-activation.so.4.0.0) ==16524== by 0x41C75F7: bonobo_activation_init_activation_env (in /usr/lib/libbonobo-activation.so.4.0.0) ==16524== by 0x41CB6E3: bonobo_activation_orb_init (in /usr/lib/libbonobo-activation.so.4.0.0) ==16524== by 0x41526C2: (within /usr/lib/libgnome-2.so.0.1501.1) ==16524== by 0x414C833: gnome_program_postinit (in /usr/lib/libgnome-2.so.0.1501.1) ==16524== by 0x414E814: (within /usr/lib/libgnome-2.so.0.1501.1) ==16524== by 0x414EB28: gnome_program_init (in /usr/lib/libgnome-2.so.0.1501.1) which appears to be caused when copying the activation_environment._buffer as Bonobo_ActivationEnvValue_copy does a strdup on name+value but the old_buffer strings are not freed. Performing a simple memcpy of the old_buffer should be sufficient.
Created attachment 72073 [details] [review] memcpy the old_buffer
Michael, please take a look at this patch
patch looks good to me.
Commited.
with this patch nautilus does not star anymore., it gives this error: message = _("Nautilus can't be used now, due to an unexpected error."); detailed_message = _("Nautilus can't be used now, due to an unexpected error " "from Bonobo when attempting to locate the factory." "Killing bonobo-activation-server and restarting Nautilus may help fix the problem."); reverting the patch makes nautilus (HEAD) works fine. re-opening and setting priority
This was reverted in CVS now. Please investigate a proper fix for the problem :-)
thanks a lot, lowing priority and severity
Marking patch as 'needs-work'
Any news on this?
Closing this then.