New issue
Advanced search Search tips

Issue 782001 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: ----



Sign in to add a comment

cc_unittests failing on chromium.memory/Linux MSan Tests

Project Member Reported by sky@chromium.org, Nov 6 2017

Issue description

cc_unittests failing on chromium.memory/Linux MSan Tests

Builders failed on: 
- Linux MSan Tests: 
  https://build.chromium.org/p/chromium.memory/builders/Linux%20MSan%20Tests


Sample output:
 RUN      ] P/PaintOpSerializationTest.SmokeTest/16
==17531==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x13ac57b in equal<std::__1::__wrap_iter<const char *>, std::__1::__wrap_iter<const char *>, std::__1::__equal_to<char, char> > buildtools/third_party/libc++/trunk/include/algorithm:1325:13
    #1 0x13ac57b in equal<std::__1::__wrap_iter<const char *>, std::__1::__wrap_iter<const char *> > buildtools/third_party/libc++/trunk/include/algorithm:1337:0
    #2 0x13ac57b in operator==<char, std::__1::allocator<char> > buildtools/third_party/libc++/trunk/include/vector:3312:0
    #3 0x13ac57b in CmpHelperEQ<std::__1::vector<char, std::__1::allocator<char> >, std::__1::vector<char, std::__1::allocator<char> > > third_party/googletest/src/googletest/include/gtest/gtest.h:1392:0
    #4 0x13ac57b in Compare<std::__1::vector<char, std::__1::allocator<char> >, std::__1::vector<char, std::__1::allocator<char> > > third_party/googletest/src/googletest/include/gtest/gtest.h:1421:0
    #5 0x13ac57b in cc::CompareDrawTextBlobOp(cc::DrawTextBlobOp const*, cc::DrawTextBlobOp const*) cc/paint/paint_op_buffer_unittest.cc:1777:0
    #6 0x13ba21d in cc::PaintOpSerializationTest::ExpectOpsEqual(cc::PaintOp const*, cc::PaintOp const*) cc/paint/paint_op_buffer_unittest.cc:2004:9
    #7 0x13b55e0 in cc::PaintOpSerializationTest_SmokeTest_Test::TestBody() cc/paint/paint_op_buffer_unittest.cc:2098:5
    #8 0x367b893 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest-internal-inl.h:0:10
    #9 0x367ed62 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2654:11
    #10 0x3680719 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2772:28
    #11 0x36a1904 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:4677:43
    #12 0x36a0759 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:0:0
    #13 0x3d117eb in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2237:46
    #14 0x3d117eb in base::TestSuite::Run() base/test/test_suite.cc:270:0
    #15 0x3d17cd9 in Run base/callback.h:92:12
    #16 0x3d17cd9 in base::(anonymous namespace)::LaunchUnitTestsInternal(base::RepeatingCallback<int ()> const&, unsigned long, int, bool, base::RepeatingCallback<void ()> const&) base/test/launcher/unit_test_launcher.cc:217:0
    #17 0x3d174ff in base::LaunchUnitTests(int, char**, base::RepeatingCallback<int ()> const&) base/test/launcher/unit_test_launcher.cc:555:10
    #18 0x317822d in main cc/test/run_all_unittests.cc:15:10
    #19 0x7eff09078f44 in __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287:0
    #20 0x62a31c in _start ??:0:0

  Uninitialized value was stored to memory at
    #0 0x6493ab in __msan_memcpy ??:0:0
    #1 0x46400d1 in sk_careful_memcpy third_party/skia/include/private/SkMalloc.h:79:9
    #2 0x46400d1 in writePad third_party/skia/include/core/SkWriter32.h:184:0
    #3 0x46400d1 in SkBinaryWriteBuffer::writeByteArray(void const*, unsigned long) third_party/skia/src/core/SkWriteBuffer.cpp:39:0
    #4 0x463022b in SkTextBlob::flatten(SkWriteBuffer&) const third_party/skia/src/core/SkTextBlob.cpp:735:16
    #5 0x13aafd1 in cc::CompareDrawTextBlobOp(cc::DrawTextBlobOp const*, cc::DrawTextBlobOp const*) cc/paint/paint_op_buffer_unittest.cc:1772:34
    #6 0x13ba21d in cc::PaintOpSerializationTest::ExpectOpsEqual(cc::PaintOp const*, cc::PaintOp const*) cc/paint/paint_op_buffer_unittest.cc:2004:9
    #7 0x13b55e0 in cc::PaintOpSerializationTest_SmokeTest_Test::TestBody() cc/paint/paint_op_buffer_unittest.cc:2098:5
    #8 0x367b893 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest-internal-inl.h:0:10
    #9 0x367ed62 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2654:11
    #10 0x3680719 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2772:28
    #11 0x36a1904 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:4677:43
    #12 0x36a0759 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:0:0
    #13 0x3d117eb in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2237:46
    #14 0x3d117eb in base::TestSuite::Run() base/test/test_suite.cc:270:0
    #15 0x3d17cd9 in Run base/callback.h:92:12
    #16 0x3d17cd9 in base::(anonymous namespace)::LaunchUnitTestsInternal(base::RepeatingCallback<int ()> const&, unsigned long, int, bool, base::RepeatingCallback<void ()> const&) base/test/launcher/unit_test_launcher.cc:217:0
    #17 0x3d174ff in base::LaunchUnitTests(int, char**, base::RepeatingCallback<int ()> const&) base/test/launcher/unit_test_launcher.cc:555:10
    #18 0x317822d in main cc/test/run_all_unittests.cc:15:10
    #19 0x7eff09078f44 in __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287:0

  Uninitialized value was stored to memory at
    #0 0x6493ab in __msan_memcpy ??:0:0
    #1 0x456c4d8 in readArray third_party/skia/src/core/SkReadBuffer.cpp:189:9
    #2 0x456c4d8 in SkReadBuffer::readByteArray(void*, unsigned long) third_party/skia/src/core/SkReadBuffer.cpp:198:0
    #3 0x463136f in SkTextBlob::MakeFromBuffer(SkReadBuffer&) third_party/skia/src/core/SkTextBlob.cpp:799:21
    #4 0x463203f in SkTextBlob::Deserialize(void const*, unsigned long, sk_sp<SkTypeface> (*)(unsigned int, void*), void*) third_party/skia/src/core/SkTextBlob.cpp:863:12
    #5 0x3de00df in cc::PaintOpReader::Read(std::__1::vector<cc::PaintTypeface, std::__1::allocator<cc::PaintTypeface> > const&, sk_sp<SkTextBlob>*) cc/paint/paint_op_reader.cc:328:11
    #6 0x3de096b in cc::PaintOpReader::Read(scoped_refptr<cc::PaintTextBlob>*) cc/paint/paint_op_reader.cc:339:3
    #7 0x3dc2f89 in cc::DrawTextBlobOp::Deserialize(void const volatile*, unsigned long, void*, unsigned long, cc::PaintOp::DeserializeOptions const&) cc/paint/paint_op_buffer.cc:885:10
    #8 0x3dc6037 in cc::PaintOp::Deserialize(void const volatile*, unsigned long, void*, unsigned long, unsigned long*, cc::PaintOp::DeserializeOptions const&) cc/paint/paint_op_buffer.cc:1314:10
    #9 0x13b4dfc in DeserializeCurrentOp cc/paint/paint_op_buffer_unittest.cc:1375:24
    #10 0x13b4dfc in DeserializerIterator cc/paint/paint_op_buffer_unittest.cc:1360:0
    #11 0x13b4dfc in begin cc/paint/paint_op_buffer_unittest.cc:1321:0
    #12 0x13b4dfc in cc::PaintOpSerializationTest_SmokeTest_Test::TestBody() cc/paint/paint_op_buffer_unittest.cc:2094:0
    #13 0x367b893 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest-internal-inl.h:0:10
    #14 0x367ed62 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2654:11
    #15 0x3680719 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2772:28
    #16 0x36a1904 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:4677:43
    #17 0x36a0759 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:0:0
    #18 0x3d117eb in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2237:46
    #19 0x3d117eb in base::TestSuite::Run() base/test/test_suite.cc:270:0
    #20 0x3d17cd9 in Run base/callback.h:92:12
    #21 0x3d17cd9 in base::(anonymous namespace)::LaunchUnitTestsInternal(base::RepeatingCallback<int ()> const&, unsigned long, int, bool, base::RepeatingCallback<void ()> const&) base/test/launcher/unit_test_launcher.cc:217:0
    #22 0x3d174ff in base::LaunchUnitTests(int, char**, base::RepeatingCallback<int ()> const&) base/test/launcher/unit_test_launcher.cc:555:10
    #23 0x317822d in main cc/test/run_all_unittests.cc:15:10
    #24 0x7eff09078f44 in __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287:
 

Comment 1 by meade@chromium.org, Nov 7 2017

Issue 782045 has been merged into this issue.

Comment 2 by meade@chromium.org, Nov 7 2017

Cc: drott@chromium.org chrishtr@chromium.org asvitk...@chromium.org e...@chromium.org enne@chromium.org
Owner: vmp...@chromium.org
Components: -Blink>Paint Internals>Compositing
Status: Assigned (was: Available)
Labels: -Sheriff-Chromium
Removing Sheriff-Chromium now that the bug is assigned and being investigated.

Comment 5 by vmp...@chromium.org, Nov 13 2017

Status: Fixed (was: Assigned)
This was reverted and relanded with a fix. https://build.chromium.org/p/chromium.memory/builders/Linux%20MSan%20Tests is currently green.

Sign in to add a comment