Skip to content

Instantly share code, notes, and snippets.

@echoz
Created May 24, 2012 14:33
Show Gist options
  • Save echoz/2781908 to your computer and use it in GitHub Desktop.
Save echoz/2781908 to your computer and use it in GitHub Desktop.
clang analyzer crash
Analyze "Classes/FacadeQueue/Network Manager/LBCNetworkManager.m"
cd /Users/jeremy/Desktop/LBCManagers
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g -Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -Xclang -analyzer-disable-checker -Xclang deadcode.IdempotentOperations -Xclang -analyzer-checker -Xclang osx.cocoa.experimental.SelfInit -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -iquote /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-generated-files.hmap -I/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-own-target-headers.hmap -I/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-all-target-headers.hmap -iquote /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-project-headers.hmap -I/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Products/Debug-iphonesimulator/include -I/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/DerivedSources/i386 -I/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/DerivedSources -F/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Products/Debug-iphonesimulator -include /Users/jeremy/Desktop/LBCManagers/LBCCore/LBCCore-Prefix.pch -MMD -MT dependencies -MF /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/StaticAnalyzer/normal/i386/LBCNetworkManager.d --analyze "/Users/jeremy/Desktop/LBCManagers/Classes/FacadeQueue/Network Manager/LBCNetworkManager.m" -o /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/StaticAnalyzer/normal/i386/LBCNetworkManager.plist
0 clang 0x000000010fa063e2 _ZL15PrintStackTracePv + 34
1 clang 0x000000010fa06869 _ZL13SignalHandleri + 553
2 libsystem_c.dylib 0x00007fff8f769cfa _sigtramp + 26
3 libsystem_c.dylib 0x00007fff6e6de880 _sigtramp + 18446744073155333024
4 clang 0x000000010f4a40c6 _ZL22getValidSourceLocationPKN5clang4StmtEN4llvm12PointerUnionIPKNS_15LocationContextEPNS_19AnalysisDeclContextEEE + 86
5 clang 0x000000010f4a45d3 clang::ento::PathDiagnosticLocation::genLocation(clang::SourceLocation, llvm::PointerUnion<clang::LocationContext const*, clang::AnalysisDeclContext*>) const + 35
6 clang 0x000000010f4730cb (anonymous namespace)::PathDiagnosticBuilder::getEnclosingStmtLocation(clang::Stmt const*) + 587
7 clang 0x000000010f46f71c clang::ento::GRBugReporter::GeneratePathDiagnostic(clang::ento::PathDiagnostic&, llvm::SmallVectorImpl<clang::ento::BugReport*>&) + 5004
8 clang 0x000000010f46ddba clang::ento::BugReporter::FlushReport(clang::ento::BugReportEquivClass&) + 1290
9 clang 0x000000010f46d7c8 clang::ento::BugReporter::FlushReports() + 632
10 clang 0x000000010f41588c _ZL16ActionExprEngineRN12_GLOBAL__N_116AnalysisConsumerERN5clang4ento15AnalysisManagerEPNS2_4DeclEb + 940
11 clang 0x000000010f4153e4 (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl*) + 756
12 clang 0x000000010f414e5e (anonymous namespace)::AnalysisConsumer::HandleDeclContext(clang::ASTContext&, clang::DeclContext*) + 1438
13 clang 0x000000010f414867 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 359
14 clang 0x000000010eb4b0f6 clang::ParseAST(clang::Sema&, bool) + 406
15 clang 0x000000010eb1c13f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
16 clang 0x000000010eb1adcb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2683
17 clang 0x000000010eb0d5ce cc1_main(char const**, char const**, char const*, void*) + 5086
18 clang 0x000000010eae7dd8 main + 648
19 clang 0x000000010eae7b44 start + 52
20 clang 0x0000000000000077 start + 18446744069168268647
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-macosx10.6.0 -analyze -disable-free -disable-llvm-verifier -main-file-name LBCNetworkManager.m -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-checker=osx -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu yonah -target-linker-version 128.2 -g -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/3.1 -dependency-file /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/StaticAnalyzer/normal/i386/LBCNetworkManager.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -iquote /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-generated-files.hmap -iquote /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-project-headers.hmap -include /Users/jeremy/Desktop/LBCManagers/LBCCore/LBCCore-Prefix.pch -D DEBUG=1 -D IBOutlet=__attribute__((iboutlet)) -D IBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName))) -D IBAction=void)__attribute__((ibaction) -D __IPHONE_OS_VERSION_MIN_REQUIRED=40300 -I /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-own-target-headers.hmap -I /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/LBCCore-all-target-headers.hmap -I /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Products/Debug-iphonesimulator/include -I /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/DerivedSources/i386 -I /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/DerivedSources -F/Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Products/Debug-iphonesimulator -fmodule-cache-path /var/folders/v7/76lmlkgx25nc4y5gjhbknwww0000gn/T/clang-module-cache -O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-conversion -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -analyzer-disable-checker deadcode.IdempotentOperations -analyzer-checker osx.cocoa.experimental.SelfInit -o /Users/jeremy/Library/Developer/Xcode/DerivedData/LBCCore-cmlbgkoisoycofhjzhaetnhfvhxa/Build/Intermediates/LBCCore.build/Debug-iphonesimulator/LBCCore.build/StaticAnalyzer/normal/i386/LBCNetworkManager.plist -x objective-c /Users/jeremy/Desktop/LBCManagers/Classes/FacadeQueue/Network Manager/LBCNetworkManager.m
1. <eof> parser at end of file
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://developer.apple.com/bugreporter/ and include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/v7/76lmlkgx25nc4y5gjhbknwww0000gn/T/LBCNetworkManager-ru57Iu.mi
clang: note: diagnostic msg: /var/folders/v7/76lmlkgx25nc4y5gjhbknwww0000gn/T/LBCNetworkManager-ru57Iu.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment