memory leak ?

frederic heem frederic.heem at telsey.it
Tue Sep 5 08:27:10 PDT 2006


Hi,
Running a dbus application under valgrind shows some unfreed memory even if 
dbus_g_connection_unref is called. 
Is there any dbus glib function to clean everything ? It would be nice to have 
dbus valgrind friendly.

==23933== 1,179 bytes in 26 blocks are still reachable in loss record 3 of 12
==23933==    at 0x4005396: malloc (vg_replace_malloc.c:149)
==23933==    by 0xB689A2: dbus_malloc (dbus-memory.c:469)
==23933==    by 0xB65BC7: _dbus_strdup (dbus-internals.c:313)
==23933==    by 0xB3C483: internal_bus_get (dbus-bus.c:158)
==23933==    by 0x4054B58: dbus_g_bus_get (dbus-gmain.c:769)
==23933==    by 0x8050C19: sniffer_dbus_register_service 
(wireshark-dbus-sniffer.c:155)
==23933==    by 0x8050FBD: sniffer_dbus_init (wireshark-dbus-sniffer.c:84)
==23933==    by 0x804F5B0: main (dumpcap.c:381)


==23933== 1,652 bytes in 19 blocks are still reachable in loss record 4 of 12
==23933==    at 0x40046D5: calloc (vg_replace_malloc.c:279)
==23933==    by 0xB6896A: dbus_malloc0 (dbus-memory.c:519)
==23933==    by 0xB68AC4: _dbus_mem_pool_new (dbus-mempool.c:141)
==23933==    by 0xB66503: alloc_link (dbus-list.c:63)
==23933==    by 0xB66551: _dbus_list_prepend (dbus-list.c:274)
==23933==    by 0xB66608: _dbus_list_append (dbus-list.c:250)
==23933==    by 0xB36B3A: dbus_parse_address (dbus-address.c:353)
==23933==    by 0xB459A2: _dbus_connection_open_internal 
(dbus-connection.c:1569)
==23933==    by 0xB3C39F: internal_bus_get (dbus-bus.c:379)
==23933==    by 0x4054B58: dbus_g_bus_get (dbus-gmain.c:769)
==23933==    by 0x8050C19: sniffer_dbus_register_service 
(wireshark-dbus-sniffer.c:155)
==23933==    by 0x8050FBD: sniffer_dbus_init (wireshark-dbus-sniffer.c:84)


==23933== 5,807 bytes in 15 blocks are still reachable in loss record 10 of 12
==23933==    at 0x4005492: realloc (vg_replace_malloc.c:306)
==23933==    by 0xB68927: dbus_realloc (dbus-memory.c:596)
==23933==    by 0xB6BDFE: set_length (dbus-string.c:352)
==23933==    by 0xB6F16B: append (dbus-string.c:968)
==23933==    by 0xB39E23: _dbus_auth_new (dbus-auth.c:366)
==23933==    by 0xB39E89: _dbus_auth_client_new (dbus-auth.c:2031)
==23933==    by 0xB613E4: _dbus_transport_init_base (dbus-transport.c:108)
==23933==    by 0xB61517: _dbus_transport_new_for_fd 
(dbus-transport-unix.c:1152)
==23933==    by 0xB61906: _dbus_transport_new_for_domain_socket 
(dbus-transport-unix.c:1232)
==23933==    by 0xB61055: _dbus_transport_open (dbus-transport.c:267)
==23933==    by 0xB45A4B: _dbus_connection_open_internal 
(dbus-connection.c:1517)
==23933==    by 0xB3C39F: internal_bus_get (dbus-bus.c:379)




______________________________________________________________________________

--- NOTICE ---

CONFIDENTIALITY - This  email  and  any  attachments  are confidential and are
intended  for  the  addressee  only.   If  you  have  received this message by
mistake,  please  contact us immediately and then delete the message from your
system.  You  must  not copy, distribute, disclose or act upon the contents of
this email. Thank you.

PERSONAL DATA PROTECTION  (Law  by  Decree  30. 06.2003 n. 196) - Personal and
corporate  data  submitted  will  be used in a correct, transparent and lawful
manner. The data collected will be processed in paper or computerized form for
the performance of contractual  and  lawful  obligations  as  well  as for the
effective management of business relationship. Data may be disclosed, in Italy
or abroad, for the purpose above mentioned to third  parties  which  cooperate
with Telsey, agents, banks, factoring companies,  credit recovering companies,
credit  insurance  companies,  professional  and  consultants,  and   shipping
companies. In relation to the same purposes, data  may  be  processed  by  the
following  classes  of  executors  or  processors:  management; administration
department; logistics  and  purchase  department; sales department; post sales
department quality department; R&D department; IT department; legal department.
The  data  processor  is  Telsey S.p.A.  The data subject may exercise all the
rights set forth in art. 7 of Law by Decree 30. 06.2003 n. 196 as reported  in
in the following link http://www.telsey.it/privacy.jsp. 

______________________________________________________________________________


More information about the dbus mailing list