[Lldb-commits] [lldb] [lldb] Assert & fix missing calls to UnregisterPlugin (PR #185162)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 7 00:00:58 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 33330 tests passed
* 505 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### lldb-api
<details>
<summary>lldb-api.api/command-return-object/TestSBCommandReturnObject.py</summary>
```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/command-return-object -p TestSBCommandReturnObject.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 03eace9e344590609cce959050ae34d91cc522d8)
clang revision 03eace9e344590609cce959050ae34d91cc522d8
llvm revision 03eace9e344590609cce959050ae34d91cc522d8
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc
--
Command Output (stderr):
--
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_get_command (TestSBCommandReturnObject.TestSBCommandReturnObject.test_get_command)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_get_value (TestSBCommandReturnObject.TestSBCommandReturnObject.test_get_value)
command-return-object: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_sb_command_return_object (TestSBCommandReturnObject.TestSBCommandReturnObject.test_sb_command_return_object)
======================================================================
ERROR: test_sb_command_return_object (TestSBCommandReturnObject.TestSBCommandReturnObject.test_sb_command_return_object)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py", line 26, in test_sb_command_return_object
subprocess.check_call([self.driver_exe, self.driver_exe])
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject/command-return-object', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/command-return-object/TestSBCommandReturnObject/command-return-object']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 3 tests in 2.755s
FAILED (errors=1)
--
```
</details>
<details>
<summary>lldb-api.api/multithreaded/TestMultithreaded.py</summary>
```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded -p TestMultithreaded.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 03eace9e344590609cce959050ae34d91cc522d8)
clang revision 03eace9e344590609cce959050ae34d91cc522d8
llvm revision 03eace9e344590609cce959050ae34d91cc522d8
Adding command some-cmd and report-cmd
some output
check_state: running OK
check_state: stopped OK
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc
--
Command Output (stderr):
--
test_breakpoint_callback: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_breakpoint_callback (TestMultithreaded.SBBreakpointCallbackCase.test_breakpoint_callback)
test_breakpoint_location_callback: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_breakpoint_location_callback (TestMultithreaded.SBBreakpointCallbackCase.test_breakpoint_location_callback)
test_concurrent_unwind: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_concurrent_unwind (TestMultithreaded.SBBreakpointCallbackCase.test_concurrent_unwind)
test_python_stop_hook: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_python_stop_hook (TestMultithreaded.SBBreakpointCallbackCase.test_python_stop_hook)
test_listener_event_description: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_sb_api_listener_event_description (TestMultithreaded.SBBreakpointCallbackCase.test_sb_api_listener_event_description)
test_listener_event_process_state: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source/Core/PluginManager.cpp:497: PluginInstances<PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>>::~PluginInstances() [Instance = PluginInstance<std::unique_ptr<lldb_private::ProtocolServer> (*)()>]: Assertion `m_instances.empty() && "forgot to unregister plugin?"' failed.
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_sb_api_listener_event_process_state (TestMultithreaded.SBBreakpointCallbackCase.test_sb_api_listener_event_process_state)
UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_sb_api_listener_resume (TestMultithreaded.SBBreakpointCallbackCase.test_sb_api_listener_resume) (skipping due to the following parameter(s): target o/s)
======================================================================
ERROR: test_breakpoint_callback (TestMultithreaded.SBBreakpointCallbackCase.test_breakpoint_callback)
Test the that SBBreakpoint callback is invoked when a breakpoint is hit.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 41, in test_breakpoint_callback
self.build_and_test(
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 132, in build_and_test
subprocess.check_call(exe)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/test_breakpoint_callback', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/inferior_program']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
======================================================================
ERROR: test_breakpoint_location_callback (TestMultithreaded.SBBreakpointCallbackCase.test_breakpoint_location_callback)
Test the that SBBreakpointLocation callback is invoked when a breakpoint is hit.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 51, in test_breakpoint_location_callback
self.build_and_test(
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 132, in build_and_test
subprocess.check_call(exe)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/test_breakpoint_location_callback', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/inferior_program']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
======================================================================
ERROR: test_concurrent_unwind (TestMultithreaded.SBBreakpointCallbackCase.test_concurrent_unwind)
Test that you can run a python command in a stop-hook when stdin is File based.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 101, in test_concurrent_unwind
self.build_and_test(
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 132, in build_and_test
subprocess.check_call(exe)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/test_concurrent_unwind', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/inferior_program']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
======================================================================
ERROR: test_python_stop_hook (TestMultithreaded.SBBreakpointCallbackCase.test_python_stop_hook)
Test that you can run a python command in a stop-hook when stdin is File based.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 33, in test_python_stop_hook
self.build_and_test("driver.cpp test_stop-hook.cpp", "test_python_stop_hook")
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 132, in build_and_test
subprocess.check_call(exe)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/test_python_stop_hook', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/inferior_program']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
======================================================================
ERROR: test_sb_api_listener_event_description (TestMultithreaded.SBBreakpointCallbackCase.test_sb_api_listener_event_description)
Test the description of an SBListener breakpoint event is valid.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 625, in wrapper
func(*args, **kwargs)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 63, in test_sb_api_listener_event_description
self.build_and_test(
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 132, in build_and_test
subprocess.check_call(exe)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/test_listener_event_description', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/inferior_program']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
======================================================================
ERROR: test_sb_api_listener_event_process_state (TestMultithreaded.SBBreakpointCallbackCase.test_sb_api_listener_event_process_state)
Test that a registered SBListener receives events when a process
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 625, in wrapper
func(*args, **kwargs)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 77, in test_sb_api_listener_event_process_state
self.build_and_test(
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/api/multithreaded/TestMultithreaded.py", line 132, in build_and_test
subprocess.check_call(exe)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/test_listener_event_process_state', '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/api/multithreaded/TestMultithreaded/inferior_program']' died with <Signals.SIGABRT: 6>.
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 7 tests in 55.818s
FAILED (errors=6, skipped=1)
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/185162
More information about the lldb-commits
mailing list