Questing about the use of libmm

Aleksander Morgado aleksander at aleksander.es
Mon Feb 8 17:47:52 UTC 2016


On Mon, Feb 8, 2016 at 2:51 PM, Troels Olesen <to at movis.dk> wrote:
> i only checked the memory usage of the application with pmap, and
> gnome-system-monitor. It seems like the memery use start around 900kb, and
> then jumps up to 47-120 mb memory usage.
>
> I have researched this memory bug a little more, and it fits quite well with
> a bug in glib < 2.46.2.
> http://stackoverflow.com/questions/29823097/glib-memory-leak-when-creating-gdbusproxy
>
> It looks like the leak is in the function "g_bus_get_sync", its not exactly
> a leak, but a problem with glib's custom memory handler.
>
> I am using Ubuntu 15.10, and it looks like it has not been patched yet.
> Ubuntu is running glib-2.46.1-1.

I'm using GLib 2.46.2, but looks like it got patched in Arch linux,
which is why I don't get any memleak in my valgrind test:
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/memleak.patch?h=packages/glib2
Nasty bug indeed, especially if you create/destroy the proxies all the time...

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list