On 07/12/2012 12:11 AM, Nil Nik wrote: > > Hello, > > I have executable main, which usages shared library math.so. > There is memory leak in math.so, but valgrind does not show the details of > math.so > > following is the example where information of shared library is missing: > ==9347== 20 bytes in 1 blocks are definitely lost in loss record 1 of 1 > ==9347== at 0x4005BDC: malloc (vg_replace_malloc.c:195) > ==9347== by 0x400A599: ??? > ==9347== by 0x8048A87: main (in /home/test/main) > ==9347== > ==9347== LEAK SUMMARY: > ==9347== definitely lost: 20 bytes in 1 blocks > ==9347== indirectly lost: 0 bytes in 0 blocks > ==9347== possibly lost: 0 bytes in 0 blocks > ==9347== still reachable: 0 bytes in 0 blocks > ==9347== suppressed: 0 bytes in 0 blocks > > How do i get location within math.so?
The shared lib has no debug info. That's why you don't get a file name and line number. If math.so is your own shared object read this: http://valgrind.org/docs/manual/faq.html#faq.unhelpful If it is a system lib you need to install a version that has debug info. That depends on your distro and I can't help with that. Florian ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
