[LLVMbugs] [Bug 11146] New: Crash when running static analyzer on chrome

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 16 11:27:28 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=11146

           Summary: Crash when running static analyzer on chrome
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7467)
 --> (http://llvm.org/bugs/attachment.cgi?id=7467)
repro

Run with `-arch i386` on the (unzipped) attached file. This happened at
r142072.



Subtype of ScopedDecl not handled.
UNREACHABLE executed at
/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/tools/clang/lib/StaticAnalyzer/Checkers/../../../include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h:72!
0  clang++           0x00000001013bbda2 PrintStackTrace(void*) + 34
1  clang++           0x00000001013bc389 SignalHandler(int) + 713
2  libSystem.B.dylib 0x00007fff80f0d1ba _sigtramp + 26
3  libSystem.B.dylib 000000000000000000 _sigtramp + 2131701344
4  clang++           0x000000010001d726 abort + 22
5  clang++           0x00000001013adb59 llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 457
6  clang++           0x00000001005676ec clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::FindEscaped, void>::Visit(clang::Stmt*) + 2748
7  clang++           0x00000001005669c2 void
clang::ento::check::ASTCodeBody::_checkBody<(anonymous
namespace)::DeadStoresChecker>(void*, clang::Decl const*,
clang::ento::AnalysisManager&, clang::ento::BugReporter&) + 562
8  clang++           0x00000001005c65bb
clang::ento::CheckerManager::runCheckersOnASTBody(clang::Decl const*,
clang::ento::AnalysisManager&, clang::ento::BugReporter&) + 111
9  clang++           0x0000000100546bba (anonymous
namespace)::AnalysisConsumer::HandleCode(clang::Decl*) + 902
10 clang++           0x0000000100546f75 (anonymous
namespace)::AnalysisConsumer::HandleDeclContext(clang::ASTContext&,
clang::DeclContext*) + 747
11 clang++           0x000000010054743a (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 394
12 clang++           0x000000010025088f clang::ParseAST(clang::Sema&, bool) +
431
13 clang++           0x0000000100039e42
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 958
14 clang++           0x00000001000253b1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2177
15 clang++           0x000000010001f47b cc1_main(char const**, char const**,
char const*, void*) + 2923
16 clang++           0x0000000100022430 main + 640
17 clang++           0x000000010001e904 start + 52
18 clang++           0x00000000000000db start + 4294842379
Stack dump:
0.    Program arguments: /Users/thakis/local/bin/clang++ -cc1 -triple
i386-apple-macosx10.5.0 -analyze -disable-free -main-file-name
custom_home_pages_table_model.cc -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 -masm-verbose -target-cpu yonah
-target-linker-version 97.17 -resource-dir
/Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.1
-isysroot /Developer/SDKs/MacOSX10.5.sdk -D CHROMIUM_BUILD -D ENABLE_REMOTING=1
-D ENABLE_P2P_APIS=1 -D ENABLE_CONFIGURATION_POLICY -D ENABLE_INPUT_SPEECH -D
ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D ENABLE_REGISTER_PROTOCOL_HANDLER=1 -D
NACL_WINDOWS=0 -D NACL_LINUX=0 -D NACL_OSX=1 -D NACL_TARGET_SUBARCH=32 -D
NACL_BUILD_SUBARCH=32 -D ENABLE_SAFE_BROWSING -D GOOGLE_PROTOBUF_NO_RTTI -D
SK_BUILD_NO_IMAGE_ENCODE -D GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D
GR_AGGRESSIVE_SHADER_OPTS=1 -D CLD_WINDOWS -D COMPILER_GCC -D XML_STATIC -D
HUNSPELL_STATIC -D HUNSPELL_CHROME_CLIENT -D USE_HUNSPELL -D
U_USING_ICU_NAMESPACE=0 -D U_STATIC_IMPLEMENTATION -D FEATURE_ENABLE_SSL -D
FEATURE_ENABLE_VOICEMAIL -D EXPAT_RELATIVE_PATH -D WEBRTC_RELATIVE_PATH -D OSX
-D POSIX -D LIBXML_STATIC -D USE_CUPS -D __STDC_FORMAT_MACROS -D
DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D _DEBUG -I
third_party/icu/public/common -I third_party/icu/public/i18n -I . -I
out/Debug/obj.target/geni -I third_party/apple -I third_party/GTM -I
third_party/GTM/AppKit -I third_party/GTM/DebugUtils -I
third_party/GTM/Foundation -I gpu -I out/Debug/obj/gen/policy -I
out/Debug/obj/gen/protoc_out -I third_party/protobuf -I
third_party/protobuf/src -I out/Debug/obj/gen/chrome -I skia/config -I
third_party/skia/include/config -I third_party/skia/include/core -I
third_party/skia/include/effects -I third_party/skia/include/pdf -I
third_party/skia/include/gpu -I third_party/skia/include/ports -I skia/ext -I
third_party/skia/include/utils/mac -I third_party/bzip2 -I third_party/cld -I
third_party/expat/files/lib -I third_party/leveldatabase/src/include -I
third_party/leveldatabase/src -I third_party/libjingle/overrides -I
third_party/libjingle/source -I
out/Debug/obj/gen/protoc_out/third_party/libphonenumber -I
third_party/libxml/mac/include -I third_party/libxml/src/include -I
third_party/npapi -I third_party/npapi/bindings -I
out/Debug/obj/gen/ui/app_locale_settings -I out/Debug/obj/gen/ui/ui_strings -I
out/Debug/obj/gen/ui/ui_resources -I out/Debug/obj/gen/ui/ui_resources_large -I
out/Debug/obj/gen/ui/ui_resources_standard -I out/Debug/obj/gen/webkit
-fmodule-cache-path
/var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/clang-module-cache
-Wno-unused-parameter -Wno-missing-field-initializers -Wno-char-subscripts
-Wno-unused-function -Wno-unnamed-type-template-args -Wno-c++0x-compat
-Wno-c++11-extensions -fdeprecated-macro -ferror-limit 19 -fmessage-length 0
-stack-protector 1 -fblocks -fblocks-runtime-optional -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -analyzer-output=html
-o /var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/scan-build-2011-10-15-2 -x
c++ chrome/browser/custom_home_pages_table_model.cc 
1.    <eof> parser at end of file

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list