Subject: | Net::DBus::GLib memory leak |
Date: | Fri, 06 Jul 2012 17:57:36 +0800 |
To: | bug-net-dbus-glib [...] rt.cpan.org |
From: | Grahame Bowland <grahame [...] fugro-fsi.com.au> |
Hey
I've found a memory leak in Net::DBus::Glib.
If you run the attached service:
perl TestService.pm glib
then the test program:
perl test_mem.pl
You should see the memory use of TestService go up by ~1MB/sec. If you
re-run TestService.pm with no arguments it will use the Reactor from
Net::DBus and there is no memory leak.
Running with NET_DBUS_DEBUG=1 I noticed that in Reactor mode, the
wrapped DBusMessage * created with log message "Create message in filter
0x2cdb730" are subsequently unref'd and free'd; in Net::DBus::Glib they
are not.
It's a bit of a mystery to me and I'm not very familiar with the perl/C
binding API, so any help figuring in this out would be terrific.
Thanks
Grahame
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.