Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLDB tests fail due to unexpected breakpoint sites #9540

Open
weliveindetail opened this issue Nov 7, 2024 · 1 comment
Open

LLDB tests fail due to unexpected breakpoint sites #9540

weliveindetail opened this issue Nov 7, 2024 · 1 comment

Comments

@weliveindetail
Copy link

We see 3 tests failing for swift-lldb in CI, because of unexpected additional breakpoint sites. Failures look like this:

llvm-project\lldb\test\Shell\Unwind\windows-unaligned-x86_64.test:20:10: error: CHECK: expected string not found in input
# CHECK: stop reason = breakpoint 1.1
         ^
<stdin>:9:61: note: scanning from here
Breakpoint 1: where = windows-unaligned-x86_64.test.tmp`func at windows-unaligned-x86_64.cpp:3, address = 0x0000000140001000
                                                            ^
<stdin>:13:14: note: possible intended match here
* thread #1, stop reason = breakpoint 1.2
             ^

Affected tests are:

  lldb-shell :: SymbolFile/NativePDB/local-variables.cpp
  lldb-shell :: SymbolFile/NativePDB/stack_unwinding01.cpp
  lldb-shell :: Unwind/windows-unaligned-x86_64.test

See: swiftlang/swift#76894 (comment)
Neither my local build nor the upstream bots seem to reproduce this failure.

@weliveindetail
Copy link
Author

Failure of lang/c/local_variables/TestLocalVariables.py looks similar

FAIL: test_c_local_variables_dwarf (TestLocalVariables.LocalVariablesTestCase)
   Test local variable value.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 1768, in test_method
    return attrvalue(self)
  File "C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\llvm-project\lldb\test\API\lang\c\local_variables\TestLocalVariables.py", line 47, in test_c_local_variables
    lldbutil.check_breakpoint(self, bpno=1, expected_hit_count=1)
  File "C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbutil.py", line 717, in check_breakpoint
    test.assertEqual(expected_resolved_count, bkpt.GetNumResolvedLocations())
AssertionError: 2 != 1
Config=x86_64-T:\5\bin\clang.exe
----------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant