Hi, I am trying to fix leaks in my C++ app code. Purify reports the following " MLK: 12800 bytes leaked in 4 blocks This memory was allocated from: malloc [rtlib.o] c2n6Fi_Pv___1 [libCrun.so.1] void*operator new(unsigned) [rtlib.o] MyMethod * ctrRef; => ctrRef = new MyMethod( argstoThread ); Block of 3200 bytes (4 times); last block at 0x2d7518
I generated a core file by using a gcore and ran a dis command. My intention is to find out what is the data structure which is not getting deleted. However I am unable to figure out the structure. Any pointers?????? What does illtrap mean? > 0x2d7518::dis 0x2d74f0: 0xa5ff53f1 0x2d74f4: illtrap 0xc80 0x2d74f8: illtrap 0x0 0x2d74fc: illtrap 0x4 0x2d7500: illtrap 0x0 0x2d7504: andn %fp, 0xb33, %i3 0x2d7508: illtrap 0x50000 0x2d750c: illtrap 0x2d 0x2d7510: illtrap 0x0 0x2d7514: illtrap 0x0 0x2d7518: illtrap 0x255f34 0x2d751c: illtrap 0x2dad30 0x2d7520: illtrap 0x0 0x2d7524: illtrap 0x0 0x2d7528: illtrap 0x2d86f8 0x2d752c: illtrap 0x2d86a0 0x2d7530: illtrap 0x2d8648 0x2d7534: illtrap 0x2d8348 0x2d7538: illtrap 0x2d85c0 0x2d753c: illtrap 0x2d84d8 0x2d7540: illtrap 0x2d83c8 > 0x2d7518::dis 0x2d74f0: 0xa5ff53f1 0x2d74f4: illtrap 0xc80 0x2d74f8: illtrap 0x0 0x2d74fc: illtrap 0x4 0x2d7500: illtrap 0x0 0x2d7504: andn %fp, 0xb33, %i3 0x2d7508: illtrap 0x50000 0x2d750c: illtrap 0x2d 0x2d7510: illtrap 0x0 0x2d7514: illtrap 0x0 0x2d7518: illtrap 0x255f34 0x2d751c: illtrap 0x2dad30 0x2d7520: illtrap 0x0 0x2d7524: illtrap 0x0 0x2d7528: illtrap 0x2d86f8 0x2d752c: illtrap 0x2d86a0 0x2d7530: illtrap 0x2d8648 0x2d7534: illtrap 0x2d8348 0x2d7538: illtrap 0x2d85c0 0x2d753c: illtrap 0x2d84d8 0x2d7540: illtrap 0x2d83c8 > 0x255f34::dis MyMethod`argstoThread+0x10: illtrap 0x29717c MyMethod`argstoThread+0x14: illtrap 0x2973e4 MyMethod`argstoThread+0x18: illtrap 0x298a64 MyMethod`argstoThread+0x1c: illtrap 0x2a31d4 MyMethod`argstoThread+0x20: illtrap 0x2a3024 MyMethod`argstoThread+0x24: illtrap 0x2a614c MyMethod`$XA_eDEs0DHbJmSn.lstOfFiles: illtrap 0x255f54 MyMethod`$XA_eDEs0DHbJmSn.lstOfFiles+4: illtrap 0x40 MyMethod`$XA_eDEs0DHbJmSn.lstOfFiles+8: illtrap 0x292f00 MyMethod`$XA_eDEs0DHbJmSn.lstOfFiles+0xc: illtrap 0x0 MyMethod`__1cWMyMethodG__vtbl_: illtrap 0x221068 MyMethod`__1cWMyMethodG__vtbl_+4: illtrap 0x0 MyMethod`__1cWMyMethodG__vtbl_+8: illtrap 0x9f8b8 MyMethod`__1cWMyMethodG__vtbl_+0xc: illtrap 0x9fee8 MyMethod`__1cWMyMethodG__vtbl_+0x10:illtrap 0xa7398 MyMethod`$XA_eDEs0DHbJmSn.isBCPNeeded: illtrap 0x1 MyMethod`$XA_eDEs0DHbJmSn.isASNNeeded: illtrap 0x1 MyMethod`ALLOW_UNSAFE_DATA: illtrap 0x1 MyMethod`__1cTRWTValOrderedVector4nJRWCString__G__vtbl_: illtrap 0x221188 MyMethod`__1cTRWTValOrderedVector4nJRWCString__G__vtbl_+4:illtrap 0x0 MyMethod`__1cTRWTValOrderedVector4nJRWCString__G__vtbl_+8:illtrap 0xa5ec8 > Regards Girish Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20090113/57d5b5ba/attachment.html>