Elf file type is DYN (Shared object file)
Entry point 0x47000
There are 9 program headers, starting at offset 64

Program Headers:
   Type           Offset   VirtAddr           PhysAddr           FileSiz  
MemSiz   Flg Align
   PHDR           0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 
0x0001f8 R   0x8
   LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x0469bc 
0x0469bc R   0x1000
   LOAD           0x047000 0x0000000000047000 0x0000000000047000 0x10ee20 
0x10ee20   E 0x1000
   LOAD           0x156000 0x0000000000156000 0x0000000000156000 0x00a598 
0x221fa8 RW  0x1000
   DYNAMIC        0x15ee20 0x000000000015ee20 0x000000000015ee20 0x0001c0 
0x0001c0 RW  0x8
   GNU_RELRO      0x15a000 0x000000000015a000 0x000000000015a000 0x006598 
0x007000 R   0x1
   GNU_EH_FRAME   0x02a2a4 0x000000000002a2a4 0x000000000002a2a4 0x005ddc 
0x005ddc R   0x4
   GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 
0x000000 RW  0
   NOTE           0x000238 0x0000000000000238 0x0000000000000238 0x000038 
0x000038 R   0x4

Valgrind can not find memory leak with malloc;

Which version of valgrind?  (Run "valgrind --version".)

Please post the valgrind output just before and just after
the place where the report of memory leaks should appear.

Please re-run using "valgrind -v ..." and show the output
from the very beginning until the last REDIR message, such as:
   --15470-- REDIR: 0x4ebf390 (libc.so.6:malloc) redirected to 0x4c2edc9 
(malloc)
   --15470-- REDIR: 0x4ebf9e0 (libc.so.6:free) redirected to 0x4c2ffca (free)

I think maybe there is something different with GNU LD command; because there 
is two segment new;
Please focus on the text in blue;

The text that was originally posted to [valgrind-users] was all in black.  
There was no blue.

Please post the output from:
    readelf --dynamic <the_program>
    ldd <the_program>


_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to