Guest User

Leak analysis for Chromium issue 257003007

a guest
May 9th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.56 KB | None | 0 0
  1.  
  2. (true leak in PostTaskAndReplyImpl::PostTaskAndReply() if the reply is never ran, e.g., on shutdown -- NOT INTRODUCED BY THIS CL)
  3.  
  4. Direct leak of 72 byte(s) in 1 object(s) allocated from:
  5. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  6. #1 0x14b8e8b in base::internal::PostTaskAndReplyImpl::PostTaskAndReply(tracked_objects::Location const&, base::Callback\u003Cvoid ()> const&, base::Callback\u003Cvoid ()> const&) base/threading/post_task_and_reply_impl.cc:78
  7. #2 0x14b76da in base::TaskRunner::PostTaskAndReply(tracked_objects::Location const&, base::Callback\u003Cvoid ()> const&, base::Callback\u003Cvoid ()> const&) base/task_runner.cc:52
  8. #3 0x1411b8c in bool base::PostTaskAndReplyWithResult\u003Cbool, bool>(base::TaskRunner*, tracked_objects::Location const&, base::Callback\u003Cbool ()> const&, base::Callback\u003Cvoid (bool)> const&) base/task_runner_util.h:61
  9. #4 0x1416003 in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:130
  10. #5 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  11. #6 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  12. #7 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  13. #8 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  14. #9 0xc4ae61 in Release base/memory/ref_counted.h:131
  15. #10 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  16. #11 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  17. #12 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  18. #13 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  19. #14 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  20. #15 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  21. #16 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  22. #17 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  23. #18 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  24. #19 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  25. #20 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  26. #21 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  27. #22 0x1580e17 in Run base/callback.h:401
  28. #23 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  29. #24 0x157b9c2 in main base/test/run_all_unittests.cc:37
  30. #25 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  31.  
  32. (Uh?! Leak in std::string::reserve()?!)
  33.  
  34. Indirect leak of 1049 byte(s) in 1 object(s) allocated from:
  35. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  36. #1 0x7f1ca2a0d739 in __gnu_cxx::new_allocator\u003Cchar>::allocate(unsigned long, void const*) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/ext/new_allocator.h:92
  37. #2 0x7f1ca2a0cd2c in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator\u003Cchar> const&) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:609
  38. #3 0x7f1ca2a0cf04 in std::string::_Rep::_M_clone(std::allocator\u003Cchar> const&, unsigned long) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:631
  39. #4 0x7f1ca2a09c48 in std::string::reserve(unsigned long) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:512
  40. #5 0x14268d1 in base::JSONWriter::WriteWithOptions(base::Value const*, int, std::string*) base/json/json_writer.cc:33
  41. #6 0x14262f9 in SerializeInternal base/json/json_string_value_serializer.cc:35
  42. #7 0x14262f9 in JSONStringValueSerializer::Serialize(base::Value const&) base/json/json_string_value_serializer.cc:16
  43. #8 0x155afe7 in SerializeData base/prefs/json_pref_store.cc:361
  44. #9 0x155afe7 in non-virtual thunk to JsonPrefStore::SerializeData(std::string*) base/prefs/json_pref_store.cc:362
  45. #10 0x1416500 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:161
  46. #11 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  47. #12 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  48. #13 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  49. #14 0xc4ae61 in Release base/memory/ref_counted.h:131
  50. #15 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  51. #16 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  52. #17 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  53. #18 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  54. #19 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  55. #20 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  56. #21 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  57. #22 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  58. #23 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  59. #24 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  60. #25 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  61. #26 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  62. #27 0x1580e17 in Run base/callback.h:401
  63. #28 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  64. #29 0x157b9c2 in main base/test/run_all_unittests.cc:37
  65. #30 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  66.  
  67. (Uh?! Leak in base::MessageLoop?! -- usage hasn't changed in this CL unless this is caused by the fact that the reply in PostTaskAndReply() is also leaked?)
  68.  
  69. Indirect leak of 480 byte(s) in 1 object(s) allocated from:
  70. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  71. #1 0x144a389 in allocate /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/ext/new_allocator.h:92
  72. #2 0x144a389 in _M_allocate_node /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:525
  73. #3 0x144a389 in _M_create_nodes /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:619
  74. #4 0x144a389 in std::_Deque_base\u003Cbase::PendingTask, std::allocator\u003Cbase::PendingTask> >::_M_initialize_map(unsigned long) /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:593
  75. #5 0x143ee95 in _Deque_base /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:452
  76. #6 0x143ee95 in deque /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:772
  77. #7 0x143ee95 in scoped_ptr base/pending_task.h:50
  78. #8 0x143ee95 in base::MessageLoop::MessageLoop(base::MessageLoop::Type) base/message_loop/message_loop.cc:135
  79. #9 0xc58581 in JsonPrefStoreTest base/prefs/json_pref_store_unittest.cc:86
  80. #10 0xc58581 in JsonPrefStoreTest_RemoveClearsEmptyParent_Test base/prefs/json_pref_store_unittest.cc:309
  81. #11 0xc58581 in testing::internal::TestFactoryImpl\u003Cbase::JsonPrefStoreTest_RemoveClearsEmptyParent_Test>::CreateTest() testing/gtest/include/gtest/internal/gtest-internal.h:443
  82. #12 0x1610f10 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::TestFactoryBase, testing::Test *> testing/gtest/src/gtest.cc:2045
  83. #13 0x1610f10 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2228
  84. #14 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  85. #15 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  86. #16 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  87. #17 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  88. #18 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  89. #19 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  90. #20 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  91. #21 0x1580e17 in Run base/callback.h:401
  92. #22 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  93. #23 0x157b9c2 in main base/test/run_all_unittests.cc:37
  94. #24 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  95.  
  96. (again in MessageLoop?!)
  97.  
  98. Indirect leak of 152 byte(s) in 1 object(s) allocated from:
  99. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  100. #1 0x143f8cd in base::MessageLoop::Init() base/message_loop/message_loop.cc:380
  101. #2 0x143f49f in base::MessageLoop::MessageLoop(base::MessageLoop::Type) base/message_loop/message_loop.cc:136
  102. #3 0xc58581 in JsonPrefStoreTest base/prefs/json_pref_store_unittest.cc:86
  103. #4 0xc58581 in JsonPrefStoreTest_RemoveClearsEmptyParent_Test base/prefs/json_pref_store_unittest.cc:309
  104. #5 0xc58581 in testing::internal::TestFactoryImpl\u003Cbase::JsonPrefStoreTest_RemoveClearsEmptyParent_Test>::CreateTest() testing/gtest/include/gtest/internal/gtest-internal.h:443
  105. #6 0x1610f10 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::TestFactoryBase, testing::Test *> testing/gtest/src/gtest.cc:2045
  106. #7 0x1610f10 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2228
  107. #8 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  108. #9 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  109. #10 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  110. #11 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  111. #12 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  112. #13 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  113. #14 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  114. #15 0x1580e17 in Run base/callback.h:401
  115. #16 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  116. #17 0x157b9c2 in main base/test/run_all_unittests.cc:37
  117. #18 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  118.  
  119. (again in std::string::reserve()?!)
  120.  
  121. Indirect leak of 93 byte(s) in 1 object(s) allocated from:
  122. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  123. #1 0x7f1ca2a0d739 in __gnu_cxx::new_allocator\u003Cchar>::allocate(unsigned long, void const*) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/ext/new_allocator.h:92
  124. #2 0x7f1ca2a0cd2c in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator\u003Cchar> const&) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:609
  125. #3 0x7f1ca2a0cf04 in std::string::_Rep::_M_clone(std::allocator\u003Cchar> const&, unsigned long) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:631
  126. #4 0x7f1ca2a09c48 in std::string::reserve(unsigned long) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:512
  127. #5 0x7f1ca2a0a391 in std::string::append(unsigned long, char) /build/buildd/gcc-4.6-4.6.3/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:290
  128. #6 0x14011b3 in base::FilePath::Append(std::string const&) const base/files/file_path.cc:510
  129. #7 0x14042eb in base::FilePath::AppendASCII(base::BasicStringPiece\u003Cstd::string> const&) const base/files/file_path.cc:528
  130. #8 0xc4a837 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:310
  131. #9 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  132. #10 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  133. #11 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  134. #12 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  135. #13 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  136. #14 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  137. #15 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  138. #16 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  139. #17 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  140. #18 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  141. #19 0x1580e17 in Run base/callback.h:401
  142. #20 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  143. #21 0x157b9c2 in main base/test/run_all_unittests.cc:37
  144. #22 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  145.  
  146. (again in MessageLoop?)
  147.  
  148. Indirect leak of 64 byte(s) in 1 object(s) allocated from:
  149. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  150. #1 0x144a321 in allocate /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/ext/new_allocator.h:92
  151. #2 0x144a321 in _M_allocate_map /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:536
  152. #3 0x144a321 in std::_Deque_base\u003Cbase::PendingTask, std::allocator\u003Cbase::PendingTask> >::_M_initialize_map(unsigned long) /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:581
  153. #4 0x143ee95 in _Deque_base /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:452
  154. #5 0x143ee95 in deque /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_deque.h:772
  155. #6 0x143ee95 in scoped_ptr base/pending_task.h:50
  156. #7 0x143ee95 in base::MessageLoop::MessageLoop(base::MessageLoop::Type) base/message_loop/message_loop.cc:135
  157. #8 0xc58581 in JsonPrefStoreTest base/prefs/json_pref_store_unittest.cc:86
  158. #9 0xc58581 in JsonPrefStoreTest_RemoveClearsEmptyParent_Test base/prefs/json_pref_store_unittest.cc:309
  159. #10 0xc58581 in testing::internal::TestFactoryImpl\u003Cbase::JsonPrefStoreTest_RemoveClearsEmptyParent_Test>::CreateTest() testing/gtest/include/gtest/internal/gtest-internal.h:443
  160. #11 0x1610f10 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::TestFactoryBase, testing::Test *> testing/gtest/src/gtest.cc:2045
  161. #12 0x1610f10 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2228
  162. #13 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  163. #14 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  164. #15 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  165. #16 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  166. #17 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  167. #18 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  168. #19 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  169. #20 0x1580e17 in Run base/callback.h:401
  170. #21 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  171. #22 0x157b9c2 in main base/test/run_all_unittests.cc:37
  172. #23 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  173.  
  174. (this is the BindState for the original reply callback being leaked)
  175.  
  176. Indirect leak of 48 byte(s) in 1 object(s) allocated from:
  177. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  178. #1 0x1415ecd in Bind\u003Cvoid (base::ImportantFileWriter::*)(bool), base::WeakPtr\u003Cbase::ImportantFileWriter> > base/bind.h:117
  179. #2 0x1415ecd in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:135
  180. #3 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  181. #4 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  182. #5 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  183. #6 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  184. #7 0xc4ae61 in Release base/memory/ref_counted.h:131
  185. #8 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  186. #9 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  187. #10 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  188. #11 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  189. #12 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  190. #13 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  191. #14 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  192. #15 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  193. #16 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  194. #17 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  195. #18 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  196. #19 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  197. #20 0x1580e17 in Run base/callback.h:401
  198. #21 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  199. #22 0x157b9c2 in main base/test/run_all_unittests.cc:37
  200. #23 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  201.  
  202. (again leaking the reply's bind state)
  203.  
  204. Indirect leak of 48 byte(s) in 1 object(s) allocated from:
  205. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  206. #1 0x1411935 in Bind\u003Cvoid (*)(const base::Callback\u003Cbool ()> &, bool *), base::Callback\u003Cbool ()>, bool *> base/bind.h:168
  207. #2 0x1411935 in bool base::PostTaskAndReplyWithResult\u003Cbool, bool>(base::TaskRunner*, tracked_objects::Location const&, base::Callback\u003Cbool ()> const&, base::Callback\u003Cvoid (bool)> const&) base/task_runner_util.h:63
  208. #3 0x1416003 in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:130
  209. #4 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  210. #5 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  211. #6 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  212. #7 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  213. #8 0xc4ae61 in Release base/memory/ref_counted.h:131
  214. #9 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  215. #10 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  216. #11 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  217. #12 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  218. #13 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  219. #14 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  220. #15 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  221. #16 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  222. #17 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  223. #18 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  224. #19 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  225. #20 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  226. #21 0x1580e17 in Run base/callback.h:401
  227. #22 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  228. #23 0x157b9c2 in main base/test/run_all_unittests.cc:37
  229. #24 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  230.  
  231. (again leaking the reply's bind state)
  232.  
  233. Indirect leak of 48 byte(s) in 1 object(s) allocated from:
  234. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  235. #1 0x1411a5c in Bind\u003Cvoid (*)(const base::Callback\u003Cvoid (bool)> &, bool *), base::Callback\u003Cvoid (bool)>, base::internal::OwnedWrapper\u003Cbool> > base/bind.h:168
  236. #2 0x1411a5c in bool base::PostTaskAndReplyWithResult\u003Cbool, bool>(base::TaskRunner*, tracked_objects::Location const&, base::Callback\u003Cbool ()> const&, base::Callback\u003Cvoid (bool)> const&) base/task_runner_util.h:65
  237. #3 0x1416003 in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:130
  238. #4 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  239. #5 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  240. #6 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  241. #7 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  242. #8 0xc4ae61 in Release base/memory/ref_counted.h:131
  243. #9 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  244. #10 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  245. #11 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  246. #12 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  247. #13 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  248. #14 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  249. #15 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  250. #16 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  251. #17 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  252. #18 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  253. #19 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  254. #20 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  255. #21 0x1580e17 in Run base/callback.h:401
  256. #22 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  257. #23 0x157b9c2 in main base/test/run_all_unittests.cc:37
  258. #24 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  259.  
  260. (again leaking the reply's bind state)
  261.  
  262. Indirect leak of 40 byte(s) in 1 object(s) allocated from:
  263. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  264. #1 0x1415d20 in Bind\u003Cbool (*)(const base::FilePath &, const std::basic_string\u003Cchar> &), base::FilePath, std::basic_string\u003Cchar> > base/bind.h:168
  265. #2 0x1415d20 in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:134
  266. #3 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  267. #4 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  268. #5 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  269. #6 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  270. #7 0xc4ae61 in Release base/memory/ref_counted.h:131
  271. #8 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  272. #9 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  273. #10 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  274. #11 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  275. #12 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  276. #13 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  277. #14 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  278. #15 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  279. #16 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  280. #17 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  281. #18 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  282. #19 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  283. #20 0x1580e17 in Run base/callback.h:401
  284. #21 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  285. #22 0x157b9c2 in main base/test/run_all_unittests.cc:37
  286. #23 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  287.  
  288. (again base::MessageLoop)
  289.  
  290. Indirect leak of 32 byte(s) in 1 object(s) allocated from:
  291. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  292. #1 0x143f962 in base::MessageLoop::Init() base/message_loop/message_loop.cc:381
  293. #2 0x143f49f in base::MessageLoop::MessageLoop(base::MessageLoop::Type) base/message_loop/message_loop.cc:136
  294. #3 0xc58581 in JsonPrefStoreTest base/prefs/json_pref_store_unittest.cc:86
  295. #4 0xc58581 in JsonPrefStoreTest_RemoveClearsEmptyParent_Test base/prefs/json_pref_store_unittest.cc:309
  296. #5 0xc58581 in testing::internal::TestFactoryImpl\u003Cbase::JsonPrefStoreTest_RemoveClearsEmptyParent_Test>::CreateTest() testing/gtest/include/gtest/internal/gtest-internal.h:443
  297. #6 0x1610f10 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::TestFactoryBase, testing::Test *> testing/gtest/src/gtest.cc:2045
  298. #7 0x1610f10 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2228
  299. #8 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  300. #9 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  301. #10 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  302. #11 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  303. #12 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  304. #13 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  305. #14 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  306. #15 0x1580e17 in Run base/callback.h:401
  307. #16 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  308. #17 0x157b9c2 in main base/test/run_all_unittests.cc:37
  309. #18 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  310.  
  311. (weak ref inside leaked BindState)
  312.  
  313. Indirect leak of 8 byte(s) in 1 object(s) allocated from:
  314. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  315. #1 0x143eb03 in base::internal::WeakReferenceOwner::GetRef() const base/memory/weak_ptr.cc:55
  316. #2 0x1415e61 in GetWeakPtr base/memory/weak_ptr.h:270
  317. #3 0x1415e61 in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:136
  318. #4 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  319. #5 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  320. #6 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  321. #7 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  322. #8 0xc4ae61 in Release base/memory/ref_counted.h:131
  323. #9 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  324. #10 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  325. #11 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  326. #12 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  327. #13 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  328. #14 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  329. #15 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  330. #16 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  331. #17 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  332. #18 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  333. #19 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  334. #20 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  335. #21 0x1580e17 in Run base/callback.h:401
  336. #22 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  337. #23 0x157b9c2 in main base/test/run_all_unittests.cc:37
  338. #24 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  339.  
  340. (adapters for PostTaskAndReplyWithResult with leaked reply)
  341.  
  342. Indirect leak of 1 byte(s) in 1 object(s) allocated from:
  343. #0 0x4e064b in operator new(unsigned long) /usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
  344. #1 0x1411902 in bool base::PostTaskAndReplyWithResult\u003Cbool, bool>(base::TaskRunner*, tracked_objects::Location const&, base::Callback\u003Cbool ()> const&, base::Callback\u003Cvoid (bool)> const&) base/task_runner_util.h:60
  345. #2 0x1416003 in base::ImportantFileWriter::WriteNow(std::string const&) base/files/important_file_writer.cc:130
  346. #3 0x1416511 in base::ImportantFileWriter::DoScheduledWrite() base/files/important_file_writer.cc:162
  347. #4 0x155a90f in CommitPendingWrite base/prefs/json_pref_store.cc:279
  348. #5 0x155a90f in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:352
  349. #6 0x155ab1d in JsonPrefStore::~JsonPrefStore() base/prefs/json_pref_store.cc:351
  350. #7 0xc4ae61 in Release base/memory/ref_counted.h:131
  351. #8 0xc4ae61 in ~scoped_refptr base/memory/ref_counted.h:289
  352. #9 0xc4ae61 in base::JsonPrefStoreTest_RemoveClearsEmptyParent_Test::TestBody() base/prefs/json_pref_store_unittest.cc:326
  353. #10 0x160ee78 in HandleExceptionsInMethodIfSupported\u003Ctesting::Test, void> testing/gtest/src/gtest.cc:2045
  354. #11 0x160ee78 in testing::Test::Run() testing/gtest/src/gtest.cc:2061
  355. #12 0x1610f29 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
  356. #13 0x1611cb6 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
  357. #14 0x16228ca in testing::internal::UnitTestImpl::RunAllTests() testing/gtest/src/gtest.cc:4065
  358. #15 0x1621f00 in HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool> testing/gtest/src/gtest.cc:2045
  359. #16 0x1621f00 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
  360. #17 0x159c83c in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
  361. #18 0x159c83c in base::TestSuite::Run() base/test/test_suite.cc:206
  362. #19 0x157bb5c in (anonymous namespace)::RunTestSuite(int, char**) base/test/run_all_unittests.cc:25
  363. #20 0x1580e17 in Run base/callback.h:401
  364. #21 0x1580e17 in base::(anonymous namespace)::LaunchUnitTestsInternal(int, char**, base::Callback\u003Cint ()> const&, int) base/test/launcher/unit_test_launcher.cc:494
  365. #22 0x157b9c2 in main base/test/run_all_unittests.cc:37
  366. #23 0x7f1ca239f76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
  367.  
  368. SUMMARY: AddressSanitizer: 2135 byte(s) leaked in 13 allocation(s).
Advertisement
Add Comment
Please, Sign In to add comment