On 3/15/2012 12:14 PM, Ian Mallett wrote:
On Thu, Mar 15, 2012 at 12:29 PM, David Chapman <[email protected] <mailto:[email protected]>> wrote:

    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...)

Ah . . . I think that's it; the file I was trying to check was built on a different, 64-bit machine, and this is running on a virtual 32-bit machine.

ian@IanMallettU86:~/Desktop/C++/glLibC2/build$ file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
ian@IanMallettU86:~/Desktop/C++/glLibC2/build$ file ./glLibC2
./glLibC2: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

So, I don't suppose there's any option to get a Valgrind 64-bit installation for 32-bit that would actually work? I'd have to get a 64-bit OS, then. I need a 64-bit distro of Ubuntu 9.04 . . . hmmmmm.

Well, running a 64-bit application under a 32-bit OS is kind of hard.  ;-)

    ==3359== Using valgrind-3.4.1-Debian, a dynamic binary
    instrumentation framework.

Hmmm. Like I said, I sudo apt-get installed that. How else can I get an up-to-date version?

Thanks,
Ian

valgrind runs as a user executable, so you can download and compile the new version at http://www.valgrind.org/ and install it locally. Of course, if you have root access on your virtual machine you can install it in /usr/local/bin.

--
    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

Reply via email to