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

            Bug ID: 47272
           Summary: Change b13d9878b8dc causes crash in VLASizeChecker
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 23874
  --> https://bugs.llvm.org/attachment.cgi?id=23874&action=edit
Simplified reproducer

Change b13d9878b8dc was identified through bisection as the cause of this
VLASizeChecker assertion failure:

 clang-tidy:
/repo/eahcmrh/upstream-llvm-project/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp:302:
void 
 {anonymous}::VLASizeChecker::checkPreStmt(const clang::DeclStmt*,
clang::ento::CheckerContext&) const: Assertion `State' failed.
 PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
 Stack dump:
 0.     Program arguments: clang-tidy -checks=-*,clang-analyzer-* reduced.c 
 1.     <eof> parser at end of file
 2.     While analyzing stack: 
        #0 Calling c
 3.     /repo/eahcmrh/upstream-llvm-project/reduced.c:6:5: Error evaluating
statement
 4.     /repo/eahcmrh/upstream-llvm-project/reduced.c:6:5: Error evaluating
statement
 ./run.sh: line 5: 57723 Aborted                 clang-tidy
-checks=-*,clang-analyzer-* reduced.c

Simple reproducer is attached.  Crash can be reproduced by running 'clang-tidy
-checks=-*,clang-analyzer-* reduced.c'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to