[cfe-dev] External Symbolizer with ubsan

Richard Smith richard at metafoo.co.uk
Tue Feb 26 11:29:05 PST 2013


On Tue, Feb 26, 2013 at 5:45 AM, 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
> > implemented feature. For now, I can add setting external symbolizer for
> > ubsan via env
> > var if Richard tells that's fine.
>

Thank you, that would be great.


> -fsanitize=integer somehow print the line number and character of an
> operator raised an overflow error. Why enum sanitizer needs symbolizer?
> There was an idea to print the stack trace?


Two things: firstly, ubsan can't currently determine the source location
for all checks at build time; for a few, we work out the location based on
return address at runtime. That's just due to incomplete implementation.
Secondly, as you suspect, we want to include a stack trace eventually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130226/69f41e80/attachment.html>


More information about the cfe-dev mailing list