llvm / llvm/llvm-project

[LLDB] shared_ptr tests start failing after removing transitive includes from libc++

Open
#200,154 0 comments 1 reaction 0 assignees View on GitHub
libc++
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

After #195509 the tests `TestSharedPtrFromStdModule.py` and `TestWeakPtrFromStdModule.py` start failing for unknown reasons. They're disabled for now, but should be re-enabled one we know what the issue is. The messages are similar to this:

```
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bootstrapping-build/bin/clang-x86_64) :: test_dwarf (TestSharedPtrFromStdModule.TestSharedPtr.test_dwarf)
2026-05-19T12:57:50.9001584Z Log Files:
2026-05-19T12:57:50.9003057Z - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bootstrapping-build/lldb-test-build.noindex/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule/Failure_test_dwarf.log
2026-05-19T12:57:50.9005776Z FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bootstrapping-build/bin/clang-x86_64) :: test_dwo (TestSharedPtrFromStdModule.TestSharedPtr.test_dwo)
2026-05-19T12:57:50.9007074Z Log Files:
2026-05-19T12:57:50.9008492Z - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bootstrapping-build/lldb-test-build.noindex/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule/Failure_test_dwo.log
2026-05-19T12:57:50.9010256Z ======================================================================
2026-05-19T12:57:50.9011001Z FAIL: test_dwarf (TestSharedPtrFromStdModule.TestSharedPtr.test_dwarf)
2026-05-19T12:57:50.9011927Z ----------------------------------------------------------------------
2026-05-19T12:57:50.9012492Z Traceback (most recent call last):
2026-05-19T12:57:50.9013620Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2040, in test_method
2026-05-19T12:57:50.9014693Z return attrvalue(self)
2026-05-19T12:57:50.9015057Z ^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9015991Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
2026-05-19T12:57:50.9017037Z return func(*args, **kwargs)
2026-05-19T12:57:50.9017457Z ^^^^^^^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9018422Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
2026-05-19T12:57:50.9019584Z return func(*args, **kwargs)
2026-05-19T12:57:50.9019928Z ^^^^^^^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9020800Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
2026-05-19T12:57:50.9022235Z return func(*args, **kwargs)
2026-05-19T12:57:50.9022633Z ^^^^^^^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9024051Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule.py", line 30, in test
2026-05-19T12:57:50.9025685Z self.expect_expr("*s", result_type="element_type", result_value="3")
2026-05-19T12:57:50.9026937Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2872, in expect_expr
2026-05-19T12:57:50.9028158Z value_check.check_value(self, eval_result, str(eval_result))
2026-05-19T12:57:50.9029359Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 318, in check_value
2026-05-19T12:57:50.9030638Z test_base.assertEqual(self.expect_value, val.GetValue(), this_error_msg)
2026-05-19T12:57:50.9032133Z AssertionError: '3' != None : $1 =
2026-05-19T12:57:50.9032666Z Checking SBValue: $1 =
2026-05-19T12:57:50.9033657Z Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bootstrapping-build/bin/clang
2026-05-19T12:57:50.9034541Z ======================================================================
2026-05-19T12:57:50.9035207Z FAIL: test_dwo (TestSharedPtrFromStdModule.TestSharedPtr.test_dwo)
2026-05-19T12:57:50.9035882Z ----------------------------------------------------------------------
2026-05-19T12:57:50.9036432Z Traceback (most recent call last):
2026-05-19T12:57:50.9037450Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2040, in test_method
2026-05-19T12:57:50.9038515Z return attrvalue(self)
2026-05-19T12:57:50.9039101Z ^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9040079Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
2026-05-19T12:57:50.9041319Z return func(*args, **kwargs)
2026-05-19T12:57:50.9041715Z ^^^^^^^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9042878Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
2026-05-19T12:57:50.9043992Z return func(*args, **kwargs)
2026-05-19T12:57:50.9044372Z ^^^^^^^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9045375Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
2026-05-19T12:57:50.9046624Z return func(*args, **kwargs)
2026-05-19T12:57:50.9046982Z ^^^^^^^^^^^^^^^^^^^^^
2026-05-19T12:57:50.9048185Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule.py", line 30, in test
2026-05-19T12:57:50.9049670Z self.expect_expr("*s", result_type="element_type", result_value="3")
2026-05-19T12:57:50.9050907Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2872, in expect_expr
2026-05-19T12:57:50.9052305Z value_check.check_value(self, eval_result, str(eval_result))
2026-05-19T12:57:50.9053423Z File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 318, in check_value
2026-05-19T12:57:50.9054761Z test_base.assertEqual(self.expect_value, val.GetValue(), this_error_msg)
2026-05-19T12:57:50.9055471Z AssertionError: '3' != None : $1 =
2026-05-19T12:57:50.9055975Z Checking SBValue: $1 =
2026-05-19T12:57:50.9056809Z Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bootstrapping-build/bin/clang
2026-05-19T12:57:50.9057718Z ----------------------------------------------------------------------
2026-05-19T12:57:50.9058485Z Ran 3 tests in 6.148s
2026-05-19T12:57:50.9058707Z
2026-05-19T12:57:50.9058866Z FAILED (failures=2, skipped=1)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.