[llvm-bugs] [Bug 44338] New: Two Crashes in StaticAnalyzer of Clang

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 19 03:02:52 PST 2019


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

            Bug ID: 44338
           Summary: Two Crashes in StaticAnalyzer of Clang
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: dcoughlin at apple.com
          Reporter: liulm at ios.ac.cn
                CC: dcoughlin at apple.com, llvm-bugs at lists.llvm.org

First crash seems to be occasioned by a typo in file
`clang-8.0.0.src/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h:144`.
Condition `!isSat.hasValue() || isNotSat.getValue()` here should be
`!isNotSat.hasValue() || isNotSat.getValue()`.
`getValue` here crashed when we used the static analyzer to analyze
postgresql-12.0.

Second crash occured at line 161 in the same file.
It seems that `SC->getType()` may return some types except void, integer and
location occasionally.
This crash happended on the analysis for ffmpeg-4.2.git.

Both of them happended several hours later than correspondent analysis began
with `AlwaysInlineSize`, `MinCFGSizeTreatFunctionsAsLarge` and
`MaxInlinableSize` configured to 1000.

-- 
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/20191219/2e11d364/attachment.html>


More information about the llvm-bugs mailing list