[cfe-dev] Question about __asan_set_error_report_callback

Kostya Serebryany kcc at google.com
Wed Mar 26 04:27:29 PDT 2014


On Wed, Mar 26, 2014 at 2:15 PM, Oliver Schneider <oliver at f-prot.com> wrote:

> Hello,
>
> currently I am looking into how to suppress certain error output
> selectively. What I want to achieve here is not to simply hide them, but
> to attack each class of errors one by one.
>

Bad idea. asan reports serious bugs. If you suppress the first bug report
and go further
your process is already corrupted.


>
> So I stumbled over __asan_set_error_report_callback from the public ASAN
> interface. However, it appears that the callback gets notified but
> cannot really act on whether it gets shown or not.
>
Correct.

>
> Is there a way to achieve this with the public interface?
>
No.

>
> One class of errors I'd like to suppress for starters have to do with
> alignments when accessing typed arrays and coercing the type.
>

Can you give a detailed example?

--kcc


>
> // Oliver
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140326/69eef8f6/attachment.html>


More information about the cfe-dev mailing list