<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142196>142196</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb][test][Windows] Fix TestTargetWatchAddress.py on Windows x86_64
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb,
test-suite
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
slydiman
</td>
</tr>
</table>
<pre>
The test TestTargetWatchAddress.py failed on Windows x86_64.
It is necessary to fix or disable it before running the new lldb buildbot on Windows x86_64.
```
********************
FAIL: lldb-api :: python_api/watchpoint/watchlocation/TestTargetWatchAddress.py (10 of 2437)
******************** TEST 'lldb-api :: python_api/watchpoint/watchlocation/TestTargetWatchAddress.py' FAILED ********************
Script:
--
C:/Python312/python.exe D:/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=D:/build/./lib --env LLVM_INCLUDE_DIR=D:/build/include --env LLVM_TOOLS_DIR=D:/build/./bin --arch x86_64 --build-dir D:/build/lldb-test-build.noindex --lldb-module-cache-dir D:/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir D:/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable D:/build/./bin/lldb.exe --compiler D:/build/./bin/clang.exe --dsymutil D:/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir D:/build/./bin --lldb-obj-root D:/build/tools/lldb --lldb-libs-dir D:/build/./lib --cmake-build-type Release D:\llvm-project\lldb\test\API\python_api\watchpoint\watchlocation -p TestTargetWatchAddress.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 21.0.0git
clang revision 5208f722d80c9033ed9b5de86e6302f452f4ceca
llvm revision 5208f722d80c9033ed9b5de86e6302f452f4ceca
Watchpoint 1 hit:
old value: '\0'
new value: '\x02'
Before turning all three threads loose...
thread_func (thread index = 1) startng...
thread_func (thread index = 0) startng...
thread_func (thread index = 2) startng...
thread_func (thread = 2) doing a usleep (200404)...
thread_func (thread = 0) doing a usleep (1359231)...
thread_func (thread = 1) doing a usleep (1379977)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=1)...
thread_func (thread = 2) doing a usleep (243538)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=2)...
thread_func (thread = 2) doing a usleep (2550906)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=1)...
thread_func (thread = 0) doing a usleep (2761249)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=1)...
thread_func (thread = 1) doing a usleep (712548)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=2)...
thread_func (thread = 1) doing a usleep (577643)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=3)...
thread_func (thread = 1) doing a usleep (1464178)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=3)...
thread_func (thread = 2) doing a usleep (2908058)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=2)...
thread_func (thread = 0) doing a usleep (2491191)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=4)...
thread_func (thread = 1) doing a usleep (2063995)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=4)...
thread_func (thread = 2) doing a usleep (2262039)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=5)...
thread_func (thread = 1) doing a usleep (856867)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=3)...
thread_func (thread = 0) doing a usleep (1299298)...
thread_func (thread = 1) after usleep access_pool returns 0 (count=6)...
thread_func (thread = 1) doing a usleep (2754429)...
thread_func (thread = 0) after usleep access_pool returns 0 (count=4)...
thread_func (thread = 0) doing a usleep (2057521)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=5)...
thread_func (thread = 2) doing a usleep (643635)...
thread_func (thread = 2) after usleep access_pool returns 0 (count=6)...
thread_func (thread = 2) doing a usleep (44753)...
thread_func (thread = 2) after usleep access_pool returns 1 (count=7)...
thread_func (thread = 2) doing a usleep (674571)...
thread_func (thread = 2) after usleep access_pool returns 2 (count=8)...
thread_func (thread = 2) doing a usleep (2507361)...
thread_func (thread = 1) after usleep access_pool returns 3 (count=7)...
thread_func (thread = 1) doing a usleep (2356435)...
thread_func (thread = 0) after usleep access_pool returns 3 (count=5)...
thread_func (thread = 0) doing a usleep (831377)...
thread_func (thread = 0) after usleep access_pool returns 3 (count=6)...
thread_func (thread = 0) doing a usleep (1116315)...
thread_func (thread = 0) after usleep access_pool returns 4 (count=7)...
thread_func (thread = 0) doing a usleep (498372)...
thread_func (thread = 2) after usleep access_pool returns 5 (count=9)...
thread_func (thread = 2) doing a usleep (2202491)...
thread_func (thread = 1) after usleep access_pool returns 6 (count=8)...
thread_func (thread = 1) doing a usleep (178951)...
thread_func (thread = 1) after usleep access_pool returns 7 (count=9)...
thread_func (thread = 1) doing a usleep (2286120)...
thread_func (thread = 0) after usleep access_pool returns 8 (count=8)...
thread_func (thread = 0) doing a usleep (1852685)...
thread_func (thread = 2) after usleep access_pool returns 9 (count=10)...
thread_func (thread = 2) doing a usleep (1247429)...
thread_func (thread = 0) after usleep access_pool returns 10 (count=9)...
thread_func (thread = 0) doing a usleep (2723964)...
thread_func (thread = 1) after usleep access_pool returns 11 (count=10)...
thread_func (thread = 1) doing a usleep (666849)...
thread_func (thread = 1) after usleep access_pool returns 12 (count=11)...
thread_func (thread = 1) doing a usleep (2872425)
Watchpoint 1 hit:
old value: '\0'
new value: '0'
Skipping the following test categories: ['libc++', 'libstdcxx', 'dwo', 'dsym', 'gmodules', 'debugserver', 'objc', 'fork', 'pexpect']
--
Command Output (stderr):
--
PASS: LLDB (D:\build\bin\clang.exe-x86_64) :: test_watch_address (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_address)
FAIL: LLDB (D:\build\bin\clang.exe-x86_64) :: test_watch_address_with_invalid_watch_size (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_address_with_invalid_watch_size)
FAIL: LLDB (D:\build\bin\clang.exe-x86_64) :: test_watch_create_by_address (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_create_by_address)
======================================================================
FAIL: test_watch_address_with_invalid_watch_size (TestTargetWatchAddress.TargetWatchpointCreateByAddressPITestCase.test_watch_address_with_invalid_watch_size)
Exercise SBTarget.WatchpointCreateByAddress() API but pass an invalid watch_size.
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 148, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 148, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\llvm-project\lldb\test\API\python_api\watchpoint\watchlocation\TestTargetWatchAddress.py", line 204, in test_watch_address_with_invalid_watch_size
self.expect(
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2512, in expect
self.fail(log_msg)
AssertionError: Checking string:
"Can't enable watchpoint 1 on thread 0x7520"
Expecting sub string: "Setting one of the watchpoint resources failed" (was not found)
Config=x86_64-D:\build\bin\clang.exe
======================================================================
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 "D:\llvm-project\lldb\test\API\python_api\watchpoint\watchlocation\TestTargetWatchAddress.py", line 83, in test_watch_create_by_address
self.expect(
File "D:\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=0x73c0 name= queue=None stop reason=watchpoint
frame #0: 0x007ffe1841cf9b ntdll.dll`RtlAllocateHeap + 29099
frame #1: 0x007ffe184806e0 ntdll.dll`RtlFreeHeap + 1568
frame #2: 0x007ffe184a005d ntdll.dll`RtlSizeHeap + 5053
frame #3: 0x007ffe1841d32c ntdll.dll`RtlAllocateHeap + 30012
frame #4: 0x007ffe184806e0 ntdll.dll`RtlFreeHeap + 1568
frame #5: 0x007ff7f0c33d68 a.out`None + -18446744068340564631
frame #6: 0x007ff7f0bf152a a.out`main at main.cpp:92 ((int)argc=1, (const char **)argv=0x0000018aa756ff00)
frame #7: 0x007ff7f0bf79fc a.out`None + -18446744068340811267
frame #8: 0x007ffe16ace8d7 kernel32.dll`BaseThreadInitThunk + 23
frame #9: 0x007ffe1849c5dc ntdll.dll`RtlUserThreadStart + 44
"
Expecting sub string: "do_bad_thing_with_location" (was not found)
Config=x86_64-D:\build\bin\clang.exe
----------------------------------------------------------------------
Ran 3 tests in 38.321s
FAILED (failures=2)
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWltz4yja_jXkhrILgdDhIheOHX9fqrIzXZ3Mzty5kIRsOlhoASXO_PotkBIfEnXkxK6dPXSpOkbAo_fE83JixohlxfkloFeAzi5YY1dKXxr5XIg1qy4yVTxf3q84tNxYeM-NvWd6ye3vzOarSVFobsy4foYlE5IXUFXwd1EV6snATRItonAM0OTGQmFgxXNuDNPP0CpYig1UGhbCsExyKCzMeKk0h7qpKlEtoV1xWPEnKGWRwawRssiUfR_ePRHqHjQB-AsPmswnN7eATPyHR6wWEJCJK9fPdqWqBasFwPMnp32tRGVfClLlzApVATzvNxLASYCgKiEOSQxw-kVp4f313T0EOD6DrADH0Jniega_aNC7XIvaOsnQZDQCaDJ1v_H8mxeSBBjgeSvwmG84nLW1Uj6uR7VWP3hufbHIAJ26IAR0Ovl2A-i0UK7o7Dpq4PSPP-a3k_-787-7XyNePcLb27__bXF7c3W3mN18B2TW4fuQAng-duAi221888v09rfZ9fvtRZXLpuC77e9__fX2J-iZqOBoxHS-6mIWjka-flQIDQ86eE86tdom40qJquAbOBr5mrUqGslHOctX_IjuAM_3enbWfA2b0SiXrFqeCt6D7ePzDc8b68f6-ybq0H0IjEa5WtdC8jcCbBv7b3StC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