blob: 4971845a992a6cd2a1708c52e50e7480692e6281 [file]
"""Test data for sanitizer_utils_test.
These are copy/pasted directly from the sanitizer logs from catabuilder. They
live in a separate file because they are large and would otherwise clutter
sanitizer_utils_test.py unnecessarily.
"""
# pylint: disable=line-too-long
ASAN_ERROR_MESSAGE = (
"""GMOCK WARNING:
Uninteresting mock function call - returning directly.
Function call: UnregisterService(@0x618000000558 0x604000013f90, @0x7f9bbba11760 8-byte object <10-E2 01-00 40-60 00-00>)
NOTE: You can safely ignore the above warning unless this call should not happen.
GMOCK WARNING:
Uninteresting mock function call - returning directly.
Function call: RemoveExternalNamespaceHandler
=================================================================
==23973==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x619000009180
#0 0x51a1fb in operator delete(void*) (out_clang_chromecast_gn_asan/Release/cast_multizone_unittests+0x51a1fb)
#1 0x5e2eca in operator() buildtools/third_party/libc++/trunk/include/memory:2529:13
#2 0x5e2eca in reset buildtools/third_party/libc++/trunk/include/memory:2735
#3 0x5e2eca in ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2703
#4 0x5e2eca in ~SocketBuffer chromecast/internal/multizone/fake_multizone_device.cc:39
#5 0x5e2eca in operator() buildtools/third_party/libc++/trunk/include/memory:2529
0x619000009180 is located 0 bytes inside of 1024-byte region [0x619000009180,0x619000009580)
allocated by thread T0 here:
#0 0x51973b in operator new[](unsigned long) (out_clang_chromecast_gn_asan/Release/cast_multizone_unittests+0x51973b)
#1 0x5a2173 in SocketBuffer chromecast/internal/multizone/fake_multizone_device.cc:34:15
#2 0x5a2173 in chromecast::multizone::FakeMultizoneDevice::StreamSocketPair::StreamSocketPair() chromecast/internal/multizone/fake_multizone_device.cc:203
#3 0x5a1cbd in chromecast::multizone::FakeMultizoneDevice::FakeMultizoneDevice
#4 0x64446f in chromecast::multizone::MultizoneManagerTest::AddFollower
SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (out_clang_chromecast_gn_asan/Release/cast_multizone_unittests+0x51a1fb) in operator delete(void*)
==23973==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0
==23973==ABORTING
[73/206] MultizoneManagerTest.LaunchAndUnlaunchLeader (CRASHED)
[74/206] MultizoneMediaManagerTest.GetActiveState (2 ms)""")
ASAN_COMMENT = (
"""==23973==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x619000009180
#0 0x51a1fb in operator delete(void*) (out_clang_chromecast_gn_asan/Release/cast_multizone_unittests+0x51a1fb)
#1 0x5e2eca in operator() buildtools/third_party/libc++/trunk/include/memory:2529:13
#2 0x5e2eca in reset buildtools/third_party/libc++/trunk/include/memory:2735
#3 0x5e2eca in ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2703
#4 0x5e2eca in ~SocketBuffer chromecast/internal/multizone/fake_multizone_device.cc:39
#5 0x5e2eca in operator() buildtools/third_party/libc++/trunk/include/memory:2529
0x619000009180 is located 0 bytes inside of 1024-byte region [0x619000009180,0x619000009580)
allocated by thread T0 here:
#0 0x51973b in operator new[](unsigned long) (out_clang_chromecast_gn_asan/Release/cast_multizone_unittests+0x51973b)
#1 0x5a2173 in SocketBuffer chromecast/internal/multizone/fake_multizone_device.cc:34:15
#2 0x5a2173 in chromecast::multizone::FakeMultizoneDevice::StreamSocketPair::StreamSocketPair() chromecast/internal/multizone/fake_multizone_device.cc:203
#3 0x5a1cbd in chromecast::multizone::FakeMultizoneDevice::FakeMultizoneDevice
#4 0x64446f in chromecast::multizone::MultizoneManagerTest::AddFollower
SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (out_clang_chromecast_gn_asan/Release/cast_multizone_unittests+0x51a1fb) in operator delete(void*)
""")
ASAN_LSAN_ERROR_MESSAGE = (
"""[----------] Global test environment tear-down
[==========] 10 tests from 2 test cases ran. (24 ms total)
[ PASSED ] 10 tests.
=================================================================
==23625==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 320 byte(s) in 2 object(s) allocated from:
#0 0x4f616b in operator new(unsigned long) (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_asan/Release/cast_crash_unittests+0x4f616b)
#1 0x54b2ab in chromecast::CastCrashdumpUploader::CastCrashdumpUploader(chromecast::CastCrashdumpData const&) chromecast/crash/cast_crashdump_uploader.cc:37:35
#2 0x521291 in MockCastCrashdumpUploader chromecast/crash/linux/minidump_uploader_unittest.cc:54:9
#3 0x521291 in StrictMock<chromecast::CastCrashdumpData> testing/gmock/include/gmock/gmock-generated-nice-strict.h:284
SUMMARY: AddressSanitizer: 320 byte(s) leaked in 2 allocation(s).
[11/46] DumpInfoTest.TooFewFieldsIsNotValid (0 ms)
[ RUN ] DumpInfoTest.BadTimeStringIsNotValid
[23625:23625:1109/162235:610901543961:INFO:dump_info.cc(147)] Failed to convert dump time invalid
[ OK ] DumpInfoTest.BadTimeStringIsNotValid (1 ms)
[ RUN ] DumpInfoTest.AllRequiredFieldsIsValid
[ OK ] DumpInfoTest.AllRequiredFieldsIsValid (0 ms)""")
ASAN_LSAN_COMMENT = (
"""==23625==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 320 byte(s) in 2 object(s) allocated from:
#0 0x4f616b in operator new(unsigned long) (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_asan/Release/cast_crash_unittests+0x4f616b)
#1 0x54b2ab in chromecast::CastCrashdumpUploader::CastCrashdumpUploader(chromecast::CastCrashdumpData const&) chromecast/crash/cast_crashdump_uploader.cc:37:35
#2 0x521291 in MockCastCrashdumpUploader chromecast/crash/linux/minidump_uploader_unittest.cc:54:9
#3 0x521291 in StrictMock<chromecast::CastCrashdumpData> testing/gmock/include/gmock/gmock-generated-nice-strict.h:284
SUMMARY: AddressSanitizer: 320 byte(s) leaked in 2 allocation(s).
""")
MSAN_ERROR_MESSAGE = (
"""[85/97] HotspotManagerTest.Start_Mutliple_Stop_Multiple_Mixed (7 ms)
[86/97] UmaHashUtilTest.HashBuildNumber64 (1 ms)
[87/97] UmaHashUtilTest.HashSdkVersion64 (0 ms)
[1109/162418:ERROR:kill_posix.cc(84)] Unable to terminate process group 9794: No such process
[ RUN ] UdpSocketWrapperTest.DeleteInCallback
Uninitialized bytes in __interceptor_sendto at offset 0 inside [0x7010000007c0, 1)
==9794==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x928115 in net::UDPSocketPosix::InternalSendTo(net::IOBuffer*, int, net::IPEndPoint const*) net/udp/udp_socket_posix.cc:636:16
#1 0x92742d in net::UDPSocketPosix::SendToOrWrite(net::IOBuffer*, int, net::IPEndPoint const*, base::Callback<void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) net/udp/udp_socket_posix.cc:254:16
#2 0x65a4d7 in chromecast::UdpSocketWrapper::SendTo(scoped_refptr<net::IOBuffer> const&, int, net::IPEndPoint const&) chromecast/internal/net/udp_socket_wrapper.cc:113:23
Uninitialized value was created by a heap allocation
#0 0x4a6662 in operator new[](unsigned long) (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_msan/Release/cast_net_internal_unittests+0x4a6662)
#1 0x8bcdc3 in net::IOBuffer::IOBuffer(int) net/base/io_buffer.cc:35:11
#2 0x8bd468 in net::IOBufferWithSize::IOBufferWithSize(int) net/base/io_buffer.cc:53:7
SUMMARY: MemorySanitizer: use-of-uninitialized-value net/udp/udp_socket_posix.cc:636:16 in net::UDPSocketPosix::InternalSendTo(net::IOBuffer*, int, net::IPEndPoint const*)
Exiting
[88/97] UdpSocketWrapperTest.DeleteInCallback (CRASHED)
[89/97] UdpSocketWrapperTest.StartStopStart (3 ms)""")
MSAN_COMMENT = (
"""==9794==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x928115 in net::UDPSocketPosix::InternalSendTo(net::IOBuffer*, int, net::IPEndPoint const*) net/udp/udp_socket_posix.cc:636:16
#1 0x92742d in net::UDPSocketPosix::SendToOrWrite(net::IOBuffer*, int, net::IPEndPoint const*, base::Callback<void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) net/udp/udp_socket_posix.cc:254:16
#2 0x65a4d7 in chromecast::UdpSocketWrapper::SendTo(scoped_refptr<net::IOBuffer> const&, int, net::IPEndPoint const&) chromecast/internal/net/udp_socket_wrapper.cc:113:23
Uninitialized value was created by a heap allocation
#0 0x4a6662 in operator new[](unsigned long) (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_msan/Release/cast_net_internal_unittests+0x4a6662)
#1 0x8bcdc3 in net::IOBuffer::IOBuffer(int) net/base/io_buffer.cc:35:11
#2 0x8bd468 in net::IOBufferWithSize::IOBufferWithSize(int) net/base/io_buffer.cc:53:7
SUMMARY: MemorySanitizer: use-of-uninitialized-value net/udp/udp_socket_posix.cc:636:16 in net::UDPSocketPosix::InternalSendTo(net::IOBuffer*, int, net::IPEndPoint const*)
""")
TSAN_ERROR_MESSAGE = (
"""ThreadSanitizer: reported 1 warnings
[814/4508] FileSystemOperationImplWriteTest.TestWriteInvalidFile (5 ms)
[ RUN ] FileSystemOperationImplWriteTest.TestWriteDir
[ OK ] FileSystemOperationImplWriteTest.TestWriteDir (5 ms)
[----------] 2 tests from FileSystemOperationRunnerTest
[ RUN ] FileSystemOperationRunnerTest.NotFoundError
[19800:19800:1109/163405:702831287703:WARNING:sandbox_quota_observer.cc(114)] Could not get usage cache path for: filesystem:http://example.com/temporary/foo
[19800:19800:1109/163405:702831288401:WARNING:obfuscated_file_util.cc(1181)] Failed to get origin+type directory: filesystem:http://example.com/temporary/foo error:-4
[19800:19800:1109/163405:702831288884:WARNING:sandbox_quota_observer.cc(114)] Could not get usage cache path for: filesystem:http://example.com/temporary/foo
[ OK ] FileSystemOperationRunnerTest.NotFoundError (10 ms)
[----------] 2 tests from FileSystemOperationRunnerTest (14 ms total)
[----------] Global test environment tear-down
[==========] 10 tests from 2 test cases ran. (97 ms total)
[ PASSED ] 10 tests.
==================
WARNING: ThreadSanitizer: data race (pid=19800)
Read of size 4 at 0x0000097b6dc0 by thread T1:
#0 logging::ShouldCreateLogMessage(int) base/logging.cc:412:10 (content_unittests+0x000003aefaa7)
#1 operator-> base/memory/ref_counted.h:319:5 (content_unittests+0x000003afb7e3)
#2 base::MessageLoop::BindToCurrentThread() base/message_loop/message_loop.cc:343 (content_unittests+0x000003afb7e3)
#3 base::Thread::ThreadMain() base/threading/thread.cc:299:18 (content_unittests+0x000003b5d100)
#4 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:71:13 (content_unittests+0x000003b535d8)
Previous write of size 4 at 0x0000097b6dc0 by main thread:
#0 logging::BaseInitLoggingImpl_built_with_NDEBUG(logging::LoggingSettings const&) base/logging.cc:373:25 (content_unittests+0x000003aef754)
#1 InitLogging base/logging.h:232:10 (content_unittests+0x000002fc08c3)
#2 base::TestSuite::Initialize() base/test/test_suite.cc:331 (content_unittests+0x000002fc08c3)
#3 content::ContentTestSuiteBase::Initialize() content/public/test/content_test_suite_base.cc:61:20 (content_unittests+0x000002fb2ccf)
Location is global 'logging::(anonymous namespace)::g_logging_destination' of size 4 at 0x0000097b6dc0 (content_unittests+0x0000097b6dc0)
Thread T1 'test_io_thread' (tid=19902, running) created by main thread at:
#0 pthread_create <null> (content_unittests+0x00000050c9b5)
#1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:110:13 (content_unittests+0x000003b53175)
#2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:191:10 (content_unittests+0x000003b53025)
SUMMARY: ThreadSanitizer: data race base/logging.cc:412:10 in logging::ShouldCreateLogMessage(int)
==================""")
TSAN_COMMENT = (
"""WARNING: ThreadSanitizer: data race (pid=19800)
Read of size 4 at 0x0000097b6dc0 by thread T1:
#0 logging::ShouldCreateLogMessage(int) base/logging.cc:412:10 (content_unittests+0x000003aefaa7)
#1 operator-> base/memory/ref_counted.h:319:5 (content_unittests+0x000003afb7e3)
#2 base::MessageLoop::BindToCurrentThread() base/message_loop/message_loop.cc:343 (content_unittests+0x000003afb7e3)
#3 base::Thread::ThreadMain() base/threading/thread.cc:299:18 (content_unittests+0x000003b5d100)
#4 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:71:13 (content_unittests+0x000003b535d8)
Previous write of size 4 at 0x0000097b6dc0 by main thread:
#0 logging::BaseInitLoggingImpl_built_with_NDEBUG(logging::LoggingSettings const&) base/logging.cc:373:25 (content_unittests+0x000003aef754)
#1 InitLogging base/logging.h:232:10 (content_unittests+0x000002fc08c3)
#2 base::TestSuite::Initialize() base/test/test_suite.cc:331 (content_unittests+0x000002fc08c3)
#3 content::ContentTestSuiteBase::Initialize() content/public/test/content_test_suite_base.cc:61:20 (content_unittests+0x000002fb2ccf)
Location is global 'logging::(anonymous namespace)::g_logging_destination' of size 4 at 0x0000097b6dc0 (content_unittests+0x0000097b6dc0)
Thread T1 'test_io_thread' (tid=19902, running) created by main thread at:
#0 pthread_create <null> (content_unittests+0x00000050c9b5)
#1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:110:13 (content_unittests+0x000003b53175)
#2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:191:10 (content_unittests+0x000003b53025)
SUMMARY: ThreadSanitizer: data race base/logging.cc:412:10 in logging::ShouldCreateLogMessage(int)
""")
UBSAN_ERROR_MESSAGE = (
"""INFO:root:running command: chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests --ozone-platform=headless --test-launcher-bot-mode --gtest_filter=-:* --gtest_output=xml:/tmp/reports/test_detail_net_unittests.xml
../../buildtools/third_party/libc++/trunk/include/list:208:16: runtime error: downcast of address 0x000006a388f8 with insufficient space for an object of type 'std::__1::__list_node<std::__1::pair<net::(anonymous namespace)::TransactionPhase, void (*)(net::MockHttpCache *)>, void *>'
0x000006a388f8: note: pointer points here
3c 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#0 0x47a615 (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests+0x47a615)
#1 0x350073c (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests+0x350073c)
#2 0x7f1bab1fded4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ed4)
../../buildtools/third_party/libc++/trunk/include/list:560:31: runtime error: downcast of address 0x000006a388f8 with insufficient space for an object of type 'std::__1::__list_node<std::__1::pair<net::(anonymous namespace)::TransactionPhase, void (*)(net::MockHttpCache *)>, void *>'
0x000006a388f8: note: pointer points here
3c 12 00 00 60 ff b7 ae 3c 12 00 00 a0 fb b7 ae 3c 12 00 00 09 00 00 00 00 00 00 00 00 00 00 00
#0 0xb9929d (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests+0xb9929d)
#1 0xbb300c (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests+0xbb300c)
#2 0x2d71d51 (/usr/local/google/home/mosaic-role/slave/repo_clients/internal/chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests+0x2d71d51)
IMPORTANT DEBUGGING NOTE: batches of tests are run inside their
own process. For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with
--single-process-tests.
Using sharding settings from environment. This is shard 0/1
Using 32 parallel jobs.
0 tests run
Tests took 0 seconds.
INFO:root:completed running command: chromium/src/out_clang_chromecast_gn_ubsan/Release/net_unittests --ozone-platform=headless --test-launcher-bot-mode --gtest_filter=-:* --gtest_output=xml:/tmp/reports/test_detail_net_unittests.xml""")
UBSAN_COMMENT = (
"""../../buildtools/third_party/libc++/trunk/include/list:208:16: runtime error: downcast of address 0x000006a388f8 with insufficient space for an object of type 'std::__1::__list_node<std::__1::pair<net::(anonymous namespace)::TransactionPhase, void (*)(net::MockHttpCache *)>, void *>'
""")