[ RUN ] SamplesTests/Tests.Parse/12
==================
WARNING: ThreadSanitizer: data race (pid=3424)
Write of size 1 at 0x7b480006bda8 by thread T8:
#0 pthread_mutex_destroy <null> (libtsan.so.0+0x2c6c9)
#1 vlc_mutex_destroy ../../src/posix/thread.c:136 (libvlccore.so.9+0x132c1b)
Previous atomic read of size 1 at 0x7b480006bda8 by thread T26:
#0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
#1 vlc_mutex_lock ../../src/posix/thread.c:142 (libvlccore.so.9+0x132c6d)
#2 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/include/c++/8/bits/shared_ptr_base.h:155 (libmedialibrary.so.0+0x297fc3)
#3 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/include/c++/8/bits/shared_ptr_base.h:728 (libmedialibrary.so.0+0x297fc3)
#4 std::__shared_ptr<libvlc_media_t, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (libmedialibrary.so.0+0x297fc3)
#5 std::shared_ptr<libvlc_media_t>::~shared_ptr() /usr/include/c++/8/bits/shared_ptr.h:103 (libmedialibrary.so.0+0x297fc3)
#6 VLC::Internal<libvlc_media_t, void (*)(libvlc_media_t*)>::~Internal() /home/chouquette/dev/prefix/include/vlcpp/Internal.hpp:40 (libmedialibrary.so.0+0x297fc3)
#7 VLC::Media::~Media() /home/chouquette/dev/prefix/include/vlcpp/Media.hpp:39 (libmedialibrary.so.0+0x297fc3)
#8 medialibrary::parser::VLCMetadataService::run(medialibrary::parser::IItem&) ../src/metadata_services/vlc/VLCMetadataService.cpp:61 (libmedialibrary.so.0+0x297fc3)
#9 medialibrary::parser::Worker::mainloop() ../src/parser/ParserWorker.cpp:210 (libmedialibrary.so.0+0x2475fc)
#10 void std::__invoke_impl<void, void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*>(std::__invoke_memfun_deref, void (medialibrary::parser::Worker::*&&)(), medialibrary::parser::Worker*&&) /usr/include/c++/8/bits/invoke.h:73 (libmedialibrary.so.0+0x2482a4)
#11 std::__invoke_result<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*>::type std::__invoke<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*>(void (medialibrary::parser::Worker::*&&)(), medialibrary::parser::Worker*&&) /usr/include/c++/8/bits/invoke.h:95 (libmedialibrary.so.0+0x2482a4)
#12 decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)())) std::thread::_Invoker<std::tuple<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) /usr/include/c++/8/thread:244 (libmedialibrary.so.0+0x2482a4)
#13 std::thread::_Invoker<std::tuple<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*> >::operator()() /usr/include/c++/8/thread:253 (libmedialibrary.so.0+0x2482a4)
#14 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*> > >::_M_run() /usr/include/c++/8/thread:196 (libmedialibrary.so.0+0x2482a4)
#15 <null> <null> (libstdc++.so.6+0xbbb2e)
Location is heap block of size 368 at 0x7b480006bd00 allocated by thread T26:
#0 calloc <null> (libtsan.so.0+0x2b323)
#1 input_item_NewExt ../../src/input/item.c:1057 (libvlccore.so.9+0x99f15)
#2 medialibrary::parser::Worker::mainloop() ../src/parser/ParserWorker.cpp:210 (libmedialibrary.so.0+0x2475fc)
#3 void std::__invoke_impl<void, void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*>(std::__invoke_memfun_deref, void (medialibrary::parser::Worker::*&&)(), medialibrary::parser::Worker*&&) /usr/include/c++/8/bits/invoke.h:73 (libmedialibrary.so.0+0x2482a4)
#4 std::__invoke_result<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*>::type std::__invoke<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*>(void (medialibrary::parser::Worker::*&&)(), medialibrary::parser::Worker*&&) /usr/include/c++/8/bits/invoke.h:95 (libmedialibrary.so.0+0x2482a4)
#5 decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)())) std::thread::_Invoker<std::tuple<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) /usr/include/c++/8/thread:244 (libmedialibrary.so.0+0x2482a4)
#6 std::thread::_Invoker<std::tuple<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*> >::operator()() /usr/include/c++/8/thread:253 (libmedialibrary.so.0+0x2482a4)
#7 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (medialibrary::parser::Worker::*)(), medialibrary::parser::Worker*> > >::_M_run() /usr/include/c++/8/thread:196 (libmedialibrary.so.0+0x2482a4)
#8 <null> <null> (libstdc++.so.6+0xbbb2e)
Thread T8 (tid=3446, running) created by thread T7 at:
#0 pthread_create <null> (libtsan.so.0+0x2be1b)
#1 vlc_clone_attr ../../src/posix/thread.c:421 (libvlccore.so.9+0x1336e5)
Thread T26 (tid=3592, running) created by main thread at:
#0 pthread_create <null> (libtsan.so.0+0x2be1b)
#1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
#2 medialibrary::parser::Worker::parse(std::shared_ptr<medialibrary::parser::Task>) ../src/parser/ParserWorker.cpp:103 (libmedialibrary.so.0+0x2448bb)
#3 medialibrary::parser::Parser::parse(std::shared_ptr<medialibrary::parser::Task>) ../src/parser/Parser.cpp:69 (libmedialibrary.so.0+0x23ceba)
#4 medialibrary::parser::Parser::restore() ../src/parser/Parser.cpp:123 (libmedialibrary.so.0+0x23c80f)
#5 medialibrary::parser::Parser::start() ../src/parser/Parser.cpp:80 (libmedialibrary.so.0+0x23c95f)
#6 medialibrary::MediaLibrary::startParser() ../src/MediaLibrary.cpp:855 (libmedialibrary.so.0+0x154277)
#7 medialibrary::MediaLibrary::start() ../src/MediaLibrary.cpp:444 (libmedialibrary.so.0+0x157c9d)
#8 Tests::SetUp() ../test/samples/Tester.cpp:174 (samples+0x461bf)
#9 void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ../googletest/src/gtest.cc:2078 (libgtest.so.0+0x48227)
#10 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ../googletest/src/gtest.cc:2114 (libgtest.so.0+0x48227)
#11 testing::Test::Run() ../googletest/src/gtest.cc:2146 (libgtest.so.0+0x3bc8c)
#12 testing::TestInfo::Run() ../googletest/src/gtest.cc:2326 (libgtest.so.0+0x3be4c)
#13 testing::TestCase::Run() ../googletest/src/gtest.cc:2444 (libgtest.so.0+0x3bffc)
#14 testing::internal::UnitTestImpl::RunAllTests() ../googletest/src/gtest.cc:4315 (libgtest.so.0+0x3c4a4)
#15 bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ../googletest/src/gtest.cc:2078 (libgtest.so.0+0x48853)
#16 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ../googletest/src/gtest.cc:2114 (libgtest.so.0+0x48853)
#17 testing::UnitTest::Run() ../googletest/src/gtest.cc:3926 (libgtest.so.0+0x3c7c6)
#18 RUN_ALL_TESTS() ../googletest/include/gtest/gtest.h:2288 (samples+0x2b810)
#19 main ../test/samples/main.cpp:302 (samples+0x2b810)