17 July 2012

valgrind

there are times when the code works in mac while it breaks in ubuntu.
munmap_chunk(): invalid pointer
the problem was that i was trying to set a minus array id.
this was found by
valgrind --leak-check=full --memcheck:leak-check=full --show-reachable=yes -v ./programName

No comments:

Post a Comment