Karel,
You can use libumem/mdb . I had debug 100cases of leaks in c++. See one example: 1560 buffers that will never be freed. umem_alloc_32 leak: 1560 buffers, 32 bytes each, 49920 bytes total ADDR BUFADDR TIMESTAMP THREAD CACHE LASTLOG CONTENTS 1a5c7e0 1a5b500 40234d3c720d 1 4b88a8 43e680 0 libumem.so.1`umem_cache_alloc_debug+0x12b libumem.so.1`umem_cache_alloc+0xc8 libumem.so.1`umem_alloc+0xaf libumem.so.1`malloc+0x2e blablabla_snmp_subAgentCommon.so`MakeOctetString+0x9a blablabla_snmp_subAgentCommon.so`MakeOctetStringFromText+0x8b blablabla_snmp_subAgentZoneMgmt.so`k_usSrxEndpointEntry_get_slave+0x110f blablabla_snmp_subAgentZoneMgmt.so`k_usSrxEndpointEntry_get+0xa5 blablabla_snmp_subAgentZoneMgmt.so`usSrxEndpointEntry_get+0xf9 0xfffffd7fef266884 blablabla_snmp_subAgentZoneMgmt.so`SADispatchMethodRequest+0x36 blablabla_snmp_subAgentZoneMgmt.so`SADefaultAction+0x23a blablabla_snmp_subAgentZoneMgmt.so`DefaultAction+0x7d blablabla_snmp_subAgentZoneMgmt.so`blablabla_snmp_SubAgentZoneMgmt_nativ eSubAg entMainLoop+0xd1 It works very well . Thanks! Valdemar -----Original Message----- From: mdb-discuss-boun...@opensolaris.org [mailto:mdb-discuss-bounces at opensolaris.org] On Behalf Of ext Karel Gardas Sent: Tuesday, January 19, 2010 3:32 PM To: mdb-discuss at opensolaris.org Subject: [mdb-discuss] Reliable memory checking tool for C++ basedapplications? Hello, while developing C++ based applications on OS 2009.06 I'm curious if there is any reliable tool I may use for checking memory leaks of my C++ libraries/applications. I've tried to use: 1) libumem/mdb -- this does not work, i.e. it reports none C++ memory leak 2) librtc/dbx check -- this does not work, i.e. my program crashes quickly when librtc is preloaded and its core file suggest it crashes on SIGSEGV directly in RTC library 3) purify trial -- unsupported on SunOS 5.11 Strange or perhaps interesting thing is that I remember I've used libumem successfully on SXDE 1/08 at its times and while developing the same software, but now it's no go. Do you have any idea what to try and how? Thanks! Karel -- This message posted from opensolaris.org _______________________________________________ mdb-discuss mailing list mdb-discuss at opensolaris.org