Command lines used:
Regular launch of rtpengine (adjust arguments as needed):
$ demon/rtpengine --config-file=none -t -1 -i wlp47s0 -n 2223 -f -L 7 -E
The `-f` option is the only important one as it makes it run rtpengine in the foreground.
Launch under valgrind:
$ G_SLICE=always-malloc valgrind --leak-check=full daemon/rtpengine --config-file=none -t -1 -i wlp47s0 -n 2223 -f -L 7 -E
Compile with libasan:
$ DO_ASAN_FLAGS=1 make
Other options useful for libasan operation:
$ export ASAN_OPTIONS=verify_asan_link_order=0
$ export UBSAN_OPTIONS=print_stacktrace=1
$ export G_SLICE=always-malloc
Run test suite:
$ make check
Run test suite with libasan build:
$ make asan-check
Compile preload library for manual execution of test suites:
t/ $ make tests-preload.so
Launch rtpengine under valgrind for execution of a test suite (arguments taken from test script):
$ LD_PRELOAD=t/tests-preload.so G_SLICE=always-malloc valgrind --leak-check=full daemon/rtpengine --config-file=none -t -1 -i 203.0.113.1 -i 2001:db8:4321::1 -n 2223 -c 12345 -f -L 7 -E -u 2222 --silence-detect=1
Execute the actual test suite:
t/ $ LD_PRELOAD=./tests-preload.so RTPE_TEST_NO_LAUNCH=1 perl -I../perl auto-daemon-tests.pl
Nesta página do site você pode assistir ao vídeo on-line Debugging RTPengine memory leaks, test failures, other memory issues duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário RTPengine Tutorials & Presentations 12 Janeiro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 348 vezes e gostou 2 espectadores. Boa visualização!