Skip to content

[lldb] TestDetachResumes.py is flaky on Windows x86_64 #144891

Open
@slydiman

Description

@slydiman

https://lab.llvm.org/staging/#/builders/211/builds/419
https://lab.llvm.org/staging/#/builders/211/builds/423

About 25% of test runs fail with the assert in the last line lldbutil.wait_for_file_on_target(self, exit_file_path)

AssertionError: File C:\buildbot\as-builder-10\lldb-x86-64\build\lldb-test-build.noindex\commands\process\detach-resumes\TestDetachResumes.test_detach_resumes\exit_file_1750332982 not found even after 6 attempts.

Note the file exit_file_* is really missing after this test. This issue is easily reproducible locally running

C:/Python312/python.exe D:/llvm-project/lldb\test\API\dotest.py ^
 -v -t ^
 -u CXXFLAGS -u CFLAGS ^
 --env OBJCOPY=D:/build-x64/bin/llvm-objcopy.exe ^
 --env STRIP=D:/build-x64/bin/llvm-strip.exe ^
 --env LLVM_LIBS_DIR=D:/build-x64/lib ^
 --env LLVM_INCLUDE_DIR=D:/build-x64/include ^
 --env LLVM_TOOLS_DIR=D:/build-x64/./bin ^
 --env ARCHIVER=D:/build-x64/bin/llvm-ar.exe ^
 --arch x86_64 ^
 --build-dir D:/build-x64/lldb-test-build.noindex ^
 --lldb-module-cache-dir D:/build-x64/lldb-test-build.noindex/module-cache-lldb\lldb-api ^
 --clang-module-cache-dir D:/build-x64/lldb-test-build.noindex/module-cache-clang\lldb-api ^
 --executable D:/build-x64/bin/lldb.exe ^
 --make C:/ProgramData/chocolatey/bin/make.exe ^
 --compiler D:/build-x64/bin/clang.exe ^
 --dsymutil D:/build-x64/bin/dsymutil.exe ^
 --llvm-tools-dir D:/build-x64/bin ^
 --lldb-obj-root D:/build-x64/tools/lldb ^
 --lldb-libs-dir D:/build-x64/lib ^
 --cmake-build-type Release ^
 D:\llvm-project\lldb\test\API\commands\process\detach-resumes -p TestDetachResumes.py

It seems something is really wrong with the detaching on Windows x86_64 in case of multithreading.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions