[LLVMbugs] [Bug 16932] New: crash with void on variadic args (analyser misses this)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 19 03:07:11 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16932
Bug ID: 16932
Summary: crash with void on variadic args (analyser misses
this)
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: b.van.den.berg.nl at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11065
--> http://llvm.org/bugs/attachment.cgi?id=11065&action=edit
source code to show problem
Short: clang's analyser misses that a void is passed to the '...' argument.
0 clang 0x097a54a9
Stack dump:
0. Program arguments: /home/altenpts/llvm-3.2/bin/clang -cc1 -triple
i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-main-file-name main.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir
/home/altenpts/llvm-3.2/bin/../lib/clang/3.2 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/i686-linux-gnu
-internal-isystem
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem /usr/local/include -internal-isystem
/home/altenpts/llvm-3.2/bin/../lib/clang/3.2/include -internal-externc-isystem
/usr/include/i386-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdeprecated-macro
-fdebug-compilation-dir /home/altenpts/yy -ferror-limit 19 -fmessage-length 128
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/main-SXWJL5.o -x c++
main.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'main.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (tags/RELEASE_32/final)
Target: i386-pc-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:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/main-l6RSRs.cpp
clang: note: diagnostic msg: /tmp/main-l6RSRs.sh
clang: note: diagnostic msg:
--
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/20130819/2961f86f/attachment.html>
More information about the llvm-bugs
mailing list