-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Closed
Copy link
Labels
Description
When launching lldb-mcp
(ToT) on macOS, I hit:
Assertion failed: (monitoring), function LaunchProcess, file Host.mm, line 1429.
❯ lldb -- /Users/jonas/llvm/build-ra/bin/lldb-mcp
(lldb) target create "/Users/jonas/llvm/build-ra/bin/lldb-mcp"
Current executable set to '/Users/jonas/llvm/build-ra/bin/lldb-mcp' (arm64).
(lldb) r
Process 84999 launched: '/Users/jonas/llvm/build-ra/bin/lldb-mcp' (arm64)
Assertion failed: (monitoring), function LaunchProcess, file Host.mm, line 1429.
Process 84999 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
frame #4: 0x000000010007e078 lldb-mcp`lldb_private::Host::LaunchProcess() (.cold.2) at Host.mm:1429:5 [opt]
1426 // Make sure we reap any processes we spawn or we will have zombies.
1427 bool monitoring = launch_info.MonitorProcess();
1428 UNUSED_IF_ASSERT_DISABLED(monitoring);
-> 1429 assert(monitoring);
1430 } else {
1431 // Invalid process ID, something didn't go well
1432 if (error.Success())
Target 0: (lldb-mcp) stopped.
warning: lldb-mcp was compiled with optimization - stepping may behave oddly; variables may not be available.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
frame #0: 0x0000000184adb5b0 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x0000000184b15888 libsystem_pthread.dylib`pthread_kill + 296
frame #2: 0x0000000184a1a850 libsystem_c.dylib`abort + 124
frame #3: 0x0000000184a19a84 libsystem_c.dylib`__assert_rtn + 284
* frame #4: 0x000000010007e078 lldb-mcp`lldb_private::Host::LaunchProcess() (.cold.2) at Host.mm:1429:5 [opt]
frame #5: 0x000000010001ecf4 lldb-mcp`lldb_private::Host::LaunchProcess(launch_info=<unavailable>) at Host.mm:1429:5 [opt]
frame #6: 0x0000000100005774 lldb-mcp`(anonymous namespace)::launch() at lldb-mcp.cpp:92:10 [opt] [inlined]
frame #7: 0x0000000100005608 lldb-mcp`(anonymous namespace)::loadOrStart(timeout=Timeout<std::__1::ratio<1L, 1000000L> > @ 0x0000000a56633dc0) at lldb-mcp.cpp:110:31 [opt]
frame #8: 0x0000000100005394 lldb-mcp`main(argc=1, argv=0x000000016fdfe9c8) at lldb-mcp.cpp:226:38 [opt]
frame #9: 0x000000018474dd54 dyld`start(kernArgs=<unavailable>, prevDyldMH=<unavailable>, dyldSharedCache=<unavailable>) at dyldMain.cpp:1477:18 [opt]