compilation and debug setup

This commit is contained in:
KTRosenberg 2017-08-06 19:40:13 -04:00
parent 791f923892
commit 46752e64a5
3 changed files with 53948 additions and 1 deletions

View File

@ -25,7 +25,7 @@ ExternalProject_Add(taglib
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wno-unused-result -Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -fsanitize=address,undefined")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
if (${LINK_STATICALLY} MATCHES "true")

146
debugging/valgrind_a.txt Normal file
View File

@ -0,0 +1,146 @@
==20832== 8 bytes in 1 blocks are definitely lost in loss record 14 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0xCCB4023: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libtaglibreader.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 15 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0xCFD97F2: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libpulseout.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 16 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x1096EE52: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libnullout.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 17 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x10B74AC2: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libm4adecoder.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 18 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x11221752: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libflacdecoder.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 19 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x11427F82: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/liboggdecoder.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 20 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x11838562: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libnomaddecoder.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 8 bytes in 1 blocks are definitely lost in loss record 21 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x11A77202: GetPlugin (in /home/toby/projects/open_src/musikcube/bin/plugins/libalsaout.so)
==20832== by 0x7C9360: musik::core::PluginFactory::LoadPlugins() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8E0E: musik::core::PluginFactory::PluginFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7C8CCB: musik::core::PluginFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7E8115: musik::core::Indexer::Indexer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3508: musik::core::library::LocalLibrary::LocalLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B3234: musik::core::library::LocalLibrary::Create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B02C2: musik::core::LibraryFactory::AddLibrary(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B00BB: musik::core::LibraryFactory::LibraryFactory() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AFF06: musik::core::LibraryFactory::Instance() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7B06C0: musik::core::LibraryFactory::Libraries() (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 1,412 (152 direct, 1,260 indirect) bytes in 1 blocks are definitely lost in loss record 720 of 757
==20832== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x754121: musik::cube::LogWindow::LogWindow(cursespp::IWindow*) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x6DF5A2: musik::cube::ConsoleLayout::ConsoleLayout(musik::core::audio::ITransport&, std::shared_ptr<musik::core::ILibrary>) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x702BBD: musik::cube::MainLayout::MainLayout(cursespp::App&, musik::core::audio::PlaybackService&, musik::glue::audio::MasterTransport&, std::shared_ptr<musik::core::ILibrary>) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x6C5DD4: main (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 7,769 bytes in 1 blocks are definitely lost in loss record 743 of 757
==20832== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x7D3572: musik::core::FileToByteArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char**, int&, bool) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7ADC7C: loadLocaleData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AE537: musik::core::i18n::Locale::SetSelectedLocale(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AE275: musik::core::i18n::Locale::Initialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x6C5893: main (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== 7,769 bytes in 1 blocks are definitely lost in loss record 744 of 757
==20832== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20832== by 0x7D3572: musik::core::FileToByteArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char**, int&, bool) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7ADC7C: loadLocaleData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AE6AE: musik::core::i18n::Locale::SetSelectedLocale(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x7AE275: musik::core::i18n::Locale::Initialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832== by 0x6C5893: main (in /home/toby/projects/open_src/musikcube/bin/musikcube)
==20832==
==20832== LEAK SUMMARY:
==20832== definitely lost: 15,754 bytes in 11 blocks
==20832== indirectly lost: 1,260 bytes in 16 blocks
==20832== possibly lost: 0 bytes in 0 blocks
==20832== still reachable: 1,120,638 bytes in 3,919 blocks
==20832== suppressed: 0 bytes in 0 blocks
==20832== Reachable blocks (those to which a pointer was found) are not shown.
==20832== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==20832==
==20832== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 0 from 0)
==20832== ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 0 from 0)

53801
src/tags Normal file

File diff suppressed because it is too large Load Diff