memdebug improvements #1980

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
@bagder
Member

bagder commented Oct 10, 2017

I bring two changes in this set:

  1. the memdebug system now also covers send, recv and socket properly. They're logged and they're affected by the "memlimit" system that's used by the torture tests which means that by setting the correct environment variable we can make those calls return failures as well. runtests.pl -t that covers more exit paths for each test.
  2. Starting now, valgrind is used for the torture tests as well if found and not disabled. Previously, the torture tests only used the internal memory debug system which is disabled when libcurl is built with the threaded resolver! Valgrind of course detects leaks and memory problems even better and with better error reporting. Using valgrind on torture tests makes them MUCH slower so beware.

bagder added some commits Oct 10, 2017

memdebug: trace send, recv and socket
... to allow them to be included in torture tests too.
runtests: use valgrind for torture as well
note: it makes them even more slow

@bagder bagder closed this in ad164ec Oct 14, 2017

@bagder bagder deleted the bagder/memdebug-sendrecv branch Oct 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment