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-mi error on Linux/llvm.18.1: Option 'debug-counter' registered more than once! #105806

Closed
vibrys opened this issue Aug 23, 2024 · 4 comments
Closed
Labels
invalid Resolved as invalid, i.e. not a bug lldb

Comments

@vibrys
Copy link

vibrys commented Aug 23, 2024

trying to use lldb-mi with dap on Linux ubuntu.20.04 + llvm.18.1.

Command lldb-mi --interpreter=mi --tty=/dev/pts/5 poduces the following error:

CommandLine Error: Option 'debug-counter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
 #0 0x000055d14bd8f406 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x125406)
 #1 0x000055d14bd8d382 llvm::sys::RunSignalHandlers() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x123382)
 #2 0x000055d14bd8fdf0 SignalHandler(int) Signals.cpp.o:0:0
 #3 0x00007f2de789e420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #4 0x00007f2de738700b raise /build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #5 0x00007f2de7366859 abort /build/glibc-LcI20x/glibc-2.31/stdlib/abort.c:81:7
 #6 0x000055d14bdcd8dc llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x1638dc)
 #7 0x000055d14bdcd706 (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x163706)
 #8 0x000055d14bdc36bd (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x1596bd)
 #9 0x000055d14bdb4fac llvm::cl::Option::addArgument() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x14afac)
#10 0x000055d14bdc988d (anonymous namespace)::DebugCounterOwner::DebugCounterOwner() DebugCounter.cpp.o:0:0
#11 0x000055d14bdc9743 llvm::initDebugCounterOptions() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x15f743)
#12 0x000055d14bdbcce3 initCommonOptions() CommandLine.cpp.o:0:0
#13 0x000055d14bdba58c llvm::cl::ParseCommandLineOptions(int, char const* const*, llvm::StringRef, llvm::raw_ostream*, char const*, bool) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x15058c)
#14 0x00007f2de7bd9137 (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x2fc137)
#15 0x00007f2de7dcf59b (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x4f259b)
#16 0x00007f2de7ae4b91 lldb::SBDebugger::InitializeWithErrorHandling() (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x207b91)
#17 0x00007f2de7ae4aa0 lldb::SBDebugger::Initialize() (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x207aa0)
#18 0x000055d14bd441a7 CMICmnLLDBDebugger::Initialize() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0xda1a7)
#19 0x000055d14bd6ab37 bool MI::ModuleInit<CMICmnLLDBDebugger>(int, bool&, CMIUtilString&) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x100b37)
#20 0x000055d14bd67b7c CMIDriver::Initialize() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0xfdb7c)
#21 0x000055d14bd67fe2 CMIDriver::DoInitialize() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0xfdfe2)
#22 0x000055d14bd6c75c CMIDriverMgr::RegisterDriver(CMIDriverMgr::IDriver const&, CMIUtilString const&) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x10275c)
#23 0x000055d14bd6be16 DriverSystemInit() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x101e16)
#24 0x000055d14bd6bef2 main (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x101ef2)
#25 0x00007f2de7368083 __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:342:3
#26 0x000055d14bcd1a3e _start (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x67a3e)

in fact, whatever arguments are passed to lldb-mi, the error above is produced.

@llvmbot
Copy link

llvmbot commented Aug 23, 2024

@llvm/issue-subscribers-lldb

Author: Vibrys (vibrys)

trying to use lldb-mi with dap on Linux ubuntu.20.04 + llvm.18.1.

Command lldb-mi --interpreter=mi --tty=/dev/pts/5 poduces the following error:

CommandLine Error: Option 'debug-counter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
 #<!-- -->0 0x000055d14bd8f406 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x125406)
 #<!-- -->1 0x000055d14bd8d382 llvm::sys::RunSignalHandlers() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x123382)
 #<!-- -->2 0x000055d14bd8fdf0 SignalHandler(int) Signals.cpp.o:0:0
 #<!-- -->3 0x00007f2de789e420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #<!-- -->4 0x00007f2de738700b raise /build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #<!-- -->5 0x00007f2de7366859 abort /build/glibc-LcI20x/glibc-2.31/stdlib/abort.c:81:7
 #<!-- -->6 0x000055d14bdcd8dc llvm::report_fatal_error(llvm::Twine const&amp;, bool) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x1638dc)
 #<!-- -->7 0x000055d14bdcd706 (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x163706)
 #<!-- -->8 0x000055d14bdc36bd (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x1596bd)
 #<!-- -->9 0x000055d14bdb4fac llvm::cl::Option::addArgument() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x14afac)
#<!-- -->10 0x000055d14bdc988d (anonymous namespace)::DebugCounterOwner::DebugCounterOwner() DebugCounter.cpp.o:0:0
#<!-- -->11 0x000055d14bdc9743 llvm::initDebugCounterOptions() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x15f743)
#<!-- -->12 0x000055d14bdbcce3 initCommonOptions() CommandLine.cpp.o:0:0
#<!-- -->13 0x000055d14bdba58c llvm::cl::ParseCommandLineOptions(int, char const* const*, llvm::StringRef, llvm::raw_ostream*, char const*, bool) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x15058c)
#<!-- -->14 0x00007f2de7bd9137 (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x2fc137)
#<!-- -->15 0x00007f2de7dcf59b (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x4f259b)
#<!-- -->16 0x00007f2de7ae4b91 lldb::SBDebugger::InitializeWithErrorHandling() (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x207b91)
#<!-- -->17 0x00007f2de7ae4aa0 lldb::SBDebugger::Initialize() (/lib/x86_64-linux-gnu/liblldb-18.so.1+0x207aa0)
#<!-- -->18 0x000055d14bd441a7 CMICmnLLDBDebugger::Initialize() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0xda1a7)
#<!-- -->19 0x000055d14bd6ab37 bool MI::ModuleInit&lt;CMICmnLLDBDebugger&gt;(int, bool&amp;, CMIUtilString&amp;) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x100b37)
#<!-- -->20 0x000055d14bd67b7c CMIDriver::Initialize() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0xfdb7c)
#<!-- -->21 0x000055d14bd67fe2 CMIDriver::DoInitialize() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0xfdfe2)
#<!-- -->22 0x000055d14bd6c75c CMIDriverMgr::RegisterDriver(CMIDriverMgr::IDriver const&amp;, CMIUtilString const&amp;) (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x10275c)
#<!-- -->23 0x000055d14bd6be16 DriverSystemInit() (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x101e16)
#<!-- -->24 0x000055d14bd6bef2 main (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x101ef2)
#<!-- -->25 0x00007f2de7368083 __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:342:3
#<!-- -->26 0x000055d14bcd1a3e _start (/opt/lldb-mi-a6c8c66/bin/lldb-mi+0x67a3e)

in fact, whatever arguments are passed to lldb-mi, the error above is produced.

@bulbazord
Copy link
Member

lldb-mi has not been a part of the lldb for a few years now, so I'm not sure there's much we can do to help you here. I would recommend filing a bug with whoever packaged the lldb-mi that you're using.

For reference, lldb-mi is now developed and maintained here: https://github.com/lldb-tools/lldb-mi

@vibrys
Copy link
Author

vibrys commented Aug 23, 2024

@bulbazord , thanks for clarification

@jryans
Copy link
Member

jryans commented Aug 24, 2024

I'll close this issue over here, as I don't think it's actionable in this repo.

@jryans jryans closed this as completed Aug 24, 2024
@jryans jryans closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
@EugeneZelenko EugeneZelenko added the invalid Resolved as invalid, i.e. not a bug label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Resolved as invalid, i.e. not a bug lldb
Projects
None yet
Development

No branches or pull requests

5 participants