Back to build
Raw log | Switch to full mode | Login

Test 'SyncedPrintersManagerTest.UpdatePrinter' completed with the following status(es): 'CRASH','SUCCESS' Test 'SyncedPrintersManagerTest.UpdatePrinter' had the following logs when run: ================================================================================ [ RUN ] SyncedPrintersManagerTest.UpdatePrinter ================================================================= ==9671==ERROR: AddressSanitizer: heap-use-after-free on address 0x61c000009890 at pc 0x562cdae704f0 bp 0x7fff2d2585d0 sp 0x7fff2d2585c8 READ of size 8 at 0x61c000009890 thread T0 #0 0x562cdae704ef in base::internal::SchedulerSequencedTaskRunner::PostDelayedTask(base::Location const&, base::OnceCallback<void ()>, base::TimeDelta) ./../../base/task/thread_pool/scheduler_sequenced_task_runner.cc:32:43 #1 0x562cdae76f24 in PostTask ./../../base/task_runner.cc:44:10 #2 0x562cdae76f24 in base::(anonymous namespace)::PostTaskAndReplyTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) ./../../base/task_runner.cc:38:0 #3 0x562cdae89101 in base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) ./../../base/threading/post_task_and_reply_impl.cc:138:34 #4 0x562cdae76ba2 in base::TaskRunner::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) ./../../base/task_runner.cc:50:43 #5 0x562cd3458c88 in bool base::PostTaskAndReplyWithResult<std::__1::unique_ptr<chromeos::(anonymous namespace)::TaskDataInternal, std::__1::default_delete<chromeos::(anonymous namespace)::TaskDataInternal> >, std::__1::unique_ptr<chromeos::(anonymous namespace)::TaskDataInternal, std::__1::default_delete<chromeos::(anonymous namespace)::TaskDataInternal> > >(base::TaskRunner*, base::Location const&, base::OnceCallback<std::__1::unique_ptr<chromeos::(anonymous namespace)::TaskDataInternal, std::__1::default_delete<chromeos::(anonymous namespace)::TaskDataInternal> > ()>, base::OnceCallback<void (std::__1::unique_ptr<chromeos::(anonymous namespace)::TaskDataInternal, std::__1::default_delete<chromeos::(anonymous namespace)::TaskDataInternal> >)>) ./../../base/task_runner_util.h:43:23 #6 0x562cd3455df5 in chromeos::(anonymous namespace)::BulkPrintersCalculatorImpl::SetAccessMode(chromeos::BulkPrintersCalculator::AccessMode) ./../../chrome/browser/chromeos/printing/bulk_printers_calculator.cc:282:5 #7 0x562cd3466a4d in chromeos::(anonymous namespace)::CalculatorsPoliciesBinderImpl::UpdateDeviceAccessMode() ./../../chrome/browser/chromeos/printing/calculators_policies_binder.cc:101:23 #8 0x562cd3466479 in chromeos::(anonymous namespace)::CalculatorsPoliciesBinderImpl::BindSettings(char const*, void (chromeos::(anonymous namespace)::CalculatorsPoliciesBinderImpl::*)()) ./../../chrome/browser/chromeos/printing/calculators_policies_binder.cc:145:5 #9 0x562cd34658de in CalculatorsPoliciesBinderImpl ./../../chrome/browser/chromeos/printing/calculators_policies_binder.cc:64:7 #10 0x562cd34658de in make_unique<chromeos::(anonymous namespace)::CalculatorsPoliciesBinderImpl, chromeos::CrosSettings *&, Profile *&> ./../../buildtools/third_party/libc++/trunk/include/memory:3131:0 #11 0x562cd34658de in chromeos::CalculatorsPoliciesBinder::Create(chromeos::CrosSettings*, Profile*) ./../../chrome/browser/chromeos/printing/calculators_policies_binder.cc:192:0 #12 0x562cd348a749 in EnterprisePrintersProviderImpl ./../../chrome/browser/chromeos/printing/enterprise_printers_provider.cc:52:26 #13 0x562cd348a749 in make_unique<chromeos::(anonymous namespace)::EnterprisePrintersProviderImpl, chromeos::CrosSettings *&, Profile *&> ./../../buildtools/third_party/libc++/trunk/include/memory:3131:0 #14 0x562cd348a749 in chromeos::EnterprisePrintersProvider::Create(chromeos::CrosSettings*, Profile*) ./../../chrome/browser/chromeos/printing/enterprise_printers_provider.cc:252:0 #15 0x562cd34bdb5f in SyncedPrintersManagerImpl ./../../chrome/browser/chromeos/printing/synced_printers_manager.cc:50:9 #16 0x562cd34bdb5f in make_unique<chromeos::(anonymous namespace)::SyncedPrintersManagerImpl, Profile *&, std::__1::unique_ptr<chromeos::PrintersSyncBridge, std::__1::default_delete<chromeos::PrintersSyncBridge> > > ./../../buildtools/third_party/libc++/trunk/include/memory:3131:0 #17 0x562cd34bdb5f in chromeos::SyncedPrintersManager::Create(Profile*, std::__1::unique_ptr<chromeos::PrintersSyncBridge, std::__1::default_delete<chromeos::PrintersSyncBridge> >) ./../../chrome/browser/chromeos/printing/synced_printers_manager.cc:226:0 #18 0x562cca711469 in chromeos::(anonymous namespace)::SyncedPrintersManagerTest::SyncedPrintersManagerTest() ./../../chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc:94:18 #19 0x562cca7158fa in SyncedPrintersManagerTest_UpdatePrinter_Test ./../../chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc:153:1 #20 0x562cca7158fa in testing::internal::TestFactoryImpl<chromeos::(anonymous namespace)::SyncedPrintersManagerTest_UpdatePrinter_Test>::CreateTest() ./../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460:0 #21 0x562ccb150510 in HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #22 0x562ccb150510 in testing::TestInfo::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2678:0 #23 0x562ccb151c56 in testing::TestSuite::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2818:28 #24 0x562ccb17b256 in testing::internal::UnitTestImpl::RunAllTests() ./../../third_party/googletest/src/googletest/src/gtest.cc:5276:44 #25 0x562ccb179d34 in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #26 0x562ccb179d34 in testing::UnitTest::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:4864:0 #27 0x562cd860c099 in RUN_ALL_TESTS ./../../third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 #28 0x562cd860c099 in base::TestSuite::Run() ./../../base/test/test_suite.cc:316:0 #29 0x562cd89443d8 in content::UnitTestTestSuite::Run() ./../../content/public/test/unittest_test_suite.cc:82:23 #30 0x562cd861729c in Run ./../../base/callback.h:97:12 #31 0x562cd861729c in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ./../../base/test/launcher/unit_test_launcher.cc:225:0 #32 0x562cd8616d60 in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ./../../base/test/launcher/unit_test_launcher.cc:575:10 #33 0x562cd85df4d1 in main ./../../chrome/test/base/run_all_unittests.cc:30:10 #34 0x7f6993f0ef44 in __libc_start_main ??:0:0 0x61c000009890 is located 16 bytes inside of 1704-byte region [0x61c000009880,0x61c000009f28) freed by thread T0 here: #0 0x562cc297ff6d in operator delete(void*) _asan_rtl_:3 #1 0x562cdae40e8d in base::ThreadPool::SetInstance(std::__1::unique_ptr<base::ThreadPool, std::__1::default_delete<base::ThreadPool> >) ./../../base/task/thread_pool/thread_pool.cc:79:3 #2 0x562cd85fb55d in base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() ./../../base/test/scoped_task_environment.cc:432:3 #3 0x562cca71164a in ~SyncedPrintersManagerTest ./../../chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc:91:7 #4 0x562cca71164a in chromeos::(anonymous namespace)::SyncedPrintersManagerTest_AddPrinter_Test::~SyncedPrintersManagerTest_AddPrinter_Test() ./../../chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc:133:0 #5 0x562ccb150883 in HandleExceptionsInMethodIfSupported<testing::Test, void> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #6 0x562ccb150883 in testing::TestInfo::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2694:0 #7 0x562ccb151c56 in testing::TestSuite::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2818:28 #8 0x562ccb17b256 in testing::internal::UnitTestImpl::RunAllTests() ./../../third_party/googletest/src/googletest/src/gtest.cc:5276:44 #9 0x562ccb179d34 in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #10 0x562ccb179d34 in testing::UnitTest::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:4864:0 #11 0x562cd860c099 in RUN_ALL_TESTS ./../../third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 #12 0x562cd860c099 in base::TestSuite::Run() ./../../base/test/test_suite.cc:316:0 #13 0x562cd89443d8 in content::UnitTestTestSuite::Run() ./../../content/public/test/unittest_test_suite.cc:82:23 #14 0x562cd861729c in Run ./../../base/callback.h:97:12 #15 0x562cd861729c in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ./../../base/test/launcher/unit_test_launcher.cc:225:0 #16 0x562cd8616d60 in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ./../../base/test/launcher/unit_test_launcher.cc:575:10 #17 0x562cd85df4d1 in main ./../../chrome/test/base/run_all_unittests.cc:30:10 #18 0x7f6993f0ef44 in __libc_start_main ??:0:0 previously allocated by thread T0 here: #0 0x562cc297f70d in operator new(unsigned long) _asan_rtl_:3 #1 0x562cd85fa0b4 in make_unique<base::internal::ThreadPoolImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > ./../../buildtools/third_party/libc++/trunk/include/memory:3131:28 #2 0x562cd85fa0b4 in base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) ./../../base/test/scoped_task_environment.cc:374:0 #3 0x562cc29a4951 in content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() ./../../content/public/test/test_browser_thread_bundle.h:131:13 #4 0x562cca711306 in chromeos::(anonymous namespace)::SyncedPrintersManagerTest::SyncedPrintersManagerTest() ./../../chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc:93:3 #5 0x562cca7111ba in SyncedPrintersManagerTest_AddPrinter_Test ./../../chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc:133:1 #6 0x562cca7111ba in testing::internal::TestFactoryImpl<chromeos::(anonymous namespace)::SyncedPrintersManagerTest_AddPrinter_Test>::CreateTest() ./../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460:0 #7 0x562ccb150510 in HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #8 0x562ccb150510 in testing::TestInfo::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2678:0 #9 0x562ccb151c56 in testing::TestSuite::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2818:28 #10 0x562ccb17b256 in testing::internal::UnitTestImpl::RunAllTests() ./../../third_party/googletest/src/googletest/src/gtest.cc:5276:44 #11 0x562ccb179d34 in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #12 0x562ccb179d34 in testing::UnitTest::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:4864:0 #13 0x562cd860c099 in RUN_ALL_TESTS ./../../third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 #14 0x562cd860c099 in base::TestSuite::Run() ./../../base/test/test_suite.cc:316:0 #15 0x562cd89443d8 in content::UnitTestTestSuite::Run() ./../../content/public/test/unittest_test_suite.cc:82:23 #16 0x562cd861729c in Run ./../../base/callback.h:97:12 #17 0x562cd861729c in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ./../../base/test/launcher/unit_test_launcher.cc:225:0 #18 0x562cd8616d60 in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ./../../base/test/launcher/unit_test_launcher.cc:575:10 #19 0x562cd85df4d1 in main ./../../chrome/test/base/run_all_unittests.cc:30:10 #20 0x7f6993f0ef44 in __libc_start_main ??:0:0 SUMMARY: AddressSanitizer: heap-use-after-free (/b/s/w/ir/out/Release/unit_tests+0x2cd814ef) Shadow bytes around the buggy address: 0x0c387fff92c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff92d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff92e0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x0c387fff92f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c387fff9300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c387fff9310: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff9320: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff9330: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff9340: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff9350: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c387fff9360: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==9671==ABORTING [ RUN ] SyncedPrintersManagerTest.UpdatePrinter [ OK ] SyncedPrintersManagerTest.UpdatePrinter (103 ms) ================================================================================