LLDB 在项目运行时使 Xcode 5.1 崩溃

Posted

技术标签:

【中文标题】LLDB 在项目运行时使 Xcode 5.1 崩溃【英文标题】:LLDB Makes Xcode 5.1 Crash on Project Run 【发布时间】:2014-05-24 09:29:16 【问题描述】:

我从今天早上才开始使用 Xcode,虽然我已经有一段时间了。无论如何,对于主要从事 C 项目的工作,我使用 Netbeans...

长话短说,今天早上我注意到,在创建我的第一个项目 OS XC 命令行应用程序之后,当我运行 (CMD + R) 我的项目时,Xcode 在构建它后立即崩溃.它恰好在运行项目时崩溃。

它没有给出任何错误信息,程序只是退出。由于我是 Xcode 的新手,我不知道在哪里可以找到错误日志文件,我什至不知道是否有。虽然如果有的话,我很想知道在哪里可以找到它。在谷歌上搜索并没有帮助我找到这个文件。

首先,我认为此问题仅针对 OS X C 命令行应用程序项目。结果,我用其他几个项目类型进行了测试,得到了相同的输出。

无论如何,我已经设法解决了这个问题,方法是在 Product -> Scheme -> Edit Scheme -> Run -> Info 选项卡中为我的项目选择 no debugger

但是,我的项目现在正在运行,我仍然需要调试器,因此这对我来说不是解决方案。

我也试过卸载并重新安装 Xcode,但问题并没有消失。

这是一个常见问题还是只有我一个人?我看到其他人在 Xcode 的早期版本中抱怨与我相关的问题,但大多数人都为他们找到了有效的解决方案,我也尝试过,但没有成功。

有人知道如何解决这个问题吗?我非常绝望,我脑海中唯一的“解决方案”就是看看重新安装操作系统是否对我有帮助,我宁愿不这样做.

我忘了提一下,我在 MacBook Pro Retina 2013 机器上运行最新版本的 OS X (10.9.2)。另外,我有最新版本的 Xcode,5.1 (5B130a)。

编辑

在创建新用户并执行上述步骤后,我设法从 Xcode 收到一条错误消息:

Process:         Xcode [3307]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         5.1 (5084)
Build Info:      IDEFrameworks-5084000000000000~21
App Item ID:     497799835
App External ID: 444172641
Code Type:       X86-64 (Native)
Parent Process:  launchd [3106]
Responsible:     Xcode [3307]
User ID:         502

Date/Time:       2014-04-10 19:02:19.685 +0300
OS Version:      Mac OS X 10.9.2 (13C64)
Report Version:  11
Anonymous UUID:  B87A6F4C-ADAC-0A40-43D5-CB68FB46397E

Sleep/Wake UUID: 87996F32-190A-4A5F-8E94-BE0F0E902624

Crashed Thread:  10  Dispatch queue: DBGLLDBLauncher Serial Queue

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 5B130a
Assertion failed: (out_port != 0), function StartDebugserverProcess, file /SourceCache/lldb/lldb-310.2.36/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp, line 720.


Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff89376a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff89375d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93f28155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93f27779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93f270b5 CFRunLoopRunSpecific + 309
5   com.apple.HIToolbox             0x00007fff920a4a0d RunCurrentEventLoopInMode + 226
6   com.apple.HIToolbox             0x00007fff920a47b7 ReceiveNextEventCommon + 479
7   com.apple.HIToolbox             0x00007fff920a45bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
8   com.apple.AppKit                0x00007fff8968c3de _DPSNextEvent + 1434
9   com.apple.AppKit                0x00007fff8968ba2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
10  com.apple.dt.DVTKit             0x000000010b50ae31 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 84
11  com.apple.AppKit                0x00007fff8967fb2c -[NSApplication run] + 553
12  com.apple.AppKit                0x00007fff8966a913 NSApplicationMain + 940
13  libdyld.dylib                   0x00007fff9237c5fd start + 1

Thread 1:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8937b662 kevent64 + 10
1   libdispatch.dylib               0x00007fff90bd143d _dispatch_mgr_invoke + 239
2   libdispatch.dylib               0x00007fff90bd1152 _dispatch_mgr_thread + 52

Thread 3:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x00007fff89376a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff89375d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93f28155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93f27779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93f270b5 CFRunLoopRunSpecific + 309
5   com.apple.Foundation            0x00007fff890cc967 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
6   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
7   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
8   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
9   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff89376a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff89375d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93f28155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93f27779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93f270b5 CFRunLoopRunSpecific + 309
5   com.apple.DTDeviceKitBase       0x0000000113d9540e -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 162
6   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
7   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
8   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
9   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 5:: com.apple.CFSocket.private
0   libsystem_kernel.dylib          0x00007fff8937a9aa __select + 10
1   com.apple.CoreFoundation        0x00007fff93f73b83 __CFSocketManager + 867
2   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
3   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
4   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 6:
0   libsystem_kernel.dylib          0x00007fff89376a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff89375d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93f28155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93f27779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93f270b5 CFRunLoopRunSpecific + 309
5   com.apple.AppKit                0x00007fff8982c16e _NSEventThread + 144
6   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
7   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
8   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 7:: DYMobileDeviceManager
0   libsystem_kernel.dylib          0x00007fff89376a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff89375d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93f28155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93f27779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93f270b5 CFRunLoopRunSpecific + 309
5   com.apple.Foundation            0x00007fff890ceadc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253
6   com.apple.Foundation            0x00007fff891b74aa -[NSRunLoop(NSRunLoop) run] + 74
7   com.apple.GPUToolsMobileFoundation  0x0000000117506e0d -[DYMobileDeviceManager _deviceNotificationThread:] + 134
8   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
9   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
10  libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
11  libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 8:: CVDisplayLink
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc3b _pthread_cond_wait + 727
2   com.apple.CoreVideo             0x00007fff9005fa38 CVDisplayLink::runIOThread() + 656
3   com.apple.CoreVideo             0x00007fff9005f78f startIOThread(void*) + 147
4   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
5   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
6   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 9:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 10 Crashed:: Dispatch queue: DBGLLDBLauncher Serial Queue
0   libsystem_kernel.dylib          0x00007fff8937a866 __pthread_kill + 10
1   libsystem_pthread.dylib         0x00007fff900bb35c pthread_kill + 92
2   libsystem_c.dylib               0x00007fff915d6b1a abort + 125
3   libsystem_c.dylib               0x00007fff915a09bf __assert_rtn + 321
4   com.apple.LLDB.framework        0x0000000119b1c4d2 GDBRemoteCommunication::StartDebugserverProcess(char const*, unsigned short, lldb_private::ProcessLaunchInfo&, unsigned short&) + 1738
5   com.apple.LLDB.framework        0x0000000119b232ba ProcessGDBRemote::LaunchAndConnectToDebugserver(lldb_private::ProcessInfo const&) + 216
6   com.apple.LLDB.framework        0x0000000119b23824 ProcessGDBRemote::DoAttachToProcessWithID(unsigned long long, lldb_private::ProcessAttachInfo const&) + 126
7   com.apple.LLDB.framework        0x0000000119bac94b lldb_private::Process::Attach(lldb_private::ProcessAttachInfo&) + 1541
8   com.apple.LLDB.framework        0x0000000119bf4940 PlatformDarwin::Attach(lldb_private::ProcessAttachInfo&, lldb_private::Debugger&, lldb_private::Target*, lldb_private::Listener&, lldb_private::Error&) + 456
9   com.apple.LLDB.framework        0x0000000119ba2ec7 lldb_private::Platform::DebugProcess(lldb_private::ProcessLaunchInfo&, lldb_private::Debugger&, lldb_private::Target*, lldb_private::Listener&, lldb_private::Error&) + 213
10  com.apple.LLDB.framework        0x0000000119bf4724 PlatformDarwin::DebugProcess(lldb_private::ProcessLaunchInfo&, lldb_private::Debugger&, lldb_private::Target*, lldb_private::Listener&, lldb_private::Error&) + 50
11  com.apple.LLDB.framework        0x0000000119bc5869 lldb_private::Target::Launch(lldb_private::Listener&, lldb_private::ProcessLaunchInfo&) + 483
12  com.apple.LLDB.framework        0x00000001188febb4 lldb::SBTarget::Launch(lldb::SBLaunchInfo&, lldb::SBError&) + 502
13  com.apple.dt.dbg.DebuggerLLDB   0x00000001155ce4d1 -[DBGLLDBLauncher _doRegularDebugWithTarget:usingDebugServer:errTargetString:] + 3242
14  com.apple.dt.dbg.DebuggerLLDB   0x00000001155d01ad __24-[DBGLLDBLauncher start]_block_invoke + 4672
15  libdispatch.dylib               0x00007fff90bd21d7 _dispatch_call_block_and_release + 12
16  libdispatch.dylib               0x00007fff90bcf2ad _dispatch_client_callout + 8
17  libdispatch.dylib               0x00007fff90bd168f _dispatch_queue_drain + 451
18  libdispatch.dylib               0x00007fff90bd29dd _dispatch_queue_invoke + 110
19  libdispatch.dylib               0x00007fff90bd0fa3 _dispatch_root_queue_drain + 75
20  libdispatch.dylib               0x00007fff90bd2193 _dispatch_worker_thread2 + 40
21  libsystem_pthread.dylib         0x00007fff900bbef8 _pthread_wqthread + 314
22  libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 11:
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc77 _pthread_cond_wait + 787
2   com.apple.Foundation            0x00007fff8909d930 -[NSCondition waitUntilDate:] + 344
3   com.apple.Foundation            0x00007fff890947d8 -[NSConditionLock lockWhenCondition:beforeDate:] + 232
4   com.apple.CSServiceClient       0x000000010da15558 -[CSLogger loggerThread:] + 241
5   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
6   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
7   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
8   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 12:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 13:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 14:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 15:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 16:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 17:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 18:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 19:
0   libsystem_kernel.dylib          0x00007fff8937ae6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff900bbf08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff900befb9 start_wqthread + 13

Thread 20:
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc3b _pthread_cond_wait + 727
2   com.apple.Xcode.DevToolsCore    0x000000011295d363 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 524
3   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
4   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
5   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
6   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 21:
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc3b _pthread_cond_wait + 727
2   com.apple.Xcode.DevToolsCore    0x000000011295d363 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 524
3   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
4   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
5   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
6   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 22:
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc3b _pthread_cond_wait + 727
2   com.apple.Xcode.DevToolsCore    0x000000011295d363 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 524
3   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
4   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
5   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
6   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 23:
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc3b _pthread_cond_wait + 727
2   com.apple.Xcode.DevToolsCore    0x000000011295d363 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 524
3   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
4   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
5   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
6   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 24:
0   libsystem_kernel.dylib          0x00007fff8937a716 __psynch_cvwait + 10
1   libsystem_pthread.dylib         0x00007fff900bcc3b _pthread_cond_wait + 727
2   com.apple.Xcode.DevToolsCore    0x000000011295d363 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 524
3   com.apple.Foundation            0x00007fff890cc76b __NSThread__main__ + 1318
4   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
5   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
6   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 25:: <lldb.comm.debugger.input>
0   libsystem_kernel.dylib          0x00007fff8937a9aa __select + 10
1   com.apple.LLDB.framework        0x0000000119a315f0 lldb_private::ConnectionFileDescriptor::BytesAvailable(unsigned int, lldb_private::Error*) + 888
2   com.apple.LLDB.framework        0x0000000119a31052 lldb_private::ConnectionFileDescriptor::Read(void*, unsigned long, unsigned int, lldb::ConnectionStatus&, lldb_private::Error*) + 170
3   com.apple.LLDB.framework        0x0000000119a2f493 lldb_private::Communication::ReadFromConnection(void*, unsigned long, unsigned int, lldb::ConnectionStatus&, lldb_private::Error*) + 97
4   com.apple.LLDB.framework        0x0000000119a2f0f1 lldb_private::Communication::ReadThread(void*) + 147
5   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
6   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
7   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 26:: <lldb.comm.xcode.lldb.comm>
0   libsystem_kernel.dylib          0x00007fff8937a9aa __select + 10
1   com.apple.LLDB.framework        0x0000000119a315f0 lldb_private::ConnectionFileDescriptor::BytesAvailable(unsigned int, lldb_private::Error*) + 888
2   com.apple.LLDB.framework        0x0000000119a31052 lldb_private::ConnectionFileDescriptor::Read(void*, unsigned long, unsigned int, lldb::ConnectionStatus&, lldb_private::Error*) + 170
3   com.apple.LLDB.framework        0x0000000119a2f493 lldb_private::Communication::ReadFromConnection(void*, unsigned long, unsigned int, lldb::ConnectionStatus&, lldb_private::Error*) + 97
4   com.apple.LLDB.framework        0x0000000119a2f0f1 lldb_private::Communication::ReadThread(void*) + 147
5   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
6   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
7   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 27:
0   libsystem_kernel.dylib          0x00007fff89376a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff89375d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93f28155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93f27779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93f270b5 CFRunLoopRunSpecific + 309
5   com.apple.CoreFoundation        0x00007fff93fdc811 CFRunLoopRun + 97
6   com.apple.DebugSymbols          0x00007fff94c437e3 SpotlightQueryThread(void*) + 355
7   libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
8   libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
9   libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 28:: listen://localhost:0
0   libsystem_kernel.dylib          0x00007fff8937b64a kevent + 10
1   libsystem_info.dylib            0x00007fff8a813d3b _mdns_search + 1184
2   libsystem_info.dylib            0x00007fff8a81a75c mdns_addrinfo + 513
3   libsystem_info.dylib            0x00007fff8a81a52b search_addrinfo + 183
4   libsystem_info.dylib            0x00007fff8a81a2c0 si_addrinfo + 1468
5   libsystem_info.dylib            0x00007fff8a819c5f getaddrinfo + 171
6   com.apple.LLDB.framework        0x0000000119c4edf0 lldb_private::SocketAddress::getaddrinfo(char const*, char const*, int, int, int, int) + 76
7   com.apple.LLDB.framework        0x0000000119a301dd lldb_private::ConnectionFileDescriptor::SocketListen(char const*, lldb_private::Error*) + 521
8   com.apple.LLDB.framework        0x0000000119a2fc39 lldb_private::ConnectionFileDescriptor::Connect(char const*, lldb_private::Error*) + 149
9   com.apple.LLDB.framework        0x0000000119b1bdd1 GDBRemoteCommunication::ListenThread(void*) + 71
10  libsystem_pthread.dylib         0x00007fff900ba899 _pthread_body + 138
11  libsystem_pthread.dylib         0x00007fff900ba72a _pthread_start + 137
12  libsystem_pthread.dylib         0x00007fff900befc9 thread_start + 13

Thread 10 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x000000011b0c7000  rcx: 0x000000011b0c48b8  rdx: 0x0000000000000000
  rdi: 0x0000000000003f5b  rsi: 0x0000000000000006  rbp: 0x000000011b0c48e0  rsp: 0x000000011b0c48b8
   r8: 0x00007fc91a83ae00   r9: 0x0000000000000227  r10: 0x000000000c000000  r11: 0x0000000000000206
  r12: 0x0000000119e6e0f2  r13: 0x0000000119e6e0da  r14: 0x0000000000000006  r15: 0x0000000119e6dec0
  rip: 0x00007fff8937a866  rfl: 0x0000000000000206  cr2: 0x000000010dc4b000

Logical CPU:     0
Error Code:      0x020000b8
Trap Number:     133

【问题讨论】:

就在空中。所有命令行工具都安装了吗? 可能是真的。但是从错误消息的外观来看,这是将端口分配给需要运行才能启动的 gdb 服务器的问题。我发现对工具llvm.org/viewvc/llvm-project?view=revision&revision=198963 进行了此更改,因此存在一些问题。你安装了什么版本的开发工具? xcode-select -v 我的版本相同。链接本身只是调试器源文件更改的参考。但它看起来像你的电脑坏了。顺便说一句,我猜您尝试以 root 身份而不是您的用户? lldb 和开发工具的版本相同 - 并且没有错误。至少当我尝试使用单视图 ios 应用程序时。 用 brew 我猜你在谈论 Homebrew。我已经有很长时间了。 【参考方案1】:

我遇到了同样的问题并修复了它。见https://***.com/a/14414016/968427。 检查 /etc/hosts 文件并确保主机(127.0.0.1 localhost)存在。

【讨论】:

【参考方案2】:

显然,这不是一个常见问题,它只影响了我。

我设法让 Xcode 按预期工作的唯一方法是删除应用程序并重新安装整个操作系统。

更新

在我再次安装 Xcode 后不久,该错误再次出现。因此,我选择了完全重新安装操作系统(同时格式化硬盘)。

然而,几周后,该错误再次出现。无论如何,这一次我注意到为什么会发生这种情况。原因与 MAMP PRO mysql 端口有关。只有当我运行 MAMP PRO MySQL 服务器时,Xcode 才能工作。

【讨论】:

以上是关于LLDB 在项目运行时使 Xcode 5.1 崩溃的主要内容,如果未能解决你的问题,请参考以下文章

XCode 9 停止调试和运行应用程序并给出错误“LLDB RPC 服务器已崩溃。”

Swift WHOLE_MODULE_OPTIMIZATION 提高了编译时间,但会导致 lldb/Xcode 崩溃

Xcode 8 beta LLDB 不断崩溃

每当添加断点时 LLDB 就会崩溃

xcode 5.1 中的 iOS 模拟器崩溃

xcode ios间歇性崩溃