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 [0x00007FF6431563F2+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 [0x00007FF6431767E4+214] (C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:826) testing::internal::AssertHelper::operator= [0x00007FF643175409+275] (C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:408) ================================================================= ==3660==ERROR: AddressSanitizer: heap-use-after-free on address 0x120309403120 at pc 0x7ff649f84b3e bp 0x006bc171d120 sp 0x006bc171d168 READ of size 8 at 0x120309403120 thread T0 ==3660==*** WARNING: Failed to initialize DbgHelp! *** ==3660==*** Most likely this means that the app is already *** ==3660==*** using DbgHelp, possibly with incompatible flags. *** ==3660==*** Due to technical reasons, symbolization might crash *** ==3660==*** or produce wrong results. *** #0 0x7ff649f84b3d 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:290 #1 0x7ff6464f23e6 in base::`anonymous namespace'::PostTaskAndReplyTaskRunner::PostTask C:\b\s\w\ir\cache\builder\src\base\task_runner.cc:38 #2 0x7ff647e6fe4d in base::internal::PostTaskAndReplyImpl::PostTaskAndReply C:\b\s\w\ir\cache\builder\src\base\threading\post_task_and_reply_impl.cc:138 #3 0x7ff6464f2024 in base::TaskRunner::PostTaskAndReply C:\b\s\w\ir\cache\builder\src\base\task_runner.cc:50 #4 0x7ff645f7117f 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 0x7ff645f6fd0d 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 0x7ff645f6efa2 in device::PlatformSensorProviderWin::OnInitSensorManager C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_provider_win.cc:104 #7 0x7ff645f6e855 in device::PlatformSensorProviderWin::CreateSensorInternal C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_provider_win.cc:49 #8 0x7ff645f6bcc1 in device::PlatformSensorProviderBase::CreateSensor C:\b\s\w\ir\cache\builder\src\services\device\generic_sensor\platform_sensor_provider_base.cc:53 #9 0x7ff64182d942 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 0x7ff64182e12d 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 0x7ff643188acd in testing::Test::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2499 #12 0x7ff64318a8e0 in testing::TestInfo::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2675 #13 0x7ff64318bb7c in testing::TestSuite::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2805 #14 0x7ff6431a9033 in testing::internal::UnitTestImpl::RunAllTests C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:5243 #15 0x7ff6431a8608 in testing::UnitTest::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:4845 #16 0x7ff6471e252b in base::TestSuite::Run C:\b\s\w\ir\cache\builder\src\base\test\test_suite.cc:314 #17 0x7ff6471f41ac in base::`anonymous namespace'::LaunchUnitTestsInternal C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:225 #18 0x7ff6471f3d1f in base::LaunchUnitTests C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:575 #19 0x7ff641546064 in main C:\b\s\w\ir\cache\builder\src\services\test\run_all_unittests.cc:97 #20 0x7ff64eaf4ecb in __scrt_common_main_seh d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #21 0x7ffb5b782773 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180012773) #22 0x7ffb5d810d50 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x180070d50) 0x120309403120 is located 160 bytes inside of 1288-byte region [0x120309403080,0x120309403588) freed by thread T0 here: #0 0x7ff6463d9cc4 in free C:\b\rr\tmpswcnjy\w\src\third_party\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:52 #1 0x7ff647e882eb in base::internal::TaskSchedulerImpl::~TaskSchedulerImpl C:\b\s\w\ir\cache\builder\src\base\task\task_scheduler\task_scheduler_impl.cc:79 #2 0x7ff6464f1c4f in base::TaskScheduler::SetInstance C:\b\s\w\ir\cache\builder\src\base\task\task_scheduler\task_scheduler.cc:79 #3 0x7ff6471d6c26 in base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment C:\b\s\w\ir\cache\builder\src\base\test\scoped_task_environment.cc:432 #4 0x7ff64184c4a3 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 0x7ff64318aa1a in testing::TestInfo::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2681 #6 0x7ff64318bb7c in testing::TestSuite::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2805 #7 0x7ff6431a9033 in testing::internal::UnitTestImpl::RunAllTests C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:5243 #8 0x7ff6431a8608 in testing::UnitTest::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:4845 #9 0x7ff6471e252b in base::TestSuite::Run C:\b\s\w\ir\cache\builder\src\base\test\test_suite.cc:314 #10 0x7ff6471f41ac in base::`anonymous namespace'::LaunchUnitTestsInternal C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:225 #11 0x7ff6471f3d1f in base::LaunchUnitTests C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:575 #12 0x7ff641546064 in main C:\b\s\w\ir\cache\builder\src\services\test\run_all_unittests.cc:97 #13 0x7ff64eaf4ecb in __scrt_common_main_seh d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #14 0x7ffb5b782773 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180012773) #15 0x7ffb5d810d50 in RtlUserThreadStart+0x20 (C:\Windows\SYSTEM32\ntdll.dll+0x180070d50) previously allocated by thread T0 here: #0 0x7ff6463d9db4 in malloc C:\b\rr\tmpswcnjy\w\src\third_party\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:68 #1 0x7ff64eaf364a in operator new d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp:35 #2 0x7ff6471d5ae9 in base::test::ScopedTaskEnvironment::ScopedTaskEnvironment C:\b\s\w\ir\cache\builder\src\base\test\scoped_task_environment.cc:374 #3 0x7ff640c4d51a 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 0x7ff64184c271 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 0x7ff64318a8ab in testing::TestInfo::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2665 #6 0x7ff64318bb7c in testing::TestSuite::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:2805 #7 0x7ff6431a9033 in testing::internal::UnitTestImpl::RunAllTests C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:5243 #8 0x7ff6431a8608 in testing::UnitTest::Run C:\b\s\w\ir\cache\builder\src\third_party\googletest\src\googletest\src\gtest.cc:4845 #9 0x7ff6471e252b in base::TestSuite::Run C:\b\s\w\ir\cache\builder\src\base\test\test_suite.cc:314 #10 0x7ff6471f41ac in base::`anonymous namespace'::LaunchUnitTestsInternal C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:225 #11 0x7ff6471f3d1f in base::LaunchUnitTests C:\b\s\w\ir\cache\builder\src\base\test\launcher\unit_test_launcher.cc:575 #12 0x7ff641546064 in main C:\b\s\w\ir\cache\builder\src\services\test\run_all_unittests.cc:97 #13 0x7ff64eaf4ecb in __scrt_common_main_seh d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #14 0x7ffb5b782773 in BaseThreadInitThunk+0x13 (C:\Windows\System32\KERNEL32.DLL+0x180012773) #15 0x7ffb5d810d50 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:290 in base::internal::SchedulerSingleThreadTaskRunnerManager::SchedulerSingleThreadTaskRunner::PostDelayedTask Shadow bytes around the buggy address: 0x040f6a6805d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x040f6a6805e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x040f6a6805f0: fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x040f6a680600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x040f6a680610: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x040f6a680620: fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd 0x040f6a680630: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x040f6a680640: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x040f6a680650: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x040f6a680660: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x040f6a680670: 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 ==3660==ABORTING [ RUN ] PlatformSensorAndProviderTestWin.SensorIsNotSupported [ OK ] PlatformSensorAndProviderTestWin.SensorIsNotSupported (8 ms) ================================================================================