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

Test 'LayerTreeHostTestImageAnimationDrawImage.RunMultiThread_DelegatingRenderer' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'LayerTreeHostTestImageAnimationDrawImage.RunMultiThread_DelegatingRenderer' had the following logs when run: ================================================================================ [ RUN ] LayerTreeHostTestImageAnimationDrawImage.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageAnimationDrawImage.RunMultiThread_DelegatingRenderer (2549 ms) [----------] 1 test from LayerTreeHostTestImageAnimationDrawImage (2549 ms total) [----------] 1 test from LayerTreeHostTestImageAnimationDrawImageShader [ RUN ] LayerTreeHostTestImageAnimationDrawImageShader.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageAnimationDrawImageShader.RunMultiThread_DelegatingRenderer (2612 ms) [----------] 1 test from LayerTreeHostTestImageAnimationDrawImageShader (2612 ms total) [----------] 1 test from LayerTreeHostTestImageAnimationDrawRecordShader [ RUN ] LayerTreeHostTestImageAnimationDrawRecordShader.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageAnimationDrawRecordShader.RunMultiThread_DelegatingRenderer (2639 ms) [----------] 1 test from LayerTreeHostTestImageAnimationDrawRecordShader (2639 ms total) [----------] 1 test from LayerTreeHostTestImageAnimationPaintFilter [ RUN ] LayerTreeHostTestImageAnimationPaintFilter.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageAnimationPaintFilter.RunMultiThread_DelegatingRenderer (2605 ms) [----------] 1 test from LayerTreeHostTestImageAnimationPaintFilter (2605 ms total) [----------] 1 test from LayerTreeHostTestImageAnimationSynchronousScheduling [ RUN ] LayerTreeHostTestImageAnimationSynchronousScheduling.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageAnimationSynchronousScheduling.RunMultiThread_DelegatingRenderer (2588 ms) [----------] 1 test from LayerTreeHostTestImageAnimationSynchronousScheduling (2588 ms total) [----------] 1 test from LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw [ RUN ] LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw.RunMultiThread_DelegatingRenderer ================== WARNING: ThreadSanitizer: data race (pid=13974) Read of size 8 at 0x7b080002c178 by thread T7: #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (cc_unittests+0x951f07) #1 __construct_backward<std::__1::pair<unsigned long, int> > buildtools/third_party/libc++/trunk/include/memory:1699:17 (cc_unittests+0x1c26cd4) #2 __swap_out_circular_buffer buildtools/third_party/libc++/trunk/include/vector:957 (cc_unittests+0x1c26cd4) #3 std::__1::__wrap_iter<std::__1::pair<unsigned long, int>*> std::__1::vector<std::__1::pair<unsigned long, int>, std::__1::allocator<std::__1::pair<unsigned long, int> > >::emplace<unsigned long const&, int>(std::__1::__wrap_iter<std::__1::pair<unsigned long, int> const*>, unsigned long const&, int&&) buildtools/third_party/libc++/trunk/include/vector:1883 (cc_unittests+0x1c26cd4) #4 unsafe_emplace<const unsigned long &, int> base/containers/flat_tree.h:953:22 (cc_unittests+0x1c90c7a) #5 operator[] base/containers/flat_map.h:293 (cc_unittests+0x1c90c7a) #6 cc::FakePaintImageGenerator::GetPixels(SkImageInfo const&, void*, unsigned long, unsigned long, int, unsigned int) cc/test/fake_paint_image_generator.cc (cc_unittests+0x1c90c7a) #7 DecodeFromGenerator cc/paint/paint_image.cc:220:34 (cc_unittests+0x1d1bd9c) #8 cc::PaintImage::Decode(void*, SkImageInfo*, sk_sp<SkColorSpace>, unsigned long, int) const cc/paint/paint_image.cc:188 (cc_unittests+0x1d1bd9c) #9 cc::SoftwareImageDecodeCacheUtils::DoDecodeImage(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, SkColorType, int) cc/tiles/software_image_decode_cache_utils.cc:76:29 (cc_unittests+0x1bcc0a9) #10 cc::SoftwareImageDecodeCache::DecodeImageIfNecessary(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCacheUtils::CacheEntry*) cc/tiles/software_image_decode_cache.cc:357:25 (cc_unittests+0x1bc6ac9) #11 cc::SoftwareImageDecodeCache::DecodeImageInTask(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCache::DecodeTaskType) cc/tiles/software_image_decode_cache.cc:319:3 (cc_unittests+0x1bc66c9) #12 cc::(anonymous namespace)::SoftwareImageDecodeTaskImpl::RunOnWorkerThread() cc/tiles/software_image_decode_cache.cc:79:13 (cc_unittests+0x1bc9122) #13 cc::SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() cc/raster/single_thread_task_graph_runner.cc:157:28 (cc_unittests+0x1b6ee0e) #14 Run cc/raster/single_thread_task_graph_runner.cc:120:10 (cc_unittests+0x1b6f05f) #15 non-virtual thunk to cc::SingleThreadTaskGraphRunner::Run() cc/raster/single_thread_task_graph_runner.cc (cc_unittests+0x1b6f05f) #16 base::DelegateSimpleThread::Run() base/threading/simple_thread.cc:98:13 (cc_unittests+0x200dec8) #17 base::SimpleThread::ThreadMain() base/threading/simple_thread.cc:75:3 (cc_unittests+0x200dd2b) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (cc_unittests+0x204bf54) Previous write of size 4 at 0x7b080002c178 by thread T4: #0 cc::FakePaintImageGenerator::GetPixels(SkImageInfo const&, void*, unsigned long, unsigned long, int, unsigned int) cc/test/fake_paint_image_generator.cc (cc_unittests+0x1c90cb2) #1 cc::SkiaPaintImageGenerator::onGetPixels(SkImageInfo const&, void*, unsigned long, SkImageGenerator::Options const&) cc/paint/skia_paint_image_generator.cc:30:34 (cc_unittests+0x1d4c650) #2 SkImageGenerator::getPixels(SkImageInfo const&, void*, unsigned long) third_party/skia/src/core/SkImageGenerator.cpp:30:18 (cc_unittests+0x15f0857) #3 generate_pixels(SkImageGenerator*, SkPixmap const&, int, int) third_party/skia/src/image/SkImage_Lazy.cpp:168:15 (cc_unittests+0x16c71cd) #4 SkImage_Lazy::getROPixels(SkBitmap*, SkImage::CachingHint) const third_party/skia/src/image/SkImage_Lazy.cpp:197:14 (cc_unittests+0x16c6dab) #5 SkBaseDevice::drawImageRect(SkImage const*, SkRect const*, SkRect const&, SkPaint const&, SkCanvas::SrcRectConstraint) third_party/skia/src/core/SkDevice.cpp:145:23 (cc_unittests+0x15bb04f) #6 SkCanvas::onDrawImage(SkImage const*, float, float, SkPaint const*) third_party/skia/src/core/SkCanvas.cpp:2371:27 (cc_unittests+0x15a21f9) #7 SkCanvas::drawImage(SkImage const*, float, float, SkPaint const*) third_party/skia/src/core/SkCanvas.cpp:1808:11 (cc_unittests+0x159cc69) #8 cc::DrawImageOp::RasterWithFlags(cc::DrawImageOp const*, cc::PaintFlags const*, SkCanvas*, cc::PlaybackParams const&) cc/paint/paint_op_buffer.cc:1248:11 (cc_unittests+0x1d20a89) #9 RasterWithFlags cc/paint/paint_op_buffer.cc:125:5 (cc_unittests+0x1d27540) #10 operator() cc/paint/paint_op_buffer.cc:160 (cc_unittests+0x1d27540) #11 cc::$_36::__invoke(cc::PaintOp const*, cc::PaintFlags const*, SkCanvas*, cc::PlaybackParams const&) cc/paint/paint_op_buffer.cc:160 (cc_unittests+0x1d27540) #12 RasterWithFlags cc/paint/paint_op_buffer.cc:2082:3 (cc_unittests+0x1d252b8) #13 cc::PaintOpBuffer::Playback(SkCanvas*, cc::PlaybackParams const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > const*) const cc/paint/paint_op_buffer.cc:2439 (cc_unittests+0x1d252b8) #14 cc::DisplayItemList::Raster(SkCanvas*, cc::ImageProvider*) const cc/paint/display_item_list.cc:81:20 (cc_unittests+0x1d0061f) #15 viz::SoftwareRenderer::DrawPictureQuad(viz::PictureDrawQuad const*) components/viz/service/display/software_renderer.cc:386:28 (cc_unittests+0x1e4bf7c) #16 viz::SoftwareRenderer::DoDrawQuad(viz::DrawQuad const*, gfx::QuadF const*) components/viz/service/display/software_renderer.cc:290:7 (cc_unittests+0x1e4ba72) #17 viz::DirectRenderer::DrawRenderPass(viz::RenderPass const*) components/viz/service/display/direct_renderer.cc:703:5 (cc_unittests+0x1d69e6f) #18 viz::DirectRenderer::DrawRenderPassAndExecuteCopyRequests(viz::RenderPass*) components/viz/service/display/direct_renderer.cc:567:5 (cc_unittests+0x1d68d6a) #19 viz::DirectRenderer::DrawFrame(std::__1::vector<std::__1::unique_ptr<viz::RenderPass, std::__1::default_delete<viz::RenderPass> >, std::__1::allocator<std::__1::unique_ptr<viz::RenderPass, std::__1::default_delete<viz::RenderPass> > > >*, float, gfx::Size const&) components/viz/service/display/direct_renderer.cc:421:5 (cc_unittests+0x1d689ec) #20 viz::Display::DrawAndSwap() components/viz/service/display/display.cc:491:16 (cc_unittests+0x1e35832) #21 viz::DisplayScheduler::DrawAndSwap() components/viz/service/display/display_scheduler.cc:216:27 (cc_unittests+0x1dd44cd) #22 viz::DisplayScheduler::AttemptDrawAndSwap() components/viz/service/display/display_scheduler.cc:488:14 (cc_unittests+0x1dd39e7) #23 viz::DisplayScheduler::OnBeginFrameDeadline() components/viz/service/display/display_scheduler.cc:504:19 (cc_unittests+0x1dd30b4) #24 Invoke<void (viz::DisplayScheduler::*)(), const base::WeakPtr<viz::DisplayScheduler> &> base/bind_internal.h:499:12 (cc_unittests+0x1dd5fda) #25 MakeItSo<void (viz::DisplayScheduler::*const &)(), const base::WeakPtr<viz::DisplayScheduler> &> base/bind_internal.h:619 (cc_unittests+0x1dd5fda) #26 RunImpl<void (viz::DisplayScheduler::*const &)(), const std::__1::tuple<base::WeakPtr<viz::DisplayScheduler> > &, 0> base/bind_internal.h:672 (cc_unittests+0x1dd5fda) #27 base::internal::Invoker<base::internal::BindState<void (viz::DisplayScheduler::*)(), base::WeakPtr<viz::DisplayScheduler> >, void ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (cc_unittests+0x1dd5fda) #28 Run base/callback.h:97:12 (cc_unittests+0x1b1f8ad) #29 void base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::ForwardOnce<>() base/cancelable_callback.h:126 (cc_unittests+0x1b1f8ad) #30 Invoke<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > >> base/bind_internal.h:499:12 (cc_unittests+0x1b1f96a) #31 MakeItSo<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > >> base/bind_internal.h:619 (cc_unittests+0x1b1f96a) #32 RunImpl<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), std::__1::tuple<base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > > >, 0> base/bind_internal.h:672 (cc_unittests+0x1b1f96a) #33 base::internal::Invoker<base::internal::BindState<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > > >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x1b1f96a) #34 Run base/callback.h:97:12 (cc_unittests+0x1fce355) #35 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (cc_unittests+0x1fce355) #36 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:368:23 (cc_unittests+0x1fe3128) #37 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:219:7 (cc_unittests+0x1fe2ced) #38 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (cc_unittests+0x1fe364e) #39 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:39:55 (cc_unittests+0x1fa91c1) #40 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:466:12 (cc_unittests+0x1fe3e39) #41 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (cc_unittests+0x1fe3e39) #42 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (cc_unittests+0x1fc3d10) #43 base::RunLoop::Run() base/run_loop.cc:129:3 (cc_unittests+0x1fc3b03) #44 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (cc_unittests+0x200e939) #45 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (cc_unittests+0x200ebf1) #46 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (cc_unittests+0x204bf54) Location is heap block of size 32 at 0x7b080002c160 allocated by thread T7: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (cc_unittests+0x9b6fdb) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (cc_unittests+0x1c26c10) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (cc_unittests+0x1c26c10) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (cc_unittests+0x1c26c10) #4 __split_buffer buildtools/third_party/libc++/trunk/include/__split_buffer:311 (cc_unittests+0x1c26c10) #5 std::__1::__wrap_iter<std::__1::pair<unsigned long, int>*> std::__1::vector<std::__1::pair<unsigned long, int>, std::__1::allocator<std::__1::pair<unsigned long, int> > >::emplace<unsigned long const&, int>(std::__1::__wrap_iter<std::__1::pair<unsigned long, int> const*>, unsigned long const&, int&&) buildtools/third_party/libc++/trunk/include/vector:1881 (cc_unittests+0x1c26c10) #6 unsafe_emplace<const unsigned long &, int> base/containers/flat_tree.h:953:22 (cc_unittests+0x1c90c7a) #7 operator[] base/containers/flat_map.h:293 (cc_unittests+0x1c90c7a) #8 cc::FakePaintImageGenerator::GetPixels(SkImageInfo const&, void*, unsigned long, unsigned long, int, unsigned int) cc/test/fake_paint_image_generator.cc (cc_unittests+0x1c90c7a) #9 DecodeFromGenerator cc/paint/paint_image.cc:220:34 (cc_unittests+0x1d1bd9c) #10 cc::PaintImage::Decode(void*, SkImageInfo*, sk_sp<SkColorSpace>, unsigned long, int) const cc/paint/paint_image.cc:188 (cc_unittests+0x1d1bd9c) #11 cc::SoftwareImageDecodeCacheUtils::DoDecodeImage(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, SkColorType, int) cc/tiles/software_image_decode_cache_utils.cc:76:29 (cc_unittests+0x1bcc0a9) #12 cc::SoftwareImageDecodeCache::DecodeImageIfNecessary(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCacheUtils::CacheEntry*) cc/tiles/software_image_decode_cache.cc:357:25 (cc_unittests+0x1bc6ac9) #13 cc::SoftwareImageDecodeCache::DecodeImageInTask(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCache::DecodeTaskType) cc/tiles/software_image_decode_cache.cc:319:3 (cc_unittests+0x1bc66c9) #14 cc::(anonymous namespace)::SoftwareImageDecodeTaskImpl::RunOnWorkerThread() cc/tiles/software_image_decode_cache.cc:79:13 (cc_unittests+0x1bc9122) #15 cc::SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() cc/raster/single_thread_task_graph_runner.cc:157:28 (cc_unittests+0x1b6ee0e) #16 Run cc/raster/single_thread_task_graph_runner.cc:120:10 (cc_unittests+0x1b6f05f) #17 non-virtual thunk to cc::SingleThreadTaskGraphRunner::Run() cc/raster/single_thread_task_graph_runner.cc (cc_unittests+0x1b6f05f) #18 base::DelegateSimpleThread::Run() base/threading/simple_thread.cc:98:13 (cc_unittests+0x200dec8) #19 base::SimpleThread::ThreadMain() base/threading/simple_thread.cc:75:3 (cc_unittests+0x200dd2b) #20 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (cc_unittests+0x204bf54) Thread T7 'TestTaskGraphRu' (tid=14858, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::SimpleThread::StartAsync() base/threading/simple_thread.cc:51:13 (cc_unittests+0x200dbf3) #4 cc::SingleThreadTaskGraphRunner::Start(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::SimpleThread::Options const&) cc/raster/single_thread_task_graph_runner.cc:32:12 (cc_unittests+0x1b6e4a4) #5 cc::TestTaskGraphRunner::TestTaskGraphRunner() cc/test/test_task_graph_runner.cc:10:3 (cc_unittests+0x1ccf796) #6 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1056:32 (cc_unittests+0x1ca4ca8) #7 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #8 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #9 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #17 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #18 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #19 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #20 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #21 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #24 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) Thread T4 'Compositor' (tid=14856, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (cc_unittests+0x200e650) #4 base::Thread::Start() base/threading/thread.cc:77:10 (cc_unittests+0x200e2c3) #5 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1048:5 (cc_unittests+0x1ca4b73) #6 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #16 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #17 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #18 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #19 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #20 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #23 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:1699:17 in __construct_backward<std::__1::pair<unsigned long, int> > ================== ================== WARNING: ThreadSanitizer: data race (pid=13974) Write of size 8 at 0x7b44000024c8 by thread T7: #0 swap<std::__1::pair<unsigned long, int> *> buildtools/third_party/libc++/trunk/include/type_traits:4568:9 (cc_unittests+0x1c26d2b) #1 __swap_out_circular_buffer buildtools/third_party/libc++/trunk/include/vector:959 (cc_unittests+0x1c26d2b) #2 std::__1::__wrap_iter<std::__1::pair<unsigned long, int>*> std::__1::vector<std::__1::pair<unsigned long, int>, std::__1::allocator<std::__1::pair<unsigned long, int> > >::emplace<unsigned long const&, int>(std::__1::__wrap_iter<std::__1::pair<unsigned long, int> const*>, unsigned long const&, int&&) buildtools/third_party/libc++/trunk/include/vector:1883 (cc_unittests+0x1c26d2b) #3 unsafe_emplace<const unsigned long &, int> base/containers/flat_tree.h:953:22 (cc_unittests+0x1c90c7a) #4 operator[] base/containers/flat_map.h:293 (cc_unittests+0x1c90c7a) #5 cc::FakePaintImageGenerator::GetPixels(SkImageInfo const&, void*, unsigned long, unsigned long, int, unsigned int) cc/test/fake_paint_image_generator.cc (cc_unittests+0x1c90c7a) #6 DecodeFromGenerator cc/paint/paint_image.cc:220:34 (cc_unittests+0x1d1bd9c) #7 cc::PaintImage::Decode(void*, SkImageInfo*, sk_sp<SkColorSpace>, unsigned long, int) const cc/paint/paint_image.cc:188 (cc_unittests+0x1d1bd9c) #8 cc::SoftwareImageDecodeCacheUtils::DoDecodeImage(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, SkColorType, int) cc/tiles/software_image_decode_cache_utils.cc:76:29 (cc_unittests+0x1bcc0a9) #9 cc::SoftwareImageDecodeCache::DecodeImageIfNecessary(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCacheUtils::CacheEntry*) cc/tiles/software_image_decode_cache.cc:357:25 (cc_unittests+0x1bc6ac9) #10 cc::SoftwareImageDecodeCache::DecodeImageInTask(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCache::DecodeTaskType) cc/tiles/software_image_decode_cache.cc:319:3 (cc_unittests+0x1bc66c9) #11 cc::(anonymous namespace)::SoftwareImageDecodeTaskImpl::RunOnWorkerThread() cc/tiles/software_image_decode_cache.cc:79:13 (cc_unittests+0x1bc9122) #12 cc::SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() cc/raster/single_thread_task_graph_runner.cc:157:28 (cc_unittests+0x1b6ee0e) #13 Run cc/raster/single_thread_task_graph_runner.cc:120:10 (cc_unittests+0x1b6f05f) #14 non-virtual thunk to cc::SingleThreadTaskGraphRunner::Run() cc/raster/single_thread_task_graph_runner.cc (cc_unittests+0x1b6f05f) #15 base::DelegateSimpleThread::Run() base/threading/simple_thread.cc:98:13 (cc_unittests+0x200dec8) #16 base::SimpleThread::ThreadMain() base/threading/simple_thread.cc:75:3 (cc_unittests+0x200dd2b) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (cc_unittests+0x204bf54) Previous read of size 8 at 0x7b44000024c8 by thread T4: [failed to restore the stack] Location is heap block of size 296 at 0x7b4400002440 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (cc_unittests+0x9b6fdb) #1 sk_sp<cc::FakePaintImageGenerator> sk_make_sp<cc::FakePaintImageGenerator, SkImageInfo, std::__1::vector<cc::FrameMetadata, std::__1::allocator<cc::FrameMetadata> >&>(SkImageInfo&&, std::__1::vector<cc::FrameMetadata, std::__1::allocator<cc::FrameMetadata> >&) third_party/skia/include/core/SkRefCnt.h:397:21 (cc_unittests+0xcee46e) #2 cc::(anonymous namespace)::LayerTreeHostTestImageAnimation::SetupTree() cc/trees/layer_tree_host_unittest.cc:8557:18 (cc_unittests+0x12f0be9) #3 cc::LayerTreeTest::DoBeginTest() cc/test/layer_tree_test.cc:888:3 (cc_unittests+0x1ca421b) #4 Invoke<void (cc::LayerTreeTest::*)(), cc::LayerTreeTest *> base/bind_internal.h:499:12 (cc_unittests+0x1ca8948) #5 MakeItSo<void (cc::LayerTreeTest::*)(), cc::LayerTreeTest *> base/bind_internal.h:599 (cc_unittests+0x1ca8948) #6 RunImpl<void (cc::LayerTreeTest::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::LayerTreeTest> >, 0> base/bind_internal.h:672 (cc_unittests+0x1ca8948) #7 base::internal::Invoker<base::internal::BindState<void (cc::LayerTreeTest::*)(), base::internal::UnretainedWrapper<cc::LayerTreeTest> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x1ca8948) #8 Run base/callback.h:97:12 (cc_unittests+0x1fce355) #9 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (cc_unittests+0x1fce355) #10 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:368:23 (cc_unittests+0x1fe3128) #11 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:219:7 (cc_unittests+0x1fe2ced) #12 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (cc_unittests+0x1fe364e) #13 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:39:55 (cc_unittests+0x1fa9129) #14 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:466:12 (cc_unittests+0x1fe3e39) #15 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (cc_unittests+0x1fe3e39) #16 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (cc_unittests+0x1fc3d10) #17 base::RunLoop::Run() base/run_loop.cc:129:3 (cc_unittests+0x1fc3b03) #18 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1072:19 (cc_unittests+0x1ca4dfb) #19 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #21 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #22 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #23 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #24 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #25 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #26 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #27 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #28 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #29 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #30 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #31 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #32 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #33 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #34 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #35 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #36 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) Thread T7 'TestTaskGraphRu' (tid=14858, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::SimpleThread::StartAsync() base/threading/simple_thread.cc:51:13 (cc_unittests+0x200dbf3) #4 cc::SingleThreadTaskGraphRunner::Start(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::SimpleThread::Options const&) cc/raster/single_thread_task_graph_runner.cc:32:12 (cc_unittests+0x1b6e4a4) #5 cc::TestTaskGraphRunner::TestTaskGraphRunner() cc/test/test_task_graph_runner.cc:10:3 (cc_unittests+0x1ccf796) #6 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1056:32 (cc_unittests+0x1ca4ca8) #7 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #8 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #9 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #17 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #18 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #19 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #20 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #21 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #24 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) Thread T4 'Compositor' (tid=14856, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (cc_unittests+0x200e650) #4 base::Thread::Start() base/threading/thread.cc:77:10 (cc_unittests+0x200e2c3) #5 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1048:5 (cc_unittests+0x1ca4b73) #6 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #16 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #17 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #18 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #19 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #20 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #23 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/type_traits:4568:9 in swap<std::__1::pair<unsigned long, int> *> ================== ================== WARNING: ThreadSanitizer: data race (pid=13974) Write of size 8 at 0x7b44000024d0 by thread T7: #0 swap<std::__1::pair<unsigned long, int> *> buildtools/third_party/libc++/trunk/include/type_traits:4568:9 (cc_unittests+0x1c26d3e) #1 __swap_out_circular_buffer buildtools/third_party/libc++/trunk/include/vector:960 (cc_unittests+0x1c26d3e) #2 std::__1::__wrap_iter<std::__1::pair<unsigned long, int>*> std::__1::vector<std::__1::pair<unsigned long, int>, std::__1::allocator<std::__1::pair<unsigned long, int> > >::emplace<unsigned long const&, int>(std::__1::__wrap_iter<std::__1::pair<unsigned long, int> const*>, unsigned long const&, int&&) buildtools/third_party/libc++/trunk/include/vector:1883 (cc_unittests+0x1c26d3e) #3 unsafe_emplace<const unsigned long &, int> base/containers/flat_tree.h:953:22 (cc_unittests+0x1c90c7a) #4 operator[] base/containers/flat_map.h:293 (cc_unittests+0x1c90c7a) #5 cc::FakePaintImageGenerator::GetPixels(SkImageInfo const&, void*, unsigned long, unsigned long, int, unsigned int) cc/test/fake_paint_image_generator.cc (cc_unittests+0x1c90c7a) #6 DecodeFromGenerator cc/paint/paint_image.cc:220:34 (cc_unittests+0x1d1bd9c) #7 cc::PaintImage::Decode(void*, SkImageInfo*, sk_sp<SkColorSpace>, unsigned long, int) const cc/paint/paint_image.cc:188 (cc_unittests+0x1d1bd9c) #8 cc::SoftwareImageDecodeCacheUtils::DoDecodeImage(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, SkColorType, int) cc/tiles/software_image_decode_cache_utils.cc:76:29 (cc_unittests+0x1bcc0a9) #9 cc::SoftwareImageDecodeCache::DecodeImageIfNecessary(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCacheUtils::CacheEntry*) cc/tiles/software_image_decode_cache.cc:357:25 (cc_unittests+0x1bc6ac9) #10 cc::SoftwareImageDecodeCache::DecodeImageInTask(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCache::DecodeTaskType) cc/tiles/software_image_decode_cache.cc:319:3 (cc_unittests+0x1bc66c9) #11 cc::(anonymous namespace)::SoftwareImageDecodeTaskImpl::RunOnWorkerThread() cc/tiles/software_image_decode_cache.cc:79:13 (cc_unittests+0x1bc9122) #12 cc::SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() cc/raster/single_thread_task_graph_runner.cc:157:28 (cc_unittests+0x1b6ee0e) #13 Run cc/raster/single_thread_task_graph_runner.cc:120:10 (cc_unittests+0x1b6f05f) #14 non-virtual thunk to cc::SingleThreadTaskGraphRunner::Run() cc/raster/single_thread_task_graph_runner.cc (cc_unittests+0x1b6f05f) #15 base::DelegateSimpleThread::Run() base/threading/simple_thread.cc:98:13 (cc_unittests+0x200dec8) #16 base::SimpleThread::ThreadMain() base/threading/simple_thread.cc:75:3 (cc_unittests+0x200dd2b) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (cc_unittests+0x204bf54) Previous read of size 8 at 0x7b44000024d0 by thread T4: [failed to restore the stack] Location is heap block of size 296 at 0x7b4400002440 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (cc_unittests+0x9b6fdb) #1 sk_sp<cc::FakePaintImageGenerator> sk_make_sp<cc::FakePaintImageGenerator, SkImageInfo, std::__1::vector<cc::FrameMetadata, std::__1::allocator<cc::FrameMetadata> >&>(SkImageInfo&&, std::__1::vector<cc::FrameMetadata, std::__1::allocator<cc::FrameMetadata> >&) third_party/skia/include/core/SkRefCnt.h:397:21 (cc_unittests+0xcee46e) #2 cc::(anonymous namespace)::LayerTreeHostTestImageAnimation::SetupTree() cc/trees/layer_tree_host_unittest.cc:8557:18 (cc_unittests+0x12f0be9) #3 cc::LayerTreeTest::DoBeginTest() cc/test/layer_tree_test.cc:888:3 (cc_unittests+0x1ca421b) #4 Invoke<void (cc::LayerTreeTest::*)(), cc::LayerTreeTest *> base/bind_internal.h:499:12 (cc_unittests+0x1ca8948) #5 MakeItSo<void (cc::LayerTreeTest::*)(), cc::LayerTreeTest *> base/bind_internal.h:599 (cc_unittests+0x1ca8948) #6 RunImpl<void (cc::LayerTreeTest::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::LayerTreeTest> >, 0> base/bind_internal.h:672 (cc_unittests+0x1ca8948) #7 base::internal::Invoker<base::internal::BindState<void (cc::LayerTreeTest::*)(), base::internal::UnretainedWrapper<cc::LayerTreeTest> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x1ca8948) #8 Run base/callback.h:97:12 (cc_unittests+0x1fce355) #9 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (cc_unittests+0x1fce355) #10 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:368:23 (cc_unittests+0x1fe3128) #11 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:219:7 (cc_unittests+0x1fe2ced) #12 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (cc_unittests+0x1fe364e) #13 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:39:55 (cc_unittests+0x1fa9129) #14 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:466:12 (cc_unittests+0x1fe3e39) #15 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (cc_unittests+0x1fe3e39) #16 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (cc_unittests+0x1fc3d10) #17 base::RunLoop::Run() base/run_loop.cc:129:3 (cc_unittests+0x1fc3b03) #18 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1072:19 (cc_unittests+0x1ca4dfb) #19 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #21 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #22 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #23 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #24 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #25 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #26 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #27 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #28 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #29 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #30 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #31 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #32 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #33 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #34 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #35 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #36 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) Thread T7 'TestTaskGraphRu' (tid=14858, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::SimpleThread::StartAsync() base/threading/simple_thread.cc:51:13 (cc_unittests+0x200dbf3) #4 cc::SingleThreadTaskGraphRunner::Start(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::SimpleThread::Options const&) cc/raster/single_thread_task_graph_runner.cc:32:12 (cc_unittests+0x1b6e4a4) #5 cc::TestTaskGraphRunner::TestTaskGraphRunner() cc/test/test_task_graph_runner.cc:10:3 (cc_unittests+0x1ccf796) #6 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1056:32 (cc_unittests+0x1ca4ca8) #7 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #8 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #9 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #17 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #18 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #19 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #20 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #21 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #24 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) Thread T4 'Compositor' (tid=14856, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (cc_unittests+0x200e650) #4 base::Thread::Start() base/threading/thread.cc:77:10 (cc_unittests+0x200e2c3) #5 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1048:5 (cc_unittests+0x1ca4b73) #6 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #16 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #17 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #18 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #19 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #20 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #23 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/type_traits:4568:9 in swap<std::__1::pair<unsigned long, int> *> ================== ================== WARNING: ThreadSanitizer: data race (pid=13974) Write of size 8 at 0x7b080002c160 by thread T7: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (cc_unittests+0x9b772e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (cc_unittests+0x1c26d97) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (cc_unittests+0x1c26d97) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (cc_unittests+0x1c26d97) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (cc_unittests+0x1c26d97) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (cc_unittests+0x1c26d97) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (cc_unittests+0x1c26d97) #7 ~__split_buffer buildtools/third_party/libc++/trunk/include/__split_buffer:343 (cc_unittests+0x1c26d97) #8 std::__1::__wrap_iter<std::__1::pair<unsigned long, int>*> std::__1::vector<std::__1::pair<unsigned long, int>, std::__1::allocator<std::__1::pair<unsigned long, int> > >::emplace<unsigned long const&, int>(std::__1::__wrap_iter<std::__1::pair<unsigned long, int> const*>, unsigned long const&, int&&) buildtools/third_party/libc++/trunk/include/vector:1884 (cc_unittests+0x1c26d97) #9 unsafe_emplace<const unsigned long &, int> base/containers/flat_tree.h:953:22 (cc_unittests+0x1c90c7a) #10 operator[] base/containers/flat_map.h:293 (cc_unittests+0x1c90c7a) #11 cc::FakePaintImageGenerator::GetPixels(SkImageInfo const&, void*, unsigned long, unsigned long, int, unsigned int) cc/test/fake_paint_image_generator.cc (cc_unittests+0x1c90c7a) #12 DecodeFromGenerator cc/paint/paint_image.cc:220:34 (cc_unittests+0x1d1bd9c) #13 cc::PaintImage::Decode(void*, SkImageInfo*, sk_sp<SkColorSpace>, unsigned long, int) const cc/paint/paint_image.cc:188 (cc_unittests+0x1d1bd9c) #14 cc::SoftwareImageDecodeCacheUtils::DoDecodeImage(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, SkColorType, int) cc/tiles/software_image_decode_cache_utils.cc:76:29 (cc_unittests+0x1bcc0a9) #15 cc::SoftwareImageDecodeCache::DecodeImageIfNecessary(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCacheUtils::CacheEntry*) cc/tiles/software_image_decode_cache.cc:357:25 (cc_unittests+0x1bc6ac9) #16 cc::SoftwareImageDecodeCache::DecodeImageInTask(cc::SoftwareImageDecodeCacheUtils::CacheKey const&, cc::PaintImage const&, cc::SoftwareImageDecodeCache::DecodeTaskType) cc/tiles/software_image_decode_cache.cc:319:3 (cc_unittests+0x1bc66c9) #17 cc::(anonymous namespace)::SoftwareImageDecodeTaskImpl::RunOnWorkerThread() cc/tiles/software_image_decode_cache.cc:79:13 (cc_unittests+0x1bc9122) #18 cc::SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() cc/raster/single_thread_task_graph_runner.cc:157:28 (cc_unittests+0x1b6ee0e) #19 Run cc/raster/single_thread_task_graph_runner.cc:120:10 (cc_unittests+0x1b6f05f) #20 non-virtual thunk to cc::SingleThreadTaskGraphRunner::Run() cc/raster/single_thread_task_graph_runner.cc (cc_unittests+0x1b6f05f) #21 base::DelegateSimpleThread::Run() base/threading/simple_thread.cc:98:13 (cc_unittests+0x200dec8) #22 base::SimpleThread::ThreadMain() base/threading/simple_thread.cc:75:3 (cc_unittests+0x200dd2b) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (cc_unittests+0x204bf54) Previous read of size 8 at 0x7b080002c160 by thread T4: [failed to restore the stack] Thread T7 'TestTaskGraphRu' (tid=14858, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::SimpleThread::StartAsync() base/threading/simple_thread.cc:51:13 (cc_unittests+0x200dbf3) #4 cc::SingleThreadTaskGraphRunner::Start(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::SimpleThread::Options const&) cc/raster/single_thread_task_graph_runner.cc:32:12 (cc_unittests+0x1b6e4a4) #5 cc::TestTaskGraphRunner::TestTaskGraphRunner() cc/test/test_task_graph_runner.cc:10:3 (cc_unittests+0x1ccf796) #6 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1056:32 (cc_unittests+0x1ca4ca8) #7 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #8 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #9 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #17 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #18 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #19 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #20 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #21 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #24 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) Thread T4 'Compositor' (tid=14856, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (cc_unittests+0x947c5b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (cc_unittests+0x204ba97) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (cc_unittests+0x204b995) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (cc_unittests+0x200e650) #4 base::Thread::Start() base/threading/thread.cc:77:10 (cc_unittests+0x200e2c3) #5 cc::LayerTreeTest::RunTest(cc::CompositorMode) cc/test/layer_tree_test.cc:1048:5 (cc_unittests+0x1ca4b73) #6 cc::(anonymous namespace)::LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw_RunMultiThread_DelegatingRenderer_Test::TestBody() cc/trees/layer_tree_host_unittest.cc:8699:1 (cc_unittests+0x12f38f7) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19e6acf) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (cc_unittests+0x19e6acf) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (cc_unittests+0x19e7a88) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (cc_unittests+0x19e8666) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (cc_unittests+0x19faa56) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (cc_unittests+0x19f9eb9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (cc_unittests+0x19f9eb9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (cc_unittests+0x1cd6d62) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (cc_unittests+0x1cd6d62) #16 Invoke<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:499:12 (cc_unittests+0x15543f8) #17 MakeItSo<int (base::TestSuite::*)(), cc::CCTestSuite *> base/bind_internal.h:599 (cc_unittests+0x15543f8) #18 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<cc::CCTestSuite> >, 0> base/bind_internal.h:672 (cc_unittests+0x15543f8) #19 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<cc::CCTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (cc_unittests+0x15543f8) #20 Run base/callback.h:97:12 (cc_unittests+0x1cda62d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (cc_unittests+0x1cda62d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (cc_unittests+0x1cda490) #23 main cc/test/run_all_unittests.cc:15:10 (cc_unittests+0x155434a) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== [ OK ] LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw.RunMultiThread_DelegatingRenderer (5110 ms) [----------] 1 test from LayerTreeHostTestImageAnimationSynchronousSchedulingSoftwareDraw (5110 ms total) [----------] 1 test from LayerTreeHostTestImageDecodingHints [ RUN ] LayerTreeHostTestImageDecodingHints.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageDecodingHints.RunMultiThread_DelegatingRenderer (36 ms) [----------] 1 test from LayerTreeHostTestImageDecodingHints (37 ms total) [----------] Global test environment tear-down [==========] 10 tests from 9 test suites ran. (18233 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 4 warnings [ RUN ] LayerTreeHostTestImageAnimationDrawImage.RunMultiThread_DelegatingRenderer [ OK ] LayerTreeHostTestImageAnimationDrawImage.RunMultiThread_DelegatingRenderer (2332 ms) ================================================================================