LLDB debugger crashing in Clion 2023.2.2 when trying to debug x64 Windows program

2023-11-03 12:49:39,637 [129235994]   FINE - #c.j.c.e.debugger - 
com.intellij.execution.ExecutionFinishedException: Execution finished
	at com.jetbrains.cidr.execution.ipcUtils.ProtobufServer.sendMessageAndWaitForReply(ProtobufServer.java:385)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$4.sendMessageAndWaitForReply(LLDBDriver.java:425)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.sendMessageAndWaitForReply(LLDBDriver.java:219)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.sendMessageAndWaitForReply(LLDBDriver.java:197)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.executeInterpreterCommand(LLDBDriver.java:2010)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.formatters.LLDBNatvisSupport$Companion.setGlobalHex(LLDBNatvisSupport.kt:28)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.formatters.LLDBNatvisSupport$HexBackendStateManager.sendSetRequest$lambda$0(LLDBNatvisSupport.kt:121)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:1190)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:1184)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invokeSuspend(CidrDebuggerCommandExecutor.kt:89)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor.executeCommand(CidrDebuggerCommandExecutor.kt:81)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommandAsync$1.invokeSuspend(CidrDebuggerCommandExecutor.kt:61)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:215)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
2023-11-03 12:49:39,638 [129235995]   FINE - #c.j.c.e.debugger - [protobuf client 2] 36696 req(7): get_arch {
}
2023-11-03 12:49:39,638 [129235995]   FINE - #c.j.c.e.debugger - 
com.intellij.execution.ExecutionFinishedException: Execution finished
	at com.jetbrains.cidr.execution.ipcUtils.ProtobufServer.sendMessageAndWaitForReply(ProtobufServer.java:385)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$4.sendMessageAndWaitForReply(LLDBDriver.java:425)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.sendMessageAndWaitForReply(LLDBDriver.java:219)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.sendMessageAndWaitForReply(LLDBDriver.java:204)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.computeArchitecture(LLDBDriver.java:2624)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.getArchInfo(LLDBDriver.java:2612)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.getArchitecture(LLDBDriver.java:2598)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerModuleMemory$disasmDoc$2$1$1.initDisasmArch$lambda$0(CidrDebuggerModuleMemory.kt:79)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:1190)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:1184)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invokeSuspend(CidrDebuggerCommandExecutor.kt:89)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor.executeCommand(CidrDebuggerCommandExecutor.kt:81)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommandAsync$1.invokeSuspend(CidrDebuggerCommandExecutor.kt:61)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:215)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
2023-11-03 12:49:39,639 [129235996]   FINE - #c.j.c.e.debugger - [protobuf client 2] 36697 req(7): kill {
}
2023-11-03 12:49:39,639 [129235996]   FINE - #c.j.c.e.debugger - [protobuf client 2] 36697 req(6): exit {
}
2023-11-03 12:49:39,692 [129236049]   FINE - #c.j.c.e.debugger - [protobuf client 2] 36750 req(45): handle_console_command {
  thread_id: 4294967295
  frame_index: -1
  command: "register read --all"
}
2023-11-03 12:49:41,142 [129237499]   FINE - #c.j.c.e.debugger - 
com.intellij.execution.ExecutionFinishedException: Execution finished
	at com.jetbrains.cidr.execution.ipcUtils.ProtobufServer.sendMessageAndWaitForReply(ProtobufServer.java:385)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$4.sendMessageAndWaitForReply(LLDBDriver.java:425)
	at com.jetbrains.cidr.execution.ipcUtils.ProtobufServer.sendMessageAndWaitForReply(ProtobufServer.java:394)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.abort(LLDBDriver.java:1193)
	at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$6.destroyImpl(LLDBDriver.java:606)
	at com.jetbrains.cidr.execution.debugger.backend.DebuggerDriver$Inferior.destroy(DebuggerDriver.java:1026)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.doDisconnectTarget(CidrDebugProcess.java:803)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$2.lambda$processWillTerminate$0(CidrDebugProcess.java:301)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:1190)
	at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$VoidDebuggerCommand.call(CidrDebugProcess.java:1184)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invokeSuspend(CidrDebuggerCommandExecutor.kt:89)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor.executeCommand(CidrDebuggerCommandExecutor.kt:81)
	at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommandAsync$1.invokeSuspend(CidrDebuggerCommandExecutor.kt:61)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:215)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)

LLDB debugger crashing in Clion 2023.2.2 when trying to debug x64 Windows program. I set a single breakpoint in the middle of the code and run it, it then freezes for a while until it crashes with error code 1, see log above. Any help is much appreciated. Debugging with cout is a painful process:(

0

Hi,

Could you please share your code, which leads to the issue with the debugger, so we could reproduce the issue on our side?

We have two issues with the same exceptions in our tracker: 
https://youtrack.jetbrains.com/issue/CPP-34472/LLDB-crashes-when-a-union-has-a-static-member and https://youtrack.jetbrains.com/issue/CPP-28640/Bundled-LLDB-debugger-process-crashes-with-sigsegv
Do you have something similar?

0

请先登录再写评论。