valgrind检测内存,只有warning,请问是什么原因,怎么解决
一升米 2017-12-13 04:11:31 使用valgrind测试内存使用情况
valgrind --tool=memcheck --leak-check=full --track-origins=yes --leak-check=yes --show-reachable=yes --trace-children=yes ./test
结果如下,请问其中的两个warning是什么原因,如何查看是哪里导致的,我想解决掉它,谢谢
==24293== Memcheck, a memory error detector
==24293== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24293== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==24293== Command: ./test
==24293==
==24293== Warning: set address range perms: large range [0x97a3f040, 0xa7cce682) (undefined)
==24293== Warning: set address range perms: large range [0x97a3f028, 0xa7cce69a) (noaccess)
run over and success
==24293==
==24293== HEAP SUMMARY:
==24293== in use at exit: 0 bytes in 0 blocks
==24293== total heap usage: 34,993,432 allocs, 34,993,432 frees, 971,529,503 bytes allocated
==24293==
==24293== All heap blocks were freed -- no leaks are possible
==24293==
==24293== For counts of detected and suppressed errors, rerun with: -v
==24293== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)