当我尝试分析我的代码(产品 -> 分析)时,xcode 崩溃,标题为“clang unexpectedly”
Process: clang [10074] Path: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang Identifier: clang Version: 3.1 (318.0.61) Code Type: X86-64 (Native) Parent Process: clang [10073]
Date/Time: 2012-07-13 18:46:29.862 +0100 OS Version: Mac OS X 10.7.4 (11E53) Report Version: 9
Interval Since Last Report: 140604 sec Crashes Since Last Report: 50 Per-App Crashes Since Last Report: 39 Anonymous UUID: E974A614-4831-478E-8B68-8FE005A98F19
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0: --> __TEXT 000000010180f000-00000001029c8000 [ 17.7M] r-x/rwx SM=COW /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 clang 0x00000001018dc780 clang::Stmt::getSourceRange() const + 16 1 clang 0x00000001021ce0c6 _ZL22getValidSourceLocationPKN5clang4StmtEN4llvm12PointerUnionIPKNS_15LocationContextEPNS_19AnalysisDeclContextEEE + 86 2 clang 0x00000001021ce5d3 clang::ento::PathDiagnosticLocation::genLocation(clang::SourceLocation, llvm::PointerUnion) const + 35
我的客人是因为 LLVM 吗?我有 Apple LLVM 编译器 3.1
谢谢!
编辑: Xcode 版本 4.3.3 (4E3002)
最佳答案
我有一个文件在分析时总是崩溃。我提交了一份关于它的报告,Apple 发现了这个错误——所以很明显他们已经知道了一些错误。请注意,Xcode 4.4 将在一两周内与 llvm 4.0 一起发布,所以请等待,如果您仍然遇到崩溃,请在 bug reporter.apple.com 上提交错误报告
编辑:我的错误报告是针对 4.3.3
关于ios - "clang quit unexpectedly"(xcode 崩溃),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11475877/