IMPORTANT DEBUGGING NOTE: batches of tests are run inside their own process. For debugging a test inside a debugger, use the --gtest_filter= flag along with --single-process-tests. Using sharding settings from environment. This is shard 0/1 Using 1 parallel jobs. Note: Google Test filter = FilterGroupTest.NegativePlayoutChannelOOBRead [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from FilterGroupTest [ RUN ] FilterGroupTest.NegativePlayoutChannelOOBRead [26712:26712:INFO:chromecast/media/cma/backend/mixer/filter_group.cc:69] Done creating postrender pipeline for test_filter [26712:26712:INFO:chromecast/media/cma/backend/mixer/filter_group.cc:78] Creating prerender pipeline for test_filter [26712:26712:INFO:chromecast/media/cma/backend/mixer/filter_group.cc:87] Done creating prerender pipeline for test_filter ================================================================= ==26712==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7e24c31f9100 at pc 0x55765a4a71d7 bp 0x7ffc24b3a9d0 sp 0x7ffc24b3a9c8 READ of size 4 at 0x7e24c31f9100 thread T0 #0 0x55765a4a71d6 in chromecast::media::MixerInput::RenderInterleaved(int) chromecast/media/cma/backend/mixer/mixer_input.cc:278:23 #1 0x55765a4a6458 in chromecast::media::MixerInput::Render(int, chromecast::media::MediaPipelineBackend::AudioDecoder::RenderingDelay) chromecast/media/cma/backend/mixer/mixer_input.cc:261:3 #2 0x55765a49eaca in chromecast::media::FilterGroup::MixAndFilter(int, chromecast::media::MediaPipelineBackend::AudioDecoder::RenderingDelay) chromecast/media/cma/backend/mixer/filter_group.cc:204:16 #3 0x5576590c42d5 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2746:5 #4 0x5576590c529e in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x5576590c65ff in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x5576590d950e in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x5576590d8aae in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x55765b4b057a in base::TestSuite::Run() base/test/test_suite.cc:440:16 #9 0x55765b481fb3 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #10 0x557659269098 in base::OnceCallback::Run() && base/functional/callback.h:155:12 #11 0x55765b4bc0d9 in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:189:38 #12 0x55765b4bbade in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #13 0x55765b481cbf in main base/test/run_all_unittests.cc:79:10 #14 0x7f94c4595249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7e24c31f9100 is located 256 bytes before 16384-byte region [0x7e24c31f9200,0x7e24c31fd200) allocated by thread T0 here: #0 0x5576588927e7 in posix_memalign (/chromium/chromium/src/out/asan-cast/cast_audio_backend_unittests+0x3fc17e7) (BuildId: 783cc1e9eb6f0d20) #1 0x55765b1c55b2 in base::AlignedAlloc(unsigned long, unsigned long) base/memory/aligned_memory.cc:35:13 #2 0x55765a49f8d3 in chromecast::media::AlignedBuffer::assign(unsigned long, float const&) chromecast/media/base/aligned_buffer.h:77:25 #3 0x55765a4a3947 in chromecast::media::MixerInput::MixerInput(chromecast::media::MixerInput::Source*, chromecast::media::FilterGroup*) chromecast/media/cma/backend/mixer/mixer_input.cc:64:16 #4 0x5576588dd002 in std::__Cr::unique_ptr> std::__Cr::make_unique*, chromecast::media::FilterGroup*, 0>(testing::NiceMock*&&, chromecast::media::FilterGroup*&&) gen/third_party/libc++/src/include/__memory/unique_ptr.h:756:30 #5 0x5576588da66f in chromecast::media::FilterGroupTest::MakeFilterGroup(int) chromecast/media/cma/backend/mixer/filter_group_unittest.cc:144:14 #6 0x5576588dc39d in chromecast::media::FilterGroupTest_NegativePlayoutChannelOOBRead_Test::TestBody() chromecast/media/cma/backend/mixer/filter_group_unittest.cc:269:3 #7 0x5576590c42d5 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2746:5 #8 0x5576590c529e in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #9 0x5576590c65ff in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #10 0x5576590d950e in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #11 0x5576590d8aae in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #12 0x55765b4b057a in base::TestSuite::Run() base/test/test_suite.cc:440:16 #13 0x55765b481fb3 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #14 0x557659269098 in base::OnceCallback::Run() && base/functional/callback.h:155:12 #15 0x55765b4bc0d9 in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:189:38 #16 0x55765b4bbade in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #17 0x55765b481cbf in main base/test/run_all_unittests.cc:79:10 #18 0x7f94c4595249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-buffer-overflow chromecast/media/cma/backend/mixer/mixer_input.cc:278:23 in chromecast::media::MixerInput::RenderInterleaved(int) Shadow bytes around the buggy address: 0x7e24c31f8e80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e24c31f8f00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e24c31f8f80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e24c31f9000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e24c31f9080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x7e24c31f9100:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e24c31f9180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e24c31f9200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e24c31f9280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e24c31f9300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e24c31f9380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 ==26712==ADDITIONAL INFO ==26712==Note: Please include this section with the ASan report. Task trace: ==26712==END OF ADDITIONAL INFO ==26712==ABORTING [1/1] FilterGroupTest.NegativePlayoutChannelOOBRead (CRASHED) 1 test crashed: FilterGroupTest.NegativePlayoutChannelOOBRead (../../chromecast/media/cma/backend/mixer/filter_group_unittest.cc:267) Tests took 1 seconds.