Skip to content

Conversation

@wdoekes
Copy link
Member

@wdoekes wdoekes commented Jun 23, 2015

To run valgrind:

# make sipp without optimization
make CFLAGS="-g -O0" CXXFLAGS="-g -O0"

# run sipp with valgrind
valgrind --partial-loads-ok=yes --show-leak-kinds=all \
  --leak-check=full \
  sipp SIPP_ARGUMENTS | cat

# (the extra cat disables curses, which can show distracting leaks)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static char* get_inet_address(struct sockaddr_storage& addr, char* dst, int len)

Might be a little nicer. But I'm not particularly concerned.

@rkday
Copy link
Contributor

rkday commented Jul 11, 2015

Should we turn those "to run with valgrind" instructions into a Makefile target (make vg_run, make vg_test?).

wdoekes referenced this pull request Jul 12, 2015
To run valgrind:

    # make sipp without optimization
    make CFLAGS="-g -O0" CXXFLAGS="-g -O0"

    # run sipp with valgrind
    valgrind --partial-loads-ok=yes --show-leak-kinds=all \
      --leak-check=full \
      sipp SIPP_ARGUMENTS | cat

    # (the extra cat disables curses, which can show distracting leaks)

See also the new regression test in regress/github-#0156.
wdoekes referenced this pull request Jul 12, 2015
To run valgrind:

    # make sipp without optimization
    make CFLAGS="-g -O0" CXXFLAGS="-g -O0"

    # run sipp with valgrind
    valgrind --partial-loads-ok=yes --show-leak-kinds=all \
      --leak-check=full \
      sipp SIPP_ARGUMENTS | cat

    # (the extra cat disables curses, which can show distracting leaks)

See also the new regression test in regress/github-#0156.
To run valgrind:

    # make sipp without optimization
    make CFLAGS="-g -O0" CXXFLAGS="-g -O0"

    # run sipp with valgrind
    valgrind --partial-loads-ok=yes --show-leak-kinds=all \
      --leak-check=full \
      sipp SIPP_ARGUMENTS | cat

    # (the extra cat disables curses, which can show distracting leaks)

See also the new regression test in regress/github-#0156.
@wdoekes wdoekes merged commit 8b5c962 into master Jul 12, 2015
@wdoekes
Copy link
Member Author

wdoekes commented Jul 12, 2015

Should we turn those "to run with valgrind" instructions into a Makefile target (make vg_run, make vg_test?).

I added a regression test instead.

@wdoekes wdoekes deleted the fix/valgrind branch January 21, 2016 14:09
wdoekes added a commit that referenced this pull request Apr 23, 2018
jeannotlanglois added a commit to jeannotlanglois/sipp that referenced this pull request May 10, 2018
Will need to find a way to setup the environment on my machine to avoid the need of submitting one pull request everytime to check...
wdoekes added a commit that referenced this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants