[cfe-users] UBSAN_MODE_UNKNOWN

Ben Pope benpope81 at gmail.com
Mon May 4 09:20:20 PDT 2015


 On Tue, 5 May, 2015 00:08 Alexey Samsonov <vonosmas at gmail.com> wrote:

Hi Ben,

On Sun, May 3, 2015 at 9:52 PM, Ben Pope <benpope81 at gmail.com> wrote:

When I run with UBSAN over the Boost libraries, I get a lot of output of
the form:
==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)

I'm not sure what's going wrong, I was expecting something more descriptive!

 Right, I should probably add more descriptive error message...

Can you provide the details of how you compile

your source files and link them into libraries and executable? It looks
like your executable is linked with both UBSan

runtime and ASan runtime. It can happen if the link flags used were
inconsistent, or you mix libraries/executables

built with different versions of Clang.



 Probably not impossible, but I don't think I'm linking with both.

Here is an example:
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

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20150504/3e3b7ed8/attachment.html>


More information about the cfe-users mailing list