[Lldb-commits] [lldb] [lldb] Fix double free in CommandPluginInterfaceImplementation (PR #131658)

Alexander Kornienko via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 24 10:11:38 PDT 2025


alexfh wrote:

We started seeing assertion failures in SBCommandInterpreterTest after this commit:
```
[ RUN      ] SBCommandInterpreterTest.SingleWordCommand
[       OK ] SBCommandInterpreterTest.SingleWordCommand (245 ms)
[ RUN      ] SBCommandInterpreterTest.MultiWordCommand
assertion failed at llvm-project/lldb/source/Utility/Log.cpp:223 in static void lldb_private::Log::Register(llvm::StringRef, Channel &): iter.second == true
    @     0x7f62501313f4  __assert_fail
    @     0x7f62783bbac7  lldb_private::Log::Register()
    @     0x7f62a1fff376  lldb_private::SystemInitializerCommon::Initialize()
    @     0x7f62bb4e4ce5  lldb_private::SystemInitializerFull::Initialize()
    @     0x7f62a1fff784  lldb_private::SystemLifetimeManager::Initialize()
    @     0x7f62bb3ee26f  lldb::SBDebugger::InitializeWithErrorHandling()
    @     0x7f62bb3ee144  lldb::SBDebugger::Initialize()
    @     0x7f62bc5db0be  testing::internal::TestFactoryImpl<>::CreateTest()
    @     0x7f62644d1903  testing::TestInfo::Run()
    @     0x7f62644d2ab3  testing::TestSuite::Run()
    @     0x7f62644e5a30  testing::internal::UnitTestImpl::RunAllTests()
    @     0x7f62644e5420  testing::UnitTest::Run()
    @     0x7f6264d0dc1d  main
    @     0x7f629230b3d4  __libc_start_main
    @     0x556100b3476a  _start
```


https://github.com/llvm/llvm-project/pull/131658


More information about the lldb-commits mailing list