[cfe-dev] External Symbolizer with ubsan

Alexey Samsonov samsonov at google.com
Tue Feb 26 01:28:29 PST 2013


On Tue, Feb 26, 2013 at 12:27 PM, zapadinsky <zapadinsky at gmail.com> wrote:

> I've tried hard to rule it out by myself... but yielded.
> -fsanitize=enum require an external symbolizer.

External symbolizer in UBSan tool is not a requirement, but not fully
feature. For now, I can add setting external symbolizer for ubsan via env
var if
Richard tells that's fine.

> This requirement was added
> in svn revision 170407. But how to set up an External Symbolizer if I am
> not
> using asan? I've tried env ASAN_FILTER with no success.
> Now I am getting this error massage:
> ==19442== WARNING: Trying to symbolize code, but external symbolizer is not
> initialized!
> /.../a.out:0x804bc04: runtime error: load of value 5, which is not a valid
> value for type 'TEnum'

For now, you may disregard the warning and take a look at "runtime error"
line - it tells
you the location of guilty load instruction in your code (module + offset).
If your binary is built with "-g" you may try running
addr2line -Cfe a.out 0x804bc04

> And there is no information about this in manual

> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/External-Symbolizer-with-ubsan-tp4030648.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130226/c0bc89e6/attachment.html>

More information about the cfe-dev mailing list