[llvm-bugs] [Bug 26707] New: checker-278 error

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 22 23:36:54 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26707

            Bug ID: 26707
           Summary: checker-278 error
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: hasancan.akgunduz at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Set clang version checker-278 manually. Restarted xcode. Started analysis and
following error happened:

Analyze Acdm_1/AppUtil.m
    cd /Users/tthakgunduz/Desktop/turkcell-akademi
    export LANG=en_US.US-ASCII
    export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Users/tthakgunduz/Downloads/checker-278/bin/clang -x objective-c -arch
x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules
-fmodules-cache-path=/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/ModuleCache
-fmodules-prune-interval=86400 -fmodules-prune-after=345600
-Wnon-modular-include-in-framework-module
-Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings
-O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type
-Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage
-Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match
-Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label
-Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body
-Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants
-Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion
-Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-Wno-selector -Wno-strict-selector-match -Wundeclared-selector
-Wno-deprecated-implementations -DDEBUG=1 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations
-mios-simulator-version-min=7.0 -g -Wno-sign-conversion -fobjc-abi-version=2
-fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang
-analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang
path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang
report-in-main-source-file=true -Xclang -analyzer-checker -Xclang
security.FloatLoopCounter -Xclang -analyzer-checker -Xclang
security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang
security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang
security.insecureAPI.gets -Xclang -analyzer-checker -Xclang
security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang
security.insecureAPI.mktemp -Xclang -analyzer-checker -Xclang
security.insecureAPI.rand -Xclang -analyzer-checker -Xclang
security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang
security.insecureAPI.vfork -iquote
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-generated-files.hmap
-I/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-own-target-headers.hmap
-I/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-all-target-headers.hmap
-iquote
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-project-headers.hmap
-iquote/usr/include/net
-I/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Products/Debug-iphonesimulator/include
-I/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/DerivedSources/x86_64
-I/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/DerivedSources
-F/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Products/Debug-iphonesimulator
-F/Users/tthakgunduz/Desktop/turkcell-akademi -include
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/PrecompiledHeaders/Acdm_1-Prefix-cdtidyyoamigxbemucwelosubcig/Acdm_1-Prefix.pch
-MMD -MT dependencies -MF
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/StaticAnalyzer/Acdm_1/Acdm_1/normal/x86_64/AppUtil.d
--analyze /Users/tthakgunduz/Desktop/turkcell-akademi/Acdm_1/AppUtil.m -o
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/StaticAnalyzer/Acdm_1/Acdm_1/normal/x86_64/AppUtil.plist

Assertion failed: (I != Vec.end() && "list does not contain decl"), function
remove, file
/Volumes/Data/dcoughlin/build_checker/checker-build/checker-278-src/tools/clang/include/clang/AST/DeclContextInternals.h,
line 116.
0  clang                    0x00000001036ab79b
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  clang                    0x00000001036ac876 SignalHandler(int) + 502
2  libsystem_platform.dylib 0x00007fff8738eeaa _sigtramp + 26
3  clang                    0x00000001058d466f (anonymous
namespace)::LiveDebugValues::ID + 55155
4  clang                    0x00000001036abc96 abort + 22
5  clang                    0x00000001036abc71 __assert_rtn + 81
6  clang                    0x0000000104eeed37
clang::DeclContext::removeDecl(clang::Decl*) + 871
7  clang                    0x0000000104ed4ec2
clang::FunctionDecl::setDeclsInPrototypeScope(llvm::ArrayRef<clang::NamedDecl*>)
+ 226
8  clang                    0x000000010467c65e
clang::Sema::ActOnFunctionDeclarator(clang::Scope*, clang::Declarator&,
clang::DeclContext*, clang::TypeSourceInfo*, clang::LookupResult&,
llvm::MutableArrayRef<clang::TemplateParameterList*>, bool&) + 16606
9  clang                    0x0000000104675f58
clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&,
llvm::MutableArrayRef<clang::TemplateParameterList*>) + 3496
10 clang                    0x00000001042f0107
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) + 359
11 clang                    0x00000001042ee7b2
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 3266
12 clang                    0x000000010438d8cf
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 879
13 clang                    0x000000010438d043
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 403
14 clang                    0x000000010438ba70
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3344
15 clang                    0x000000010438ac12
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 594
16 clang                    0x00000001042d61a6 clang::ParseAST(clang::Sema&,
bool, bool) + 678
17 clang                    0x0000000103cb1105 clang::FrontendAction::Execute()
+ 213
18 clang                    0x0000000103c6f731
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1089
19 clang                    0x0000000103cfd5ab
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 6523
20 clang                    0x0000000102a933b3 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 2035
21 clang                    0x0000000102a9c35e main + 14334
22 clang                    0x0000000102a92bb4 start + 52
23 clang                    0x00000000000000af start + 4250326319
Stack dump:
0.    Program arguments: /Users/tthakgunduz/Downloads/checker-278/bin/clang
-cc1 -triple x86_64-apple-ios7.0.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration
-analyze -disable-free -main-file-name AppUtil.m -analyzer-store=region
-analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume
-analyzer-checker=core -analyzer-checker=unix -analyzer-checker=osx
-analyzer-checker=deadcode
-analyzer-checker=security.insecureAPI.UncheckedReturn
-analyzer-checker=security.insecureAPI.getpw
-analyzer-checker=security.insecureAPI.gets
-analyzer-checker=security.insecureAPI.mktemp
-analyzer-checker=security.insecureAPI.mkstemp
-analyzer-checker=security.insecureAPI.vfork
-analyzer-checker=nullability.NullPassedToNonnull
-analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.3
-dwarf-column-info -dwarf-ext-refs -fmodule-format=obj
-debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb
-resource-dir /Users/tthakgunduz/Downloads/checker-278/bin/../lib/clang/3.8.0
-dependency-file
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/StaticAnalyzer/Acdm_1/Acdm_1/normal/x86_64/AppUtil.d
-MT dependencies -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk
-iquote
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-generated-files.hmap
-iquote
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-project-headers.hmap
-iquote /usr/include/net -include-pch
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/PrecompiledHeaders/Acdm_1-Prefix-cdtidyyoamigxbemucwelosubcig/Acdm_1-Prefix.pch.pch
-D DEBUG=1 -D __clang_analyzer__ -I
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-own-target-headers.hmap
-I
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/Acdm_1-all-target-headers.hmap
-I
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Products/Debug-iphonesimulator/include
-I
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/DerivedSources/x86_64
-I
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/DerivedSources
-F/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Products/Debug-iphonesimulator
-F/Users/tthakgunduz/Desktop/turkcell-akademi -O0
-Wnon-modular-include-in-framework-module
-Werror=non-modular-include-in-framework-module -Wno-trigraphs
-Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type
-Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage
-Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match
-Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label
-Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body
-Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants
-Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion
-Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-Wno-selector -Wno-strict-selector-match -Wundeclared-selector
-Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations
-Wno-sign-conversion -std=gnu99 -fdebug-compilation-dir
/Users/tthakgunduz/Desktop/turkcell-akademi -ferror-limit 19
-fmacro-backtrace-limit 0 -fmessage-length 0 -stack-protector 1 -fblocks
-fmodules -fimplicit-module-maps
-fmodules-cache-path=/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/ModuleCache
-fmodules-prune-interval=86400 -fmodules-prune-after=345600
-fobjc-runtime=ios-7.0.0 -fencode-extended-block-signature -fobjc-arc
-fobjc-exceptions -fexceptions -fpascal-strings -fmax-type-align=16
-fdiagnostics-show-option -fdiagnostics-show-note-include-stack -fasm-blocks
-analyzer-output=plist-multi-file -analyzer-config
path-diagnostics-alternate=true -analyzer-config
report-in-main-source-file=true -analyzer-checker security.FloatLoopCounter
-analyzer-checker security.insecureAPI.UncheckedReturn -analyzer-checker
security.insecureAPI.getpw -analyzer-checker security.insecureAPI.gets
-analyzer-checker security.insecureAPI.mkstemp -analyzer-checker
security.insecureAPI.mktemp -analyzer-checker security.insecureAPI.rand
-analyzer-checker security.insecureAPI.strcpy -analyzer-checker
security.insecureAPI.vfork -o
/Users/tthakgunduz/Library/Developer/Xcode/DerivedData/Acdm_1-awwznxjwrcwiggasxfzdeahlrwou/Build/Intermediates/Acdm_1.build/Debug-iphonesimulator/Acdm_1.build/StaticAnalyzer/Acdm_1/Acdm_1/normal/x86_64/AppUtil.plist
-x objective-c /Users/tthakgunduz/Desktop/turkcell-akademi/Acdm_1/AppUtil.m
1.   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/resolv.h:326:51:
current parser token ';'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (tags/checker/checker-278)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
InstalledDir: /Users/tthakgunduz/Downloads/checker-278/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: error: unable to execute command: Illegal instruction: 4
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Users/tthakgunduz/Downloads/checker-278/bin/clang failed with exit
code 254

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160223/a9dea4c0/attachment-0001.html>


More information about the llvm-bugs mailing list