OatmealDome

steamrt valgrind FileSystemTests

May 14th, 2022
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.46 KB | None | 0 0
  1. (steamrt scout 0.20220315.0)root@4d8b76974616:/data/dolphin/build-debug# valgrind Binaries/Tests/FileSystemTest
  2. ==10031== Memcheck, a memory error detector
  3. ==10031== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
  4. ==10031== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
  5. ==10031== Command: Binaries/Tests/FileSystemTest
  6. ==10031==
  7. Running main() from gtest_main.cc
  8. [==========] Running 18 tests from 2 test cases.
  9. [----------] Global test environment set-up.
  10. [----------] 2 tests from FileSystem
  11. [ RUN ] FileSystem.BasicPathValidity
  12. [ OK ] FileSystem.BasicPathValidity (21 ms)
  13. [ RUN ] FileSystem.PathSplitting
  14. [ OK ] FileSystem.PathSplitting (19 ms)
  15. [----------] 2 tests from FileSystem (53 ms total)
  16.  
  17. [----------] 16 tests from FileSystemTest
  18. [ RUN ] FileSystemTest.EssentialDirectories
  19. [ OK ] FileSystemTest.EssentialDirectories (1461 ms)
  20. [ RUN ] FileSystemTest.CreateFile
  21. [ OK ] FileSystemTest.CreateFile (1478 ms)
  22. [ RUN ] FileSystemTest.CreateDirectory
  23. [ OK ] FileSystemTest.CreateDirectory (752 ms)
  24. [ RUN ] FileSystemTest.Delete
  25. [ OK ] FileSystemTest.Delete (1692 ms)
  26. [ RUN ] FileSystemTest.Rename
  27. ==10031== Invalid read of size 8
  28. ==10031== at 0x1057823: std::string::operator std::basic_string_view<char, std::char_traits<char> >() const (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  29. ==10031== by 0x27856C: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:185)
  30. ==10031== by 0x278664: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:189)
  31. ==10031== by 0x2753D1: IOS::HLE::FS::HostFileSystem::SaveFst() (FS.cpp:191)
  32. ==10031== by 0x2774CF: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:565)
  33. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  34. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  35. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  36. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  37. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  38. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  39. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  40. ==10031== Address 0xd20a5e0 is 0 bytes inside a block of size 28 free'd
  41. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  42. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  43. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  44. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  45. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  46. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  47. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  48. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  49. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  50. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  51. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  52. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  53. ==10031==
  54. ==10031== Invalid read of size 1
  55. ==10031== at 0x4C2D0E1: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  56. ==10031== by 0x274A77: IOS::HLE::FS::(anonymous namespace)::SerializedFstEntry::SetName(std::basic_string_view<char, std::char_traits<char> >) (FS.cpp:68)
  57. ==10031== by 0x278584: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:185)
  58. ==10031== by 0x278664: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:189)
  59. ==10031== by 0x2753D1: IOS::HLE::FS::HostFileSystem::SaveFst() (FS.cpp:191)
  60. ==10031== by 0x2774CF: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:565)
  61. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  62. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  63. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  64. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  65. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  66. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  67. ==10031== Address 0xd20a5fa is 26 bytes inside a block of size 28 free'd
  68. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  69. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  70. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  71. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  72. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  73. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  74. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  75. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  76. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  77. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  78. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  79. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  80. ==10031==
  81. ==10031== Invalid read of size 8
  82. ==10031== at 0x103DFA3: std::string::size() const (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  83. ==10031== by 0x26C74F: __gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (basic_string.h:6151)
  84. ==10031== by 0x27991F: _ZZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsENKUlRKT_E_clINS1_14HostFileSystem8FstEntryEEEDaS7_ (FS.cpp:99)
  85. ==10031== by 0x27994D: _ZN9__gnu_cxx5__ops10_Iter_predIZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EclINS_17__normal_iteratorIPNS4_14HostFileSystem8FstEntryESt6vectorISG_SaISG_EEEEEEbS8_ (predefined_ops.h:283)
  86. ==10031== by 0x279440: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_St26random_access_iterator_tag (stl_algo.h:148)
  87. ==10031== by 0x278EF8: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_ (stl_algo.h:161)
  88. ==10031== by 0x278846: _ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEEZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_ESF_SF_SF_T0_ (stl_algo.h:3963)
  89. ==10031== by 0x275833: IOS::HLE::FS::HostFileSystem::GetFstEntryForPath(std::string const&) (FS.cpp:227)
  90. ==10031== by 0x2776CD: IOS::HLE::FS::HostFileSystem::ReadDirectory(unsigned int, unsigned short, std::string const&) (FS.cpp:576)
  91. ==10031== by 0x260B80: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:195)
  92. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  93. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  94. ==10031== Address 0xd20a5e0 is 0 bytes inside a block of size 28 free'd
  95. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  96. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  97. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  98. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  99. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  100. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  101. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  102. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  103. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  104. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  105. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  106. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  107. ==10031==
  108. ==10031== Invalid read of size 8
  109. ==10031== at 0x103DFA3: std::string::size() const (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  110. ==10031== by 0x26C76F: __gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (basic_string.h:6152)
  111. ==10031== by 0x27991F: _ZZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsENKUlRKT_E_clINS1_14HostFileSystem8FstEntryEEEDaS7_ (FS.cpp:99)
  112. ==10031== by 0x27994D: _ZN9__gnu_cxx5__ops10_Iter_predIZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EclINS_17__normal_iteratorIPNS4_14HostFileSystem8FstEntryESt6vectorISG_SaISG_EEEEEEbS8_ (predefined_ops.h:283)
  113. ==10031== by 0x279417: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_St26random_access_iterator_tag (stl_algo.h:144)
  114. ==10031== by 0x278EF8: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_ (stl_algo.h:161)
  115. ==10031== by 0x278846: _ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEEZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_ESF_SF_SF_T0_ (stl_algo.h:3963)
  116. ==10031== by 0x275833: IOS::HLE::FS::HostFileSystem::GetFstEntryForPath(std::string const&) (FS.cpp:227)
  117. ==10031== by 0x2773C6: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:556)
  118. ==10031== by 0x260D0F: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:198)
  119. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  120. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  121. ==10031== Address 0xd20a5e0 is 0 bytes inside a block of size 28 free'd
  122. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  123. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  124. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  125. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  126. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  127. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  128. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  129. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  130. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  131. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  132. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  133. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  134. ==10031==
  135. ==10031== Invalid read of size 1
  136. ==10031== at 0x4C2DCAB: bcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  137. ==10031== by 0x269610: std::char_traits<char>::compare(char const*, char const*, unsigned long) (char_traits.h:325)
  138. ==10031== by 0x26C79B: __gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (basic_string.h:6152)
  139. ==10031== by 0x27991F: _ZZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsENKUlRKT_E_clINS1_14HostFileSystem8FstEntryEEEDaS7_ (FS.cpp:99)
  140. ==10031== by 0x27994D: _ZN9__gnu_cxx5__ops10_Iter_predIZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EclINS_17__normal_iteratorIPNS4_14HostFileSystem8FstEntryESt6vectorISG_SaISG_EEEEEEbS8_ (predefined_ops.h:283)
  141. ==10031== by 0x279417: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_St26random_access_iterator_tag (stl_algo.h:144)
  142. ==10031== by 0x278EF8: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_ (stl_algo.h:161)
  143. ==10031== by 0x278846: _ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEEZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_ESF_SF_SF_T0_ (stl_algo.h:3963)
  144. ==10031== by 0x275833: IOS::HLE::FS::HostFileSystem::GetFstEntryForPath(std::string const&) (FS.cpp:227)
  145. ==10031== by 0x2773C6: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:556)
  146. ==10031== by 0x260D0F: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:198)
  147. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  148. ==10031== Address 0xd20a5f8 is 24 bytes inside a block of size 28 free'd
  149. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  150. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  151. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  152. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  153. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  154. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  155. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  156. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  157. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  158. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  159. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  160. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  161. ==10031==
  162. ==10031== Invalid read of size 1
  163. ==10031== at 0x4C2DCC0: bcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  164. ==10031== by 0x269610: std::char_traits<char>::compare(char const*, char const*, unsigned long) (char_traits.h:325)
  165. ==10031== by 0x26C79B: __gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (basic_string.h:6152)
  166. ==10031== by 0x27991F: _ZZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsENKUlRKT_E_clINS1_14HostFileSystem8FstEntryEEEDaS7_ (FS.cpp:99)
  167. ==10031== by 0x27994D: _ZN9__gnu_cxx5__ops10_Iter_predIZN3IOS3HLE2FS12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EclINS_17__normal_iteratorIPNS4_14HostFileSystem8FstEntryESt6vectorISG_SaISG_EEEEEEbS8_ (predefined_ops.h:283)
  168. ==10031== by 0x279417: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_St26random_access_iterator_tag (stl_algo.h:144)
  169. ==10031== by 0x278EF8: _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEENS0_5__ops10_Iter_predIZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_EEESH_SH_SH_T0_ (stl_algo.h:161)
  170. ==10031== by 0x278846: _ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3IOS3HLE2FS14HostFileSystem8FstEntryESt6vectorIS6_SaIS6_EEEEZNS4_12_GLOBAL__N_116GetNamePredicateERKSsEUlRKT_E_ESF_SF_SF_T0_ (stl_algo.h:3963)
  171. ==10031== by 0x275833: IOS::HLE::FS::HostFileSystem::GetFstEntryForPath(std::string const&) (FS.cpp:227)
  172. ==10031== by 0x2773C6: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:556)
  173. ==10031== by 0x260D0F: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:198)
  174. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  175. ==10031== Address 0xd20a5f9 is 25 bytes inside a block of size 28 free'd
  176. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  177. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  178. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  179. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  180. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  181. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  182. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  183. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  184. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  185. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  186. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  187. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  188. ==10031==
  189. ==10031== Invalid read of size 4
  190. ==10031== at 0x10401AF: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  191. ==10031== by 0x27B708: IOS::HLE::FS::HostFileSystem::FstEntry::operator=(IOS::HLE::FS::HostFileSystem::FstEntry const&) (FS.h:62)
  192. ==10031== by 0x277473: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:561)
  193. ==10031== by 0x260D0F: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:198)
  194. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  195. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  196. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  197. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  198. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  199. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  200. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  201. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  202. ==10031== Address 0xd20a5f0 is 16 bytes inside a block of size 28 free'd
  203. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  204. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  205. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  206. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  207. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  208. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  209. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  210. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  211. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  212. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  213. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  214. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  215. ==10031==
  216. ==10031== Invalid free() / delete / delete[] / realloc()
  217. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  218. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  219. ==10031== by 0x27B708: IOS::HLE::FS::HostFileSystem::FstEntry::operator=(IOS::HLE::FS::HostFileSystem::FstEntry const&) (FS.h:62)
  220. ==10031== by 0x277473: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:561)
  221. ==10031== by 0x260D0F: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:198)
  222. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  223. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  224. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  225. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  226. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  227. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  228. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  229. ==10031== Address 0xd20a5e0 is 0 bytes inside a block of size 28 free'd
  230. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  231. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  232. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  233. ==10031== by 0x2608F5: FileSystemTest_Rename_Test::TestBody() (FileSystemTest.cpp:192)
  234. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  235. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  236. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  237. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  238. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  239. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  240. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  241. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  242. ==10031==
  243. [ OK ] FileSystemTest.Rename (106 ms)
  244. [ RUN ] FileSystemTest.RenameWithExistingTargetDirectory
  245. ==10031== Invalid read of size 8
  246. ==10031== at 0x1057823: std::string::operator std::basic_string_view<char, std::char_traits<char> >() const (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  247. ==10031== by 0x27856C: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:185)
  248. ==10031== by 0x278664: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:189)
  249. ==10031== by 0x278664: _ZZN3IOS3HLE2FS14HostFileSystem7SaveFstEvENKUlRKT_RKNS2_8FstEntryEE_clIS9_EEvS5_S8_ (FS.cpp:189)
  250. ==10031== by 0x2753D1: IOS::HLE::FS::HostFileSystem::SaveFst() (FS.cpp:191)
  251. ==10031== by 0x2774CF: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:565)
  252. ==10031== by 0x2615CB: FileSystemTest_RenameWithExistingTargetDirectory_Test::TestBody() (FileSystemTest.cpp:214)
  253. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  254. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  255. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  256. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  257. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  258. ==10031== Address 0xd2c25c0 is 0 bytes inside a block of size 26 free'd
  259. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  260. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  261. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  262. ==10031== by 0x2615CB: FileSystemTest_RenameWithExistingTargetDirectory_Test::TestBody() (FileSystemTest.cpp:214)
  263. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  264. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  265. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  266. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  267. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  268. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  269. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  270. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  271. ==10031==
  272. ==10031== Invalid read of size 4
  273. ==10031== at 0x103ED67: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  274. ==10031== by 0x27B52F: IOS::HLE::FS::HostFileSystem::FstEntry::~FstEntry() (FS.h:62)
  275. ==10031== by 0x2845CF: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:98)
  276. ==10031== by 0x2822AD: void std::_Destroy_aux<false>::__destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:108)
  277. ==10031== by 0x280049: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:137)
  278. ==10031== by 0x27E1BA: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*, std::allocator<IOS::HLE::FS::HostFileSystem::FstEntry>&) (stl_construct.h:206)
  279. ==10031== by 0x27C304: std::vector<IOS::HLE::FS::HostFileSystem::FstEntry, std::allocator<IOS::HLE::FS::HostFileSystem::FstEntry> >::~vector() (stl_vector.h:677)
  280. ==10031== by 0x27B523: IOS::HLE::FS::HostFileSystem::FstEntry::~FstEntry() (FS.h:62)
  281. ==10031== by 0x2845CF: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:98)
  282. ==10031== by 0x2822AD: void std::_Destroy_aux<false>::__destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:108)
  283. ==10031== by 0x280049: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:137)
  284. ==10031== by 0x27E1BA: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*, std::allocator<IOS::HLE::FS::HostFileSystem::FstEntry>&) (stl_construct.h:206)
  285. ==10031== Address 0xd2c25d0 is 16 bytes inside a block of size 26 free'd
  286. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  287. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  288. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  289. ==10031== by 0x2615CB: FileSystemTest_RenameWithExistingTargetDirectory_Test::TestBody() (FileSystemTest.cpp:214)
  290. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  291. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  292. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  293. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  294. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  295. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  296. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  297. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  298. ==10031==
  299. ==10031== Invalid free() / delete / delete[] / realloc()
  300. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  301. ==10031== by 0x103ED7D: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  302. ==10031== by 0x27B52F: IOS::HLE::FS::HostFileSystem::FstEntry::~FstEntry() (FS.h:62)
  303. ==10031== by 0x2845CF: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:98)
  304. ==10031== by 0x2822AD: void std::_Destroy_aux<false>::__destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:108)
  305. ==10031== by 0x280049: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:137)
  306. ==10031== by 0x27E1BA: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*, std::allocator<IOS::HLE::FS::HostFileSystem::FstEntry>&) (stl_construct.h:206)
  307. ==10031== by 0x27C304: std::vector<IOS::HLE::FS::HostFileSystem::FstEntry, std::allocator<IOS::HLE::FS::HostFileSystem::FstEntry> >::~vector() (stl_vector.h:677)
  308. ==10031== by 0x27B523: IOS::HLE::FS::HostFileSystem::FstEntry::~FstEntry() (FS.h:62)
  309. ==10031== by 0x2845CF: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry>(IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:98)
  310. ==10031== by 0x2822AD: void std::_Destroy_aux<false>::__destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:108)
  311. ==10031== by 0x280049: void std::_Destroy<IOS::HLE::FS::HostFileSystem::FstEntry*>(IOS::HLE::FS::HostFileSystem::FstEntry*, IOS::HLE::FS::HostFileSystem::FstEntry*) (stl_construct.h:137)
  312. ==10031== Address 0xd2c25c0 is 0 bytes inside a block of size 26 free'd
  313. ==10031== at 0x4C2A82E: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  314. ==10031== by 0x10401C1: std::string::assign(std::string const&) (in /data/dolphin/build-debug/Binaries/Tests/FileSystemTest)
  315. ==10031== by 0x2774C0: IOS::HLE::FS::HostFileSystem::Rename(unsigned int, unsigned short, std::string const&, std::string const&) (FS.cpp:564)
  316. ==10031== by 0x2615CB: FileSystemTest_RenameWithExistingTargetDirectory_Test::TestBody() (FileSystemTest.cpp:214)
  317. ==10031== by 0xFE9CD4: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2417)
  318. ==10031== by 0xFE53C0: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2472)
  319. ==10031== by 0xFCCD8D: testing::Test::Run() (gtest.cc:2491)
  320. ==10031== by 0xFCD469: testing::TestInfo::Run() (gtest.cc:2667)
  321. ==10031== by 0xFCDA09: testing::TestCase::Run() (gtest.cc:2785)
  322. ==10031== by 0xFD52BF: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5047)
  323. ==10031== by 0xFEAB53: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2417)
  324. ==10031== by 0xFE5CE0: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2472)
  325. ==10031==
  326. [ OK ] FileSystemTest.RenameWithExistingTargetDirectory (67 ms)
  327. [ RUN ] FileSystemTest.RenameWithExistingTargetFile
  328. [ OK ] FileSystemTest.RenameWithExistingTargetFile (1306 ms)
  329. [ RUN ] FileSystemTest.GetDirectoryStats
  330. [ OK ] FileSystemTest.GetDirectoryStats (1248 ms)
  331. [ RUN ] FileSystemTest.NonExistingFiles
  332. [ OK ] FileSystemTest.NonExistingFiles (45 ms)
  333. [ RUN ] FileSystemTest.Seek
  334. [ OK ] FileSystemTest.Seek (74 ms)
  335. [ RUN ] FileSystemTest.WriteAndSimpleReadback
  336. [ OK ] FileSystemTest.WriteAndSimpleReadback (57 ms)
  337. [ RUN ] FileSystemTest.WriteAndRead
  338. [ OK ] FileSystemTest.WriteAndRead (266 ms)
  339. [ RUN ] FileSystemTest.MultipleHandles
  340. [ OK ] FileSystemTest.MultipleHandles (1508 ms)
  341. [ RUN ] FileSystemTest.ReadDirectoryOnFile
  342. [ OK ] FileSystemTest.ReadDirectoryOnFile (1175 ms)
  343. [ RUN ] FileSystemTest.ReadDirectoryOrdering
  344. [ OK ] FileSystemTest.ReadDirectoryOrdering (95 ms)
  345. [ RUN ] FileSystemTest.CreateFullPath
  346. [ OK ] FileSystemTest.CreateFullPath (76 ms)
  347. [----------] 16 tests from FileSystemTest (11411 ms total)
  348.  
  349. [----------] Global test environment tear-down
  350. [==========] 18 tests from 2 test cases ran. (11516 ms total)
  351. [ PASSED ] 18 tests.
  352. ==10031==
  353. ==10031== HEAP SUMMARY:
  354. ==10031== in use at exit: 72,760 bytes in 3 blocks
  355. ==10031== total heap usage: 26,524 allocs, 26,523 frees, 9,338,257 bytes allocated
  356. ==10031==
  357. ==10031== LEAK SUMMARY:
  358. ==10031== definitely lost: 56 bytes in 2 blocks
  359. ==10031== indirectly lost: 0 bytes in 0 blocks
  360. ==10031== possibly lost: 0 bytes in 0 blocks
  361. ==10031== still reachable: 72,704 bytes in 1 blocks
  362. ==10031== suppressed: 0 bytes in 0 blocks
  363. ==10031== Rerun with --leak-check=full to see details of leaked memory
  364. ==10031==
  365. ==10031== For counts of detected and suppressed errors, rerun with: -v
  366. ==10031== ERROR SUMMARY: 23 errors from 11 contexts (suppressed: 2 from 2)
  367.  
Advertisement
Add Comment
Please, Sign In to add comment