Any way to make ASAN/UBSAN continue after the first error?

570 views
Skip to first unread message

David Barto

unread,
Sep 12, 2016, 12:33:38 PM9/12/16
to address-sanitizer
I've got  a complex database application and we have enough problems with it that one of the team members would like to know if it is possible to continue after ASAN/UBSAN detects an error. Mostly for overnight testing so we can gather all the errors and the proceed to fix them in one swat.

     David

Yuri Gribov

unread,
Sep 12, 2016, 1:45:21 PM9/12/16
to address-...@googlegroups.com
UBSan should behave like this by default and for ASan you'll need
-fsanitize-recover=address (see the very first question in FAQ at
https://github.com/google/sanitizers/wiki/AddressSanitizer for
details).

Note that you'll need recent GCC and Clang as the feature is quite new.
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to address-saniti...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages