[LLVMbugs] [Bug 15863] New: Assertion `symIntExpr->getType() == resultTy' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 28 10:45:51 PDT 2013


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

            Bug ID: 15863
           Summary: Assertion `symIntExpr->getType() == resultTy' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: dimhen at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

[reduced from curl-7.21.3::curl_main.c]
$ cat x.i
_Bool a;
fn1 ()
{
    a = fn2 ();
    !a;
}

$ /home/dimhen/build/csa/Release+Asserts/bin/clang --version
clang version 3.3 (trunk 180688)
Target: x86_64-unknown-linux-gnu
Thread model: posix

$ /home/dimhen/build/csa/Release+Asserts/bin/clang --analyze x.i
clang:
/home/dimhen/src/llvm/tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:443:
virtual clang::ento::SVal
{anonymous}::SimpleSValBuilder::evalBinOpNN(clang::ento::ProgramStateRef,
clang::BinaryOperator::Opcode, clang::ento::NonLoc, clang::ento::NonLoc,
clang::QualType): Assertion `symIntExpr->getType() == resultTy' failed.
0  clang           0x0000000001deab62 _ZN4llvm3sys15PrintStackTraceEP8_IO_FILE
+ 34
1  clang           0x0000000001dea7b9
2  libpthread.so.0 0x0000003eb020f000
3  libc.so.6       0x0000003eafa35ba5 gsignal + 53
4  libc.so.6       0x0000003eafa37358 abort + 328
5  libc.so.6       0x0000003eafa2e972
6  libc.so.6       0x0000003eafa2ea22
7  clang           0x0000000000f21112
8  clang           0x0000000000ec45d5
_ZN5clang4ento10ExprEngine18VisitUnaryOperatorEPKNS_13UnaryOperatorEPNS0_12ExplodedNodeERNS0_15ExplodedNodeSetE
+ 2533
9  clang           0x0000000000eb4c05
_ZN5clang4ento10ExprEngine5VisitEPKNS_4StmtEPNS0_12ExplodedNodeERNS0_15ExplodedNodeSetE
+ 7269
10 clang           0x0000000000eb4f88
_ZN5clang4ento10ExprEngine11ProcessStmtENS_7CFGStmtEPNS0_12ExplodedNodeE + 712
11 clang           0x0000000000eb5263
_ZN5clang4ento10ExprEngine17processCFGElementENS_10CFGElementEPNS0_12ExplodedNodeEjPNS0_18NodeBuilderContextE
+ 227
12 clang           0x0000000000e9c180
_ZN5clang4ento10CoreEngine14HandlePostStmtEPKNS_8CFGBlockEjPNS0_12ExplodedNodeE
+ 128
13 clang           0x0000000000e9d04c
_ZN5clang4ento10CoreEngine16dispatchWorkItemEPNS0_12ExplodedNodeENS_12ProgramPointERKNS0_12WorkListUnitE
+ 92
14 clang           0x0000000000e9d40d
_ZN5clang4ento10CoreEngine15ExecuteWorkListEPKNS_15LocationContextEjN4llvm18IntrusiveRefCntPtrIKNS0_12ProgramStateEEE
+ 253
15 clang           0x0000000000d21210
16 clang           0x0000000000d21e7a
17 clang           0x0000000000d2de86
18 clang           0x000000000096058a _ZN5clang8ParseASTERNS_4SemaEbb + 538
19 clang           0x0000000000655519 _ZN5clang14FrontendAction7ExecuteEv + 265
20 clang           0x0000000000635905
_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE + 341
21 clang           0x000000000061cb72
_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE + 1794
22 clang           0x0000000000614538 _Z8cc1_mainPPKcS1_S0_Pv + 888
23 clang           0x000000000061bdf0 main + 4992
24 libc.so.6       0x0000003eafa21a05 __libc_start_main + 245
25 clang           0x00000000006134f9
Stack dump:
0.    Program arguments: /home/dimhen/build/csa/Release+Asserts/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name x.i
-analyzer-store=region -analyzer-opt-analyze-nested-blocks
-analyzer-eagerly-assume -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 -fuse-init-array -target-cpu x86-64
-target-linker-version 2.23.51.0.1 -resource-dir
/home/dimhen/build/csa/Release+Asserts/bin/../lib/clang/3.3
-fdebug-compilation-dir /home/dimhen/errs/clang/curl_main -ferror-limit 19
-fmessage-length 173 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o x.plist -x cpp-output
x.i 
1.    <eof> parser at end of file
2.    x.i:5:5: Error evaluating statement
3.    x.i:5:5: Error evaluating statement
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 180688)
Target: x86_64-unknown-linux-gnu
Thread model: posix
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: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
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/20130428/8b859908/attachment.html>


More information about the llvm-bugs mailing list