简体   繁体   English

调试器使用LLDB时Xcode 4.6.1崩溃

[英]Xcode 4.6.1 crashes when debugger uses LLDB

Xcode 4.6.1 keeps on crashing using LLDB debugger on my new mac mini. Xcode 4.6.1在我的新Mac mini上使用LLDB调试器不断崩溃。 Could anyone help me what's happening? 有人可以帮我发生什么事吗? It is ok to use GDB but I rather use the default debugger so I won't have to change it every time I run/test new projects. 使用GDB是可以的,但是我宁愿使用默认的调试器,因此不必在每次运行/测试新项目时都进行更改。

I've read something about editing /etc/hosts to have 127.0.0.1 localhost but it wasn't working. 我已经读过一些有关将/ etc / hosts编辑为具有127.0.0.1 localhost的信息,但是它没有用。

Here are some of the details whenever my Xcode crashes. 每当我的Xcode崩溃时,下面是一些详细信息。

Process:         Xcode [220]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         4.6.1 (2067)
Build Info:      IDEApplication-2067000000000000~2
Code Type:       X86-64 (Native)
Parent Process:  launchd [133]
User ID:         501

Date/Time:       2013-04-04 10:08:23.876 +0800
OS Version:      Mac OS X 10.8.3 (12D78)
Report Version:  10

Interval Since Last Report:          11460 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  5582 sec
Per-App Crashes Since Last Report:   4
Anonymous UUID:                      F7A4E172-EA44-2180-5471-22ADD0DA75A1

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

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

Application Specific Information:
ProductBuildVersion: 4H512
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFString alloc]: unrecognized selector sent to instance 0x4008c2040
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff8ffacaee __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff856553f0 objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff9004340a -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
  3  0x00007fff8ff9b02e ___forwarding___ (in CoreFoundation)
  4  0x00007fff8ff9ae18 _CF_forwarding_prep_0 (in CoreFoundation)
  5  0x000000010c2f00a6 -[DBGLLDBDebugLocalService operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService)
  6  0x000000010c3505ba -[IDERuniPhoneSimulatorService operationWorkerWithLaunchSession:error:] (in IDEiPhoneSupport)
  7  0x0000000104c6a017 -[IDERunDestination runOperationForLaunchSession:error:] (in IDEFoundation)
  8  0x0000000104c68c87 -[IDELaunchSchemeAction 

It happened with me also. 我也发生了 Esp with SIGABRT at main class. 主要课程有SIGABRT的Esp。 I was advised to debug. 建议我进行调试。 I did try lldb debugging. 我确实尝试了lldb调试。 It worked for one app. 它适用于一个应用程序。 You need to find which register is it throwing the error. 您需要查找引发错误的寄存器。 To find that you need to first type in debugging window (when its lldb error only!) 要查找您需要首先在调试窗口中键入(仅当其lldb错误时!)

register read

and then you'll find the error in which register it being raised. 然后您会发现正在注册的错误。 then follow the following statements. 然后按照以下语句。 If eax is the register.. 如果eax是寄存器。

po $eax
po [$eax class]
po [$eax name]
po [$eax reason]

Then you'll know what changes you have to make in code. 然后,您将知道必须在代码中进行哪些更改。 Hope it works for you. 希望对你有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM