[LLVMbugs] [Bug 16664] New: static analyzer illegal instruction crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 19 12:41:34 PDT 2013


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

            Bug ID: 16664
           Summary: static analyzer illegal instruction crash
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: bugzilla at jwwalker.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10904
  --> http://llvm.org/bugs/attachment.cgi?id=10904&action=edit
backtrace

Overview:

The static analyzer gives me an illegal instruction crash when processing some
fairly simple C++ code.


Steps to reproduce:

Analyze this code:

-------------------------
#include <string>

bool IsFloating();
bool IsHidden( const std::string& inName );

static void    Foo( const char* inName,
                long inFlags )
{
    bool    isIgnored =
        IsFloating() ||
        IsFloating() ||
        (
            IsFloating()
            && ((inFlags & 4) != 0)
        )
        || IsHidden( inName )
        ;
}
-------------------------


Actual results:

Illegal instruction crash.  Backtrace attached.


Build date:

clang version 3.4 (trunk 186710)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

-- 
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/20130719/fc202fe7/attachment.html>


More information about the llvm-bugs mailing list