Hi I am using valgrind to check memory leak for my sample program.In Arm platform it only display the memory Address and not displaying the file name and line number.
we are using following commands
gcc -g valgrind_sam.c -o valgrind_sam
valgrin --leak-check=yes ./valgrind_sam
In xavier NX:
==26473== Command: ./valgrind_sam
==26473==
==26473==
==26473== HEAP SUMMARY:
==26473== in use at exit: 400 bytes in 1 blocks
==26473== total heap usage: 1 allocs, 0 frees, 400 bytes allocated
==26473==
==26473== 400 bytes in 1 blocks are definitely lost in loss record 1 of 1
==26473== at 0x4844BFC: malloc (in /usr/lib/valgrind/vgpreload_memcheck-arm64-linux.so)
==26473==
==26473== LEAK SUMMARY:
==26473== definitely lost: 400 bytes in 1 blocks
==26473== indirectly lost: 0 bytes in 0 blocks
==26473== possibly lost: 0 bytes in 0 blocks
==26473== still reachable: 0 bytes in 0 blocks
==26473== suppressed: 0 bytes in 0 blocks
But the same code i compiled in X86 system. Here it is working fine.It displayed File name and line number
In X86 system:
==24419== Command: ./valgrind_sam
==24419==
==24419==
==24419== HEAP SUMMARY:
==24419== in use at exit: 400 bytes in 1 blocks
==24419== total heap usage: 1 allocs, 0 frees, 400 bytes allocated
==24419==
==24419== 400 bytes in 1 blocks are definitely lost in loss record 1 of 1
==24419== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24419== by 0x108662: main (valgrind_sam.c:9)
==24419==
==24419== LEAK SUMMARY:
==24419== definitely lost: 400 bytes in 1 blocks
==24419== indirectly lost: 0 bytes in 0 blocks
==24419== possibly lost: 0 bytes in 0 blocks
==24419== still reachable: 0 bytes in 0 blocks
==24419== suppressed: 0 bytes in 0 blocks