[LLVMbugs] [Bug 15308] New: Analyzer crash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 19 18:06:41 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15308
Bug ID: 15308
Summary: Analyzer crash
Product: clang
Version: 3.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: mwelinder at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
ms-chart.c:4644:3: warning: The left operand of '&' is a garbage value
GSF_LE_SET_GUINT8 (data+16, skip_invalid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgsf-1/gsf/gsf-utils.h:150:41: note: expanded from:
(*((guint8 *)(p)) = ((dat) & 0xff))
^
ms-chart.c:5284:3: warning: Value stored to 'num' is never read
num = 2; /* excel does not support more that 2. */
^ ~
0 libLLVM-3.0.so.1 0x00002b0f4628f66f
1 libLLVM-3.0.so.1 0x00002b0f4628fad9
2 libpthread.so.0 0x00002b0f46bcecb0
3 clang 0x0000000000ddcffc
clang::SourceManager::isBeforeInTranslationUnit(clang::SourceLocation,
clang::SourceLocation) const + 28
4 clang 0x0000000000dd7a51
clang::FullSourceLoc::isBeforeInTranslationUnitThan(clang::SourceLocation)
const + 17
5 clang 0x0000000000dc8781
clang::DiagnosticsEngine::setDiagnosticMapping(unsigned int,
clang::diag::Mapping, clang::SourceLocation) + 737
6 clang 0x0000000000dca167
clang::DiagnosticsEngine::setDiagnosticGroupMapping(llvm::StringRef,
clang::diag::Mapping, clang::SourceLocation) + 135
7 clang 0x0000000000db4c9a
8 clang 0x0000000000db51e8
clang::PragmaNamespace::HandlePragma(clang::Preprocessor&,
clang::PragmaIntroducerKind, clang::Token&) + 376
9 clang 0x0000000000db51e8
clang::PragmaNamespace::HandlePragma(clang::Preprocessor&,
clang::PragmaIntroducerKind, clang::Token&) + 376
10 clang 0x0000000000db54bb
clang::Preprocessor::HandlePragmaDirective(unsigned int) + 43
11 clang 0x0000000000db5ae9
clang::Preprocessor::Handle_Pragma(clang::Token&) + 1529
12 clang 0x0000000000db00ab
clang::Preprocessor::ExpandBuiltinMacro(clang::Token&) + 2235
13 clang 0x0000000000db0f68
clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&,
clang::MacroInfo*) + 120
14 clang 0x0000000000dc04ce
clang::Preprocessor::HandleIdentifier(clang::Token&) + 686
15 clang 0x0000000000db134f
clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&,
clang::MacroInfo*) + 1119
16 clang 0x0000000000dc04ce
clang::Preprocessor::HandleIdentifier(clang::Token&) + 686
17 clang 0x0000000000c82624
clang::html::HighlightMacros(clang::Rewriter&, clang::FileID,
clang::Preprocessor const&) + 1060
18 clang 0x0000000000b80d70
19 clang 0x0000000000b82804
20 clang 0x0000000000b28d63
clang::ento::AnalysisManager::~AnalysisManager() + 35
21 clang 0x0000000000a8b5c0
22 clang 0x00000000007bcc8f clang::ParseAST(clang::Sema&, bool) +
415
23 clang 0x00000000005adc7f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 319
24 clang 0x000000000059653a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1114
25 clang 0x000000000058e1c4 cc1_main(char const**, char const**,
char const*, void*) + 820
26 clang 0x000000000058cb3c main + 620
27 libc.so.6 0x00002b0f4731776d __libc_start_main + 237
28 clang 0x000000000058dd39
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-analyze -disable-free -disable-llvm-verifier -main-file-name ms-chart.c
-analyzer-store=region -analyzer-opt-analyze-nested-blocks
-analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode
-analyzer-checker=security -analyzer-checker=unix -analyzer-output plist -w
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.22
-momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.0 -D
HAVE_CONFIG_H -D GNOMELOCALEDIR="/usr/local/share/locale" -D PIC -I . -I ../..
-I ../../src -I ../../src -I /usr/local/include/libgoffice-0.10 -I
/usr/local/include/libgsf-1 -I /usr/include/glib-2.0 -I
/usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/libxml2 -I
/usr/include/gtk-3.0 -I /usr/include/cairo -I /usr/include/pango-1.0 -I
/usr/include/atk-1.0 -I /usr/include/at-spi2-atk/2.0 -I
/usr/include/gio-unix-2.0/ -I /usr/include/gdk-pixbuf-2.0 -I
/usr/include/freetype2 -I /usr/include/pixman-1 -I /usr/include/libpng12
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /usr/include -Wno-pointer-sign -ferror-limit 19
-fmessage-length 0 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -analyzer-output=html -o
/tmp/scan-build-2013-02-19-2 -x c ms-chart.c
1. <eof> parser at end of file
welinder at anemone ~/gnome/goffice $ clang --version
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
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/20130220/6add77b9/attachment.html>
More information about the llvm-bugs
mailing list