The ns-3 Network Simulator Project

Use valgrind to understand memory leaks using tcp-bulk-send.cc

Valgrind can be used to detect memory leaks or errors. ns-3 has valgrind support in its waf. Run the tcp-bulk-send.cc program available at examples/tcp with valgrind to understand memory leaks or errors. Edit the tcp-bulk-send.cc by commenting out the line number 131 which destroys the simulator and again run the same program with valgrind to observe memory leaks. Provide screenshots for the outputs in both the scenarios and document your understanding on memory leaks/errors and how valgrind helps to detect them.

valgrind must be installed to complete this task.

Task tags

  • valgrind
  • c++

Students who completed this task

hax0kartik, BoredPerson, InquisitivePenguin, ra1nst0rm3d, Kr0n0s, SaiMyGuy, howie

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
  • done_all Quality Assurance
close

2019