Debugging RTPengine memory leaks, test failures, other memory issues

Publicado el: 12 enero 2023
en el canal de: RTPengine Tutorials & Presentations
348
2

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


En esta página del sitio puede ver el video en línea Debugging RTPengine memory leaks, test failures, other memory issues de Duración hora minuto segunda en buena calidad , que subió el usuario RTPengine Tutorials & Presentations 12 enero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 348 veces y le gustó 2 a los espectadores. Disfruta viendo!