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

Test 'PlatformSensorAndProviderTestWin.SensorIsNotSupported' completed with the following status(es): 'CRASH','SUCCESS' Test 'PlatformSensorAndProviderTestWin.SensorIsNotSupported' had the following logs when run: ================================================================================ [ RUN ] PlatformSensorAndProviderTestWin.SensorIsNotSupported ../../services/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc(198): error: Expected equality of these values: ((HRESULT)0L) Which is: 0 CoInitialize(nullptr) Which is: 1 Stack trace: Backtrace: StackTraceGetter::CurrentStackTrace [0x00007FF608EC0832+362] (C:\b\s\w\ir\cache\builder\src\third_party\googletest\custom\gtest\internal\custom\stack_trace_getter.cc:22) testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop [0x00007FF608EE0D70+214] (C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:826) testing::internal::AssertHelper::operator= [0x00007FF608EDF995+275] (C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:408) ================================================================= ==6528==ERROR: AddressSanitizer: heap-use-after-free on address 0x121c2e4830e8 at pc 0x7ff60fe446ec bp 0x00490a50cfc0 sp 0x00490a50d008 READ of size 8 at 0x121c2e4830e8 thread T0 ==6528==*** WARNING: Failed to initialize DbgHelp! *** ==6528==*** Most likely this means that the app is already *** ==6528==*** using DbgHelp, possibly with incompatible flags. *** ==6528==*** Due to technical reasons, symbolization might crash *** ==6528==*** or produce wrong results. *** #0 0x7ff60fe446eb in base::internal::SchedulerSingleThreadTaskRunnerManager::SchedulerSingleThreadTaskRunner::PostDelayedTask C:\b\s\w\ir\cache\builder\src\base\task\task_scheduler\scheduler_single_thread_task_runner_manager.cc:294 #1 0x7ff60c273546 in base::`anonymous namespace'::PostTaskAndReplyTaskRunner::PostTask C:\b\s\w\ir\cache\builder\src\base\task_runner.cc:38 #2 0x7ff60dc6b39d in base::internal::PostTaskAndReplyImpl::PostTaskAndReply C:\b\s\w\ir\cache\builder\src\base\threading\post_task_and_reply_impl.cc:138 #3 0x7ff60c273184 in base::TaskRunner::PostTaskAndReply C:\b\s\w\ir\cache\builder\src\base\task_runner.cc:50 #4 0x7ff60bcf325f in base::PostTaskAndReplyWithResult<std::__1::unique_ptr<device::PlatformSensorReaderWin,std::__1::default_delete<device::PlatformSensorReaderWin> >,std::__1::unique_ptr<device::PlatformSensorReaderWin,std::__1::default_delete<device::PlatformSensorReaderWin> > > C:\b\s\w\ir\cache\builder\src\base\task_runner_util.h:43 #5 0x7ff60bcf1ded in base::PostTaskAndReplyWithResult<std::__1::unique_ptr<device::PlatformSensorReaderWin,std::__1::default_delete<device::PlatformSensorReaderWin> >,std::__1::unique_ptr<device::PlatformSensorReaderWin,std::__1::default_delete<device::PlatformSensorReaderWin> > > C:\b\s\w\ir\cache\builder\src\base\task_runner_util.h:62 #6 0x7ff60bcf1082 in device::PlatformSensorProviderWin::OnInitSensorManager C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_provider_win.cc:104 #7 0x7ff60bcf0935 in device::PlatformSensorProviderWin::CreateSensorInternal C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_provider_win.cc:49 #8 0x7ff60bcedefc in device::PlatformSensorProviderBase::CreateSensor C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_provider_base.cc:53 #9 0x7ff6075874de in device::PlatformSensorAndProviderTestWin::CreateSensor C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_and_provider_unittest_win.cc:226 #10 0x7ff607587cc9 in device::PlatformSensorAndProviderTestWin_SensorIsNotSupported_Test::TestBody C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_and_provider_unittest_win.cc:418 #11 0x7ff608ef3747 in testing::Test::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2499 #12 0x7ff608ef555a in testing::TestInfo::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2675 #13 0x7ff608ef67f6 in testing::TestSuite::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2805 #14 0x7ff608f13caf in testing::internal::UnitTestImpl::RunAllTests C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:5243 #15 0x7ff608f13284 in testing::UnitTest::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:4845 #16 0x7ff60cfc0e2f in base::TestSuite::Run C:\b\s\w\ir\cache\builder\src\base\test\test_suite.cc:316 #17 0x7ff60cfd2a34 in base::`anonymous namespace'::LaunchUnitTestsInternal C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:225 #18 0x7ff60cfd25a7 in base::LaunchUnitTests C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:575 #19 0x7ff6072a30c4 in main C:\b\s\w\ir\cache\builder\src\services\test\run_all_unittests.cc:97 #20 0x7ff6148d6b0b in __scrt_common_main_seh d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #21 0x7ffc7b1f2773 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180012773) #22 0x7ffc7d7f0d50 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x180070d50) 0x121c2e4830e8 is located 104 bytes inside of 1216-byte region [0x121c2e483080,0x121c2e483540) freed by thread T0 here: #0 0x7ff60c159904 in free C:\b\rr\tmpswcnjy\w\src\third_party\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:52 #1 0x7ff60dc8365b in base::internal::TaskSchedulerImpl::~TaskSchedulerImpl C:\b\s\w\ir\cache\builder\src\base\task\task_scheduler\task_scheduler_impl.cc:78 #2 0x7ff60c272daf in base::TaskScheduler::SetInstance C:\b\s\w\ir\cache\builder\src\base\task\task_scheduler\task_scheduler.cc:79 #3 0x7ff60cfb5566 in base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment C:\b\s\w\ir\cache\builder\src\base\test\scoped_task_environment.cc:432 #4 0x7ff6075a603f in device::PlatformSensorAndProviderTestWin_SensorStarted_Test::~PlatformSensorAndProviderTestWin_SensorStarted_Test C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_and_provider_unittest_win.cc:403 #5 0x7ff608ef5694 in testing::TestInfo::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2681 #6 0x7ff608ef67f6 in testing::TestSuite::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2805 #7 0x7ff608f13caf in testing::internal::UnitTestImpl::RunAllTests C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:5243 #8 0x7ff608f13284 in testing::UnitTest::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:4845 #9 0x7ff60cfc0e2f in base::TestSuite::Run C:\b\s\w\ir\cache\builder\src\base\test\test_suite.cc:316 #10 0x7ff60cfd2a34 in base::`anonymous namespace'::LaunchUnitTestsInternal C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:225 #11 0x7ff60cfd25a7 in base::LaunchUnitTests C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:575 #12 0x7ff6072a30c4 in main C:\b\s\w\ir\cache\builder\src\services\test\run_all_unittests.cc:97 #13 0x7ff6148d6b0b in __scrt_common_main_seh d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #14 0x7ffc7b1f2773 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180012773) #15 0x7ffc7d7f0d50 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x180070d50) previously allocated by thread T0 here: #0 0x7ff60c1599f4 in malloc C:\b\rr\tmpswcnjy\w\src\third_party\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:68 #1 0x7ff6148d528a in operator new d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp:35 #2 0x7ff60cfb4429 in base::test::ScopedTaskEnvironment::ScopedTaskEnvironment C:\b\s\w\ir\cache\builder\src\base\test\scoped_task_environment.cc:374 #3 0x7ff6069aea8a in base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::MainThreadType,void> C:\b\s\w\ir\cache\builder\src\base\test\scoped_task_environment.h:143 #4 0x7ff6075a5e0d in testing::internal::TestFactoryImpl<device::PlatformSensorAndProviderTestWin_SensorIsNotImplemented_Test>::CreateTest C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\include\gtest\internal\gtest-internal.h:461 #5 0x7ff608ef5525 in testing::TestInfo::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2665 #6 0x7ff608ef67f6 in testing::TestSuite::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2805 #7 0x7ff608f13caf in testing::internal::UnitTestImpl::RunAllTests C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:5243 #8 0x7ff608f13284 in testing::UnitTest::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:4845 #9 0x7ff60cfc0e2f in base::TestSuite::Run C:\b\s\w\ir\cache\builder\src\base\test\test_suite.cc:316 #10 0x7ff60cfd2a34 in base::`anonymous namespace'::LaunchUnitTestsInternal C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:225 #11 0x7ff60cfd25a7 in base::LaunchUnitTests C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:575 #12 0x7ff6072a30c4 in main C:\b\s\w\ir\cache\builder\src\services\test\run_all_unittests.cc:97 #13 0x7ff6148d6b0b in __scrt_common_main_seh d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #14 0x7ffc7b1f2773 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180012773) #15 0x7ffc7d7f0d50 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x180070d50) SUMMARY: AddressSanitizer: heap-use-after-free C:\b\s\w\ir\cache\builder\src\base\task\task_scheduler\scheduler_single_thread_task_runner_manager.cc:294 in base::internal::SchedulerSingleThreadTaskRunnerManager::SchedulerSingleThreadTaskRunner::PostDelayedTask Shadow bytes around the buggy address: 0x042bb41105c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x042bb41105d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x042bb41105e0: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x042bb41105f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x042bb4110600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x042bb4110610: fd fd fd fd fd fd fd fd fd fd fd fd fd[fd]fd fd 0x042bb4110620: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x042bb4110630: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x042bb4110640: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x042bb4110650: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x042bb4110660: 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 ==6528==ABORTING [ RUN ] PlatformSensorAndProviderTestWin.SensorIsNotSupported [ OK ] PlatformSensorAndProviderTestWin.SensorIsNotSupported (8 ms) ================================================================================