<p dir="ltr"><br>
</p>
<p dir="ltr"></p>
<p dir="ltr">On Tue, 5 May, 2015 00:08 Alexey Samsonov <<a href="mailto:vonosmas@gmail.com">vonosmas@gmail.com</a>> wrote:</p>
<blockquote><p dir="ltr">Hi Ben,<br></p>
<p dir="ltr">On Sun, May 3, 2015 at 9:52 PM, Ben Pope <<a href="mailto:benpope81@gmail.com">benpope81@gmail.com</a>> wrote:</p>
</blockquote>
<blockquote><blockquote><p dir="ltr">When I run with UBSAN over the Boost libraries, I get a lot of output of the form:<br>
==20717==Sanitizer CHECK failed: /home/ben/development/llvm/trunk/llvm/projects/compiler-rt/lib/ubsan/ubsan_init.cc:60 ((UBSAN_MODE_UNKNOWN)) != ((ubsan_mode)) (0, 0)</p>
<p dir="ltr">I'm not sure what's going wrong, I was expecting something more descriptive!<br>
</p>
</blockquote>
</blockquote>
<blockquote><p dir="ltr"></p>
<p dir="ltr">Right, I should probably add more descriptive error message...<br></p>
<p dir="ltr">Can you provide the details of how you compile</p>
<p dir="ltr">your source files and link them into libraries and executable? It looks like your executable is linked with both UBSan</p>
<p dir="ltr">runtime and ASan runtime. It can happen if the link flags used were inconsistent, or you mix libraries/executables</p>
<p dir="ltr">built with different versions of Clang.</p>
</blockquote>
<blockquote><blockquote><p dir="ltr"><br>
</p>
</blockquote>
</blockquote>
<blockquote><p dir="ltr"><br>
</p>
</blockquote>
<p dir="ltr">Probably not impossible, but I don't think I'm linking with both.</p>
<p dir="ltr">Here is an example:<br>
<a href="http://www.boost.org/development/tests/develop/developer/output/BenPope%20x86_64%20Ubuntu-boost-bin-v2-libs-algorithm-test-any_of_test-test-clang-linux-3-7~ubsan~c14_libc++-debug.html">http://www.boost.org/development/tests/develop/developer/output/BenPope%20x86_64%20Ubuntu-boost-bin-v2-libs-algorithm-test-any_of_test-test-clang-linux-3-7~ubsan~c14_libc++-debug.html</a></p>
<p dir="ltr">Ben<br>
</p>