|
From: Nil N. <nil...@ho...> - 2012-07-12 04:11:18
|
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? Thanks in advance!!! |
|
From: Florian K. <br...@ac...> - 2012-07-27 15:13:31
|
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 |
|
From: Patrick J. L. <lop...@gm...> - 2012-07-27 15:24:18
|
On Fri, Jul 27, 2012 at 8:13 AM, Florian Krohm <br...@ac...> wrote: > > 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. On some distributions, the debug info for shared libraries lives in files distinct from the shared libraries themselves (see http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html). Does Valgrind support such "outboard" symbol files? If not, does anyone know whether there is an existing feature request to support them? Thanks. - Pat |
|
From: Julian S. <js...@ac...> - 2012-07-27 15:30:03
|
On Friday, July 27, 2012, Patrick J. LoPresti wrote: > Does Valgrind support such "outboard" symbol files? If not, does > anyone know whether there is an existing feature request to support > them? Yes .. basically nothing much would work if we didn't support that. J |
|
From: Tom H. <to...@co...> - 2012-07-27 15:52:36
|
On 27/07/12 16:24, Patrick J. LoPresti wrote: > On some distributions, the debug info for shared libraries lives in > files distinct from the shared libraries themselves (see > http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html). Yes, we support both the systems of separated debug info mentioned on that page. > Does Valgrind support such "outboard" symbol files? If not, does > anyone know whether there is an existing feature request to support > them? We don't support symbol files (which are something different) but we do support separated debug files. Tom -- Tom Hughes (to...@co...) http://compton.nu/ |