Results 1 to 3 of 3

Thread: Valgrind error report question

  1. #1
    Join Date
    Aug 2007
    Location
    Bulgaria
    Beans
    271
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Valgrind error report question

    Hello, I need some help with valgrind`s output. I will attack valgrind`s log so if somebody have time to check on it and report why exactly there are these mysterious 27 errors. As far as I know I`ve freed all allocated memory blocks, but I still don`t get where the error is. The compiler does not complain. The program runs with no segfaults or other problems but in valgrind there are these strannge 27 errors form 11 contexts
    Please advice!
    Attached Files Attached Files
    ubuntu - humanity for me and for you

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,083
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Valgrind error report question

    Debugging without source code is hard. However, it looks like:
    1. You need to check what you are passing to printf in printTextNodeList.
    2. Something's not right in addTextNode or splitToData.
    3. Something's not right in clearTextNode (or perhaps memory's corrupted before you get there.)

  3. #3
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: Valgrind error report question

    --db-attach=yes and --track-origins=yes are two useful flags which might help

    also build your program with debugging information (-g) for better reports

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
  •