Skip to content

vm/cc/Profiler_InliningIntervalBoundry failed on vm-kernel-tsan-linux-release-x64 #42302

@aam

Description

@aam

Builder log: https://ci.chromium.org/p/dart/builders/ci.sandbox/vm-kernel-tsan-linux-release-x64/828

tsan failure:

/=============================================================================\
| vm/cc/Profiler_InliningIntervalBoundry broke (Pass -> Crash, expected Pass) |
\=============================================================================/

--- Command "run_vm_unittest" (took 25.000063s):
DART_CONFIGURATION=ReleaseTSANX64 out/ReleaseTSANX64/run_vm_tests --dfe=/b/s/w/ir/cache/builder/sdk/out/ReleaseTSANX64/gen/kernel-service.dart.snapshot --ignore-unrecognized-flags Profiler_InliningIntervalBoundry

exit code:
-6

stdout:
Running test: Profiler_InliningIntervalBoundry
Done: Profiler_InliningIntervalBoundry

stderr:
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==28796==WARNING: Can't read from symbolizer at fd 9
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==28796==WARNING: Can't read from symbolizer at fd 9
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==28796==WARNING: Can't read from symbolizer at fd 9
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==28796==WARNING: Can't read from symbolizer at fd 9
==28796==WARNING: Failed to use and restart external symbolizer!
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==================
WARNING: ThreadSanitizer: data race (pid=28796)
  Read of size 1 at 0x5650e29d22a9 by thread T7 (mutexes: write M145, write M135):
    #0 dart::ThreadInterrupter::WakeUp() ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter.cc:149 (run_vm_tests+0x419e6ad)
    #1 dart::OSThread::EnableThreadInterrupts() ../../out/ReleaseTSANX64/../../runtime/vm/os_thread.cc:124 (run_vm_tests+0x40ab79c)
    #2 dart::IsolateGroup::ScheduleThreadLocked(dart::MonitorLocker*, dart::Thread*, bool, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:517 (run_vm_tests+0x3f774b6)
    #3 dart::IsolateGroup::ScheduleThread(bool) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:595 (run_vm_tests+0x3f776b3)
    #4 dart::Thread::EnterIsolateGroupAsHelper(dart::IsolateGroup*, dart::Thread::TaskKind, bool) ../../out/ReleaseTSANX64/../../runtime/vm/thread.cc:377 (run_vm_tests+0x4198dba)
    #5 dart::ParallelScavengerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/heap/scavenger.cc:444 (run_vm_tests+0x4204771)
    #6 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x419fb7c)
    #7 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x41a0565)
    #8 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x40ac082)

  Previous write of size 1 at 0x5650e29d22a9 by main thread:
    #0 dart::ThreadInterrupter::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter.cc:117 (run_vm_tests+0x419e541)
    #1 dart::Profiler::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:109 (run_vm_tests+0x40b1948)
    #2 dart::Dart::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/dart.cc:485 (run_vm_tests+0x3f031c9)
    #3 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:398 (run_vm_tests+0x39c8f6e)
    #4 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39c87be)

  Location is global '<null>' at 0x000000000000 (run_vm_tests+0x0000054ce2a9)

  Mutex M145 (0x7b1c00003870) created at:
    #0 pthread_mutex_init ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1220 (run_vm_tests+0x39593cd)
    #1 Monitor ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:371 (run_vm_tests+0x40ac6e6)
    #2 ThreadRegistry ../../out/ReleaseTSANX64/../../runtime/vm/thread_registry.h:25 (run_vm_tests+0x3f75444)
    #3 IsolateGroup ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:296 (run_vm_tests+0x3f75444)
    #4 IsolateGroup ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:330 (run_vm_tests+0x3f75a22)
    #5 Dart_CreateIsolateGroup ../../out/ReleaseTSANX64/../../runtime/vm/dart_api_impl.cc:1419 (run_vm_tests+0x48b8ac4)
    #6 dart::CreateIsolateAndSetup(char const*, char const*, char const*, char const*, Dart_IsolateFlags*, void*, char**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:205 (run_vm_tests+0x39c960c)
    #7 dart::RunKernelTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:103 (run_vm_tests+0x3fb4552)
    #8 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x419fb7c)
    #9 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x41a0565)
    #10 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x40ac082)

  Mutex M135 (0x7b18000005a0) created at:
    #0 pthread_mutex_init ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1220 (run_vm_tests+0x39593cd)
    #1 Monitor ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:371 (run_vm_tests+0x40ac6e6)
    #2 dart::ThreadInterrupter::Init() ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter.cc:60 (run_vm_tests+0x419df59)
    #3 dart::Profiler::Init() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:92 (run_vm_tests+0x40b16c4)
    #4 dart::EnableProfiler() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:228 (run_vm_tests+0x3afa40f)
    #5 dart::Dart_TestHelperProfiler_InliningIntervalBoundry(dart::Thread*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:1559 (run_vm_tests+0x3afa40f)
    #6 dart::Dart_TestProfiler_InliningIntervalBoundry() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:1553 (run_vm_tests+0x3afa40f)
    #7 dart::TestCase::Run() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:52 (run_vm_tests+0x39c826c)
    #8 dart::TestCaseBase::RunTest() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:64 (run_vm_tests+0x39c8441)
    #9 dart::TestCaseBase::RunAll() ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:86 (run_vm_tests+0x3b58e08)
    #10 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:393 (run_vm_tests+0x39c8f53)
    #11 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39c87be)

  Thread T7 'DartWorker' (tid=28856, running) created by thread T4 at:
    #0 pthread_create ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962 (run_vm_tests+0x3957f5b)
    #1 dart::OSThread::Start(char const*, void (*)(unsigned long), unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:172 (run_vm_tests+0x40abf0c)
    #2 dart::ThreadPool::Worker::StartThread() ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:296 (run_vm_tests+0x419f239)
    #3 dart::ThreadPool::RunImpl(std::__2::unique_ptr<dart::ThreadPool::Task, std::__2::default_delete<dart::ThreadPool::Task> >) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:94 (run_vm_tests+0x419f239)
    #4 bool dart::ThreadPool::Run<dart::MessageHandlerTask, dart::MessageHandler*>(dart::MessageHandler*&&) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.h:46 (run_vm_tests+0x3fc771b)
    #5 dart::MessageHandler::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:165 (run_vm_tests+0x3fc771b)
    #6 dart::PortMap::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/port.cc:197 (run_vm_tests+0x40af9ea)
    #7 dart::DN_HelperSendPortImpl_sendInternal_(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments*) ../../out/ReleaseTSANX64/../../runtime/lib/isolate.cc:106 (run_vm_tests+0x3e61237)
    #8 dart::BootstrapNatives::DN_SendPortImpl_sendInternal_(dart::Thread*, dart::Zone*, dart::NativeArguments*) ../../out/ReleaseTSANX64/../../runtime/lib/isolate.cc:92 (run_vm_tests+0x3e61237)
    #9 dart::NativeEntry::BootstrapNativeCallWrapper(_Dart_NativeArguments*, void (*)(_Dart_NativeArguments*)) ../../out/ReleaseTSANX64/../../runtime/vm/native_entry.cc:140 (run_vm_tests+0x3fca676)
    #10 <null> <null> (memfd:dart-codespace (deleted)+0x1418)
    #11 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:171 (run_vm_tests+0x3f0ed2a)
    #12 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:39 (run_vm_tests+0x3f122bf)
    #13 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:712 (run_vm_tests+0x3f122bf)
    #14 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:1312 (run_vm_tests+0x3f7c6e8)
    #15 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:233 (run_vm_tests+0x3fc7a20)
    #16 dart::MessageHandler::TaskCallback() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:443 (run_vm_tests+0x3fc8424)
    #17 dart::MessageHandlerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:31 (run_vm_tests+0x3fc8e13)
    #18 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x419fb7c)
    #19 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x41a0565)
    #20 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x40ac082)

SUMMARY: ThreadSanitizer: data race ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter.cc:149 in dart::ThreadInterrupter::WakeUp()
==================
ThreadSanitizer: reported 1 warnings

--- Re-run this test:
python tools/test.py -n dartk-tsan-linux-release-x64 vm/cc/Profiler_InliningIntervalBoundry

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.os-linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions