Issue 142196
Summary [lldb][test][Windows] Fix TestTargetWatchAddress.py on Windows x86_64
Labels lldb, test-suite
Assignees
Reporter slydiman
    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)
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to