[LLVMbugs] [Bug 13765] New: include/clang/AST/Type.h:503: const clang::ExtQualsTypeCommonBase* clang::QualType::getCommonPtr() const: Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed. 0 clang++ 0x0000000001f5a5ef

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 4 08:48:48 PDT 2012


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

             Bug #: 13765
           Summary: include/clang/AST/Type.h:503: const
                    clang::ExtQualsTypeCommonBase*
                    clang::QualType::getCommonPtr() const: Assertion
                    `!isNull() && "Cannot retrieve a NULL type pointer"'
                    failed. 0  clang++         0x0000000001f5a5ef
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: gartung at fnal.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Field  clang++:
/build/davidlt/ext/CMSSW_6_1_X/20120903_1830/a/BUILD/slc5_amd64_gcc462/external/llvm/3.2-cms2/llvm-3.2-163111/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/AST/Type.h:503:
const clang::ExtQualsTypeCommonBase* clang::QualType::getCommonPtr() const:
Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.
0  clang++         0x0000000001f5a5ef
1  clang++         0x0000000001f5aac9
2  libpthread.so.0 0x000000325260ebe0
3  libc.so.6       0x0000003251a30265 gsignal + 53
4  libc.so.6       0x0000003251a31d10 abort + 272
5  libc.so.6       0x0000003251a296e6 __assert_fail + 246
6  clang++         0x0000000000e3be73
7  clang++         0x0000000000e3a187 clang::ento::MemRegion::getAsOffset()
const + 791
8  clang++         0x0000000000e61313
9  clang++         0x0000000000e629f7
10 clang++         0x0000000000e6b08a
11 clang++         0x0000000000e6b64a
12 clang++         0x0000000000e4e976
clang::ento::ProgramState::getSVal(clang::ento::Loc, clang::QualType) const +
102
13 clang++         0x0000000000e0c327
clang::ento::ExprEngine::evalLoadCommon(clang::ento::ExplodedNodeSet&,
clang::Expr const*, clang::Expr const*, clang::ento::ExplodedNode*,
llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal,
clang::ProgramPointTag const*, clang::QualType) + 487
14 clang++         0x0000000000e0c5f4
clang::ento::ExprEngine::evalLoad(clang::ento::ExplodedNodeSet&, clang::Expr
const*, clang::Expr const*, clang::ento::ExplodedNode*,
llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal,
clang::ProgramPointTag const*, clang::QualType) + 196
15 clang++         0x0000000000e1adf4
clang::ento::ExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*,
clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 4340
16 clang++         0x0000000000e11302
clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*,
clang::ento::ExplodedNodeSet&) + 2034
17 clang++         0x0000000000e131a0
clang::ento::ExprEngine::ProcessStmt(clang::CFGStmt,
clang::ento::ExplodedNode*) + 416
18 clang++         0x0000000000e1340a
clang::ento::ExprEngine::processCFGElement(clang::CFGElement,
clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) +
186
19 clang++         0x0000000000df8f41
clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int,
clang::ento::ExplodedNode*) + 145
20 clang++         0x0000000000df917d
clang::ento::CoreEngine::dispatchWorkItem(clang::ento::ExplodedNode*,
clang::ProgramPoint, clang::ento::WorkListUnit const&) + 109
21 clang++         0x0000000000df94c4
clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*,
unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) + 260
22 clang++         0x0000000000cba98f
23 clang++         0x0000000000cbb790
24 clang++         0x0000000000cc711b
25 clang++         0x00000000009005ce clang::ParseAST(clang::Sema&, bool, bool)
+ 382
26 clang++         0x0000000000648031 clang::FrontendAction::Execute() + 145
27 clang++         0x0000000000629494
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 340
28 clang++         0x000000000060f8c6
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1478
29 clang++         0x00000000006051c8 cc1_main(char const**, char const**, char
const*, void*) + 920
30 clang++         0x000000000060de3f main + 719
31 libc.so.6       0x0000003251a1d994 __libc_start_main + 244
32 clang++         0x0000000000602bd9
Stack dump:
0.    Program arguments:
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/llvm/3.2-cms2/bin/clang++ -cc1
-triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name
GsfTrackProducerBase.cc -analyzer-store=region
-analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume
-analyzer-ipa=inlining -analyzer-checker=core -analyzer-checker=unix
-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-output plist -w
-mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.21.1 -momit-leaf-frame-pointer -resource-dir
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/llvm/3.2-cms2/bin/../lib/clang/3.2
-D GNU_GCC -D _GNU_SOURCE -D PROJECT_NAME="CMSSW" -D
PROJECT_VERSION="CMSSW_6_0_0_pre11" -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2 -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2/x86_64-unknown-linux-gnu
-I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2/backward
-I /storage/local/data1/cms_admin/CMSSW_6_0_0_pre11/src -I
/storage/local/data1/cms_admin/CMSSW_6_0_0_pre11/include/LCG -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/cms/cmssw/CMSSW_6_0_0_pre11/src -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/cms/cmssw/CMSSW_6_0_0_pre11/include/LCG
-I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/cms/coral/CORAL_2_3_21-cms15/include/LCG
-I /uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/boost/1.50.0-cms/include -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/python/2.7.3-cms/include/python2.7
-I /uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/uuid/1.38/include -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/lcg/root/5.34.01-cms2/cint -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/clhep/2.1.1.0/include -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gsl/1.10/include -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/pcre/7.9-cms/include -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/sigcpp/2.2.10/include/sigc++-2.0
-I /uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/xerces-c/2.8.0-cms/include
-I /uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/zlib/1.2.3/include -I
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/lcg/root/5.34.01-cms2/include
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/x86_64-redhat-linux6E
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/backward
-internal-isystem /usr/local/include -internal-isystem
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/llvm/3.2-cms2/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-Wno-vla -Wno-strict-overflow -Wno-long-long -Wno-deprecated -std=c++0x
-fdebug-compilation-dir /storage/local/data1/cms_admin/CMSSW_6_0_0_pre11
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -analyzer-checker
threadsafety -analyzer-checker cms -analyzer-disable-checker
threadsafety.MutableMember -analyzer-disable-checker threadsafety.StaticLocal
-load
/storage/local/data1/cms_admin/CMSSW_6_0_0_pre11/lib/slc5_amd64_gcc462/libUtilitiesStaticAnalyzers.so
-analyzer-output=html -o
/storage/local/data1/cms_admin/CMSSW_6_0_0_pre11/llvm-analysis/2012-09-04-1 -x
c++
/storage/local/data1/cms_admin/CMSSW_6_0_0_pre11/src/RecoTracker/TrackProducer/src/GsfTrackProducerBase.cc 
1.    <eof> parser at end of file
2.   
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2/bits/move.h:128:13
<Spelling=/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2/bits/move.h:102:30>:
Error evaluating statement
3.   
/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2/bits/move.h:128:13
<Spelling=/uscmst1/prod/sw/cms/slc5_amd64_gcc462/external/gcc/4.6.2/include/c++/4.6.2/bits/move.h:102:30>:
Error evaluating statement

-- 
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