Leaks and failure in adaptive tests
Testing FakeEsOut
timestamp 1000001
timestamp 190888435355
timestamp 95443717679
timestamp 477218588387
first.continuous 100000001first.segment.demux 100000001first 60000001
first 60000001
first 60000001
Testing Inheritables
Testing SegmentBase
Testing SegmentList
Testing SegmentTemplate
Testing Timeline
Testing Conversions
Testing TemplatedUri
->
$
-> $
/Num$$ber.m4v
* token $$ -1
-> /Num$ber.m4v
/$Number$.m4v
* token $Number$ -1
-> /123.m4v
/$$$Number$.m4v
* token $$ -1
* token $Number$ -1
-> /$456789123.m4v
$Number%d$
* token $Number%d$ 1
-> 123
/$Number%5d$.m4v
* token $Number%5d$ 5
-> /00001.m4v
/$Number%2d$.m4v
* token $Number%2d$ 2
-> /123456.m4v
/$RepresentationID$.m4v
* token $RepresentationID$ -1
-> /foobar.m4v
/$RepresentationID$.m4v
* token $RepresentationID$ -1
-> /$Time$.m4v
$RepresentationID$/$Number$$Time$$$
* token $RepresentationID$ -1
* token $Number$ -1
* token $Time$ -1
* token $$ -1
-> id/123123$
Testing BufferingLogic
Testing CommandsQueue
Testing M3U8MasterPlaylist
Testing M3U8Playlist
Testing SegmentTracker
=================================================================
==372343==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 232 byte(s) in 1 object(s) allocated from:
#0 0x7f5c87295811 in operator new(unsigned long) /usr/src/debug/gcc/libsanitizer/asan/asan_new_delete.cpp:99
#1 0x55590fd94631 in SegmentList_test() ../../modules/demux/adaptive/test/playlist/SegmentList.cpp:149
#2 0x55590fd6c23c in operator() ../../modules/demux/adaptive/test/test.cpp:43
#3 0x55590fd6c23c in main ../../modules/demux/adaptive/test/test.cpp:43
#4 0x7f5c8526230f in __libc_start_call_main (/usr/lib/libc.so.6+0x2d30f)
Direct leak of 232 byte(s) in 1 object(s) allocated from:
#0 0x7f5c87295811 in operator new(unsigned long) /usr/src/debug/gcc/libsanitizer/asan/asan_new_delete.cpp:99
#1 0x55590fd94349 in SegmentList_test() ../../modules/demux/adaptive/test/playlist/SegmentList.cpp:149
#2 0x55590fd6c23c in operator() ../../modules/demux/adaptive/test/test.cpp:43
#3 0x55590fd6c23c in main ../../modules/demux/adaptive/test/test.cpp:43
#4 0x7f5c8526230f in __libc_start_call_main (/usr/lib/libc.so.6+0x2d30f)
SUMMARY: AddressSanitizer: 464 byte(s) leaked in 2 allocation(s).
FAIL adaptive_test (exit status: 1)
The leak happens on the error path, so it also means that the adaptive test is failing.
Edited by Alexandre Janniaux