Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 54 by
rol...@rschulz.eu: False positives with qsort,
std::stringstream, and AVX
http://code.google.com/p/memory-sanitizer/issues/detail?id=54
What steps will reproduce the problem?
1. Compile libcxx & libcxxabi with msan
2. Compile test program with
clang++ -fsanitize=memory -O2 -fno-omit-frame-pointer -stdlib=libc++
-I$LIBCXX/include -L$LIBCXX/lib -Wl,-R$LIBCXX/lib -lc++abi
With a test like:
#include <sstream>
int main() {
std::stringstream ss;
ss<<1;
return 0;
}
Let me know if you need a small test cases for qsort or AVX.
I get
==13450== WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x7f86eb78ae7b in std::__1::basic_ostream<char,
std::__1::char_traits<char> >::operator<<(int)
(/home/rschulz/download/gromacs5.0/clang35.msan.sse/a.out+0x9be7b)
#1 0x7f86eb78a5c1 in main
(/home/rschulz/download/gromacs5.0/clang35.msan.sse/a.out+0x9b5c1)
What version of the product are you using? On what operating system?
This is both with 3.4.1 and trunk (
http://llvm.org/git/clang.git
d23fd9aa52efc751322fbf7a3fc125ce58d44e4c) (
http://llvm.org/git/llvm.git
fd76d8a72dac035a4e1963bc6fe635a3b688cfcd). libcxx/libcxxabi are also trunk
(208925). This is without dynamic instrumentation on Linux.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings