On 3/15/2012 11:01 AM, Ian Mallett wrote:
Actual terminal output:
ian@IanMallettU86:~/Desktop/C++/glLibC2/build$ valgrind /bin/ls
What does "file /bin/ls" print? Your copy of "ls" may be a 32-bit
executable even if you are running on a 64-bit machine. (On my CentOS
5.5 machine it is a 64-bit executable, but you never know...)
==3359== Memcheck, a memory error detector.
==3359== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==3359== Using LibVEX rev 1884, a library for dynamic binary translation.
==3359== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==3359== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation
framework.
This is also a pretty old version of valgrind. My CentOS 5.5 machine
has 3.5.0, and the most recent release is 3.7.0.
==3359== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==3359== For more details, rerun with: -v
==3359==
CMakeCache.txtCMakeFiles cmake_install.cmake glLibC2
libglLibC2Lib.a Makefile
==3359==
==3359== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 23 from 1)
==3359== malloc/free: in use at exit: 12,679 bytes in 12 blocks.
==3359== malloc/free: 1,448 allocs, 1,436 frees, 85,035 bytes allocated.
==3359== For counts of detected errors, rerun with: -v
==3359== searching for pointers to 12 not-freed blocks.
==3359== checked 98,280 bytes.
==3359==
==3359== LEAK SUMMARY:
==3359== definitely lost: 0 bytes in 0 blocks.
==3359== possibly lost: 0 bytes in 0 blocks.
==3359== still reachable: 12,679 bytes in 12 blocks.
==3359== suppressed: 0 bytes in 0 blocks.
==3359== Rerun with --leak-check=full to see details of leaked memory.
ian@IanMallettU86:~/Desktop/C++/glLibC2/build$ valgrind ./glLibC2
valgrind: failed to start tool 'memcheck' for platform 'amd64-linux':
No such file or directory
ian@IanMallettU86:~/Desktop/C++/glLibC2/build$
--
David Chapman [email protected]
Chapman Consulting -- San Jose, CA
Software Development Done Right.
www.chapman-consulting-sj.com
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users