<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/144777>144777</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb] TestTargetWatchAddress (test_watch_create_by_address) is flaky on Windows x86_64
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          slydiman
      </td>
    </tr>
</table>

<pre>
    https://lab.llvm.org/staging/#/builders/211/builds/392
https://lab.llvm.org/staging/#/builders/211/builds/391
https://lab.llvm.org/staging/#/builders/211/builds/386
https://lab.llvm.org/staging/#/builders/211/builds/384

```
******************** TEST 'lldb-api :: python_api/watchpoint/watchlocation/TestTargetWatchAddress.py' FAILED ********************
Script:
--
C:/Python312/python.exe C:/buildbot/as-builder-10/lldb-x86-64/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/buildbot/as-builder-10/lldb-x86-64/build/./lib --env LLVM_INCLUDE_DIR=C:/buildbot/as-builder-10/lldb-x86-64/build/include --env LLVM_TOOLS_DIR=C:/buildbot/as-builder-10/lldb-x86-64/build/./bin --arch x86_64 --build-dir C:/buildbot/as-builder-10/lldb-x86-64/build/lldb-test-build.noindex --lldb-module-cache-dir C:/buildbot/as-builder-10/lldb-x86-64/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/buildbot/as-builder-10/lldb-x86-64/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/buildbot/as-builder-10/lldb-x86-64/build/./bin/lldb.exe --compiler C:/buildbot/as-builder-10/lldb-x86-64/build/./bin/clang.exe --dsymutil C:/buildbot/as-builder-10/lldb-x86-64/build/./bin/dsymutil.exe --make C:/ninja/make.exe --llvm-tools-dir C:/buildbot/as-builder-10/lldb-x86-64/build/./bin --lldb-obj-root C:/buildbot/as-builder-10/lldb-x86-64/build/tools/lldb --lldb-libs-dir C:/buildbot/as-builder-10/lldb-x86-64/build/./lib --cmake-build-type Release C:\buildbot\as-builder-10\lldb-x86-64\llvm-project\lldb\test\API\python_api\watchpoint\watchlocation -p TestTargetWatchAddress.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 21.0.0git (https://github.com/llvm/llvm-project.git revision d8e8ab79773f739c602c5869f80c6c5b5962c558)
  clang revision d8e8ab79773f739c602c5869f80c6c5b5962c558
  llvm revision d8e8ab79773f739c602c5869f80c6c5b5962c558
Watchpoint 1 hit:
old value: '\0'
new value: '\x01'
Before turning all three threads loose...
thread_func (thread index = 0) startng...
thread_func (thread index = 2) startng...
thread_func (thread index = 1) startng...
thread_func (thread = 1) doing a usleep (2985198)...
thread_func (thread = 2) doing a usleep (2782402)...
thread_func (thread = 0) doing a usleep (1562982)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=1)...
thread_func (thread = 0) doing a usleep (2053577)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=1)...
thread_func (thread = 2) doing a usleep (898959)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=1)...
thread_func (thread = 1) doing a usleep (1084075)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=2)...
thread_func (thread = 0) doing a usleep (616017)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=2)...
thread_func (thread = 2) doing a usleep (1288646)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=2)...
thread_func (thread = 1) doing a usleep (1436191)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=3)...
thread_func (thread = 0) doing a usleep (1464438)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=3)...
thread_func (thread = 2) doing a usleep (1608689)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=3)...
thread_func (thread = 1) doing a usleep (1343855)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=4)...
thread_func (thread = 0) doing a usleep (568163)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=5)...
thread_func (thread = 0) doing a usleep (817637)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=4)...
thread_func (thread = 2) doing a usleep (2973031)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=4)...
thread_func (thread = 1) doing a usleep (1064424)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=6)...
thread_func (thread = 0) doing a usleep (972059)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=5)...
thread_func (thread = 1) doing a usleep (592283)...
thread_func (thread = 0) after usleep access_pool returns 1 (count=7)...
thread_func (thread = 0) doing a usleep (2219952)...
thread_func (thread = 1) after usleep access_pool returns 1 (count=6)...
thread_func (thread = 1) doing a usleep (784128)...
thread_func (thread = 1) after usleep access_pool returns 2 (count=7)...
thread_func (thread = 1) doing a usleep (1144086)...
thread_func (thread = 2) after usleep access_pool returns 2 (count=5)...
thread_func (thread = 2) doing a usleep (2416732)...
thread_func (thread = 0) after usleep access_pool returns 3 (count=8)...
thread_func (thread = 0) doing a usleep (2044049)...
thread_func (thread = 1) after usleep access_pool returns 4 (count=8)...
thread_func (thread = 1) doing a usleep (526962)...
thread_func (thread = 1) after usleep access_pool returns 5 (count=9)...
thread_func (thread = 1) doing a usleep (2910632)...
thread_func (thread = 2) after usleep access_pool returns 5 (count=6)...
thread_func (thread = 2) doing a usleep (2617606)...
thread_func (thread = 0) after usleep access_pool returns 6 (count=9)...
thread_func (thread = 0) doing a usleep (1359517)...
thread_func (thread = 0) after usleep access_pool returns 7 (count=10)...
thread_func (thread = 0) doing a usleep (956735)...
thread_func (thread = 1) after usleep access_pool returns 8 (count=10)...
thread_func (thread = 1) doing a usleep (1497811)...
thread_func (thread = 2) after usleep access_pool returns 9 (count=7)...
thread_func (thread = 2) doing a usleep (2200490)...
thread_func (thread = 0) after usleep access_pool returns 10 (count=11)...
thread_func (thread = 0) doing a usleep (41468)...
thread_func (thread = 0) after usleep access_pool returns 11 (count=12)...
thread_func (thread = 0) doing a usleep (1505909)...
thread_func (thread = 1) after usleep access_pool returns 12 (count=11)...
thread_func (thread = 1) doing a usleep (2524
Watchpoint 1 hit:
old value: '\0'
new value: '\xf0'
Skipping the following test categories: ['libc++', 'libstdcxx', 'dwo', 'dsym', 'gmodules', 'debugserver', 'objc', 'fork', 'pexpect']
--
Command Output (stderr):
--
PASS: LLDB (C:\buildbot\as-builder-10\lldb-x86-64\build\bin\clang.exe-x86_64) :: test_watch_address (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_address)
UNSUPPORTED: LLDB (C:\buildbot\as-builder-10\lldb-x86-64\build\bin\clang.exe-x86_64) :: test_watch_address_with_invalid_watch_size (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_address_with_invalid_watch_size) (skipping due to the following parameter(s): target o/s,architecture [github.com/llvm/llvm-project/issues/142196]) 
FAIL: LLDB (C:\buildbot\as-builder-10\lldb-x86-64\build\bin\clang.exe-x86_64) :: test_watch_create_by_address (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_create_by_address)
======================================================================
FAIL: test_watch_create_by_address (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_create_by_address)
 Exercise SBTarget.WatchpointCreateByAddress() API to set a watchpoint.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot\as-builder-10\lldb-x86-64\llvm-project\lldb\test\API\python_api\watchpoint\watchlocation\TestTargetWatchAddress.py", line 83, in test_watch_create_by_address
    self.expect(
  File "C:\buildbot\as-builder-10\lldb-x86-64\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2512, in expect
    self.fail(log_msg)
AssertionError: Checking string:
"Stack trace for thread id=0x20f8 name= queue=None stop reason=watchpoint
  frame #0: 0x007ff811277f4f ntdll.dll`RtlEnterCriticalSection + 2767
  frame #1: 0x007ff81127b550 ntdll.dll`RtlGetCurrentServiceSessionId + 3056
  frame #2: 0x007ff81127a8c1 ntdll.dll`RtlFreeHeap + 81
  frame #3: 0x007ff81135d2f8 ntdll.dll`RtlRegisterSecureMemoryCacheCallback + 6536
  frame #4: 0x007ff81131288c ntdll.dll`RtlIsNonEmptyDirectoryReparsePointAllowed + 28940
  frame #5: 0x007ff81127b550 ntdll.dll`RtlGetCurrentServiceSessionId + 3056
  frame #6: 0x007ff81127a8c1 ntdll.dll`RtlFreeHeap + 81
  frame #7: 0x007ff70a6965dc a.out`None + -18446744068340554275
  frame #8: 0x007ff70a65140a a.out`main at main.cpp:92 ((int)argc=1, (const char **)argv=0x00000220267dd820)
  frame #9: 0x007ff70a656e60 a.out`None + -18446744068340814239
  frame #10: 0x007ff8106d4cb0 kernel32.dll`BaseThreadInitThunk + 16
  frame #11: 0x007ff8112dedcb ntdll.dll`RtlUserThreadStart + 43
"
Expecting sub string: "do_bad_thing_with_location" (was not found)
Config=x86_64-C:\buildbot\as-builder-10\lldb-x86-64\build\bin\clang.exe
----------------------------------------------------------------------
Ran 3 tests in 44.448s
FAILED (failures=1, skipped=1)
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzcWt9z46iT_2vIC2UXQgKhhzw4dryXquxMKs7c7psLIWwzkYUOUBLfX38FUuIfO97IibN79Z1STYxafPShu-luAdxataykvATkCpDJBW_cSptLW24KtebVRa6LzeXKudqCeATwFOBpyfNhWT6th9osAZ5ax5eqWgZZDPA0b1RZSGMBnuIoer3hm3GGARqdDSw6Ixij5wRLABr5i6LuQiOAP37Bh-vZAwQ4LcsiH_BaQU8yHsF641a6mvNaATx95k6saq0q99ooteBO6Qrg6YO07oGbpXR_eMmoKIy0dlhvAE7hdHRzez2Bn6EI0GgmjKqdZ4ZGgwFAo3GryrtAMo4wwNOW8FC-SNhJg9Zy7TlzO-iUOoiQN4Af7QujA5qE1tN6UBv9UwrXCQEZO2kdIOPR3Q0g40L75rDewEEDx3_-Ob0d_TYLv7tfA1k9wdvb__59fntzNZtPbu5BPDmVSBABPB16icp3UW--jW9_TK4_CawqUTaF3AV--P799hx8c1XBwYAbsYIv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