Results 1 to 5 of 5

Thread: Problems with Valgrind

  1. #1
    Join Date
    Dec 2010
    Beans
    3

    Unhappy Problems with Valgrind

    Okay so I recently got Valgrind to debug some of my C programs but it doesn't seem to be working. Has anyone recieved this error before and how did you deal with it?

    Sorry if this particular question had already been answered but I didn't know what exactly to search for.
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Problems with Valgrind

    What system are you running? on my 12.04 32-bit box, libc6-dbg is installed automatically as a dependency of valgrind

    Code:
    $ apt-cache depends valgrind
    valgrind
      Depends: libc6
      Depends: libc6-dbg
      Suggests: kcachegrind
      Suggests: alleyoop
      Suggests: valkyrie
      Recommends: gdb
      Conflicts: <valgrind-callgrind>
    You can check the presence / status of the libc6-dbg package on your system

    Code:
    $ dpkg -l | grep libc6

  3. #3
    Join Date
    Dec 2010
    Beans
    3

    Re: Problems with Valgrind

    I believe I do. I attached some pictures of my system and results after running your code.
    Attached Images Attached Images

  4. #4
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Problems with Valgrind

    You appear to have libc6-dev but not libc6-dbg

    Code:
    sudo apt-get install libc6-dbg

  5. #5
    Join Date
    Dec 2010
    Beans
    3

    Re: Problems with Valgrind

    Thanks man!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •