HWASan uses SIGTRAP to report an error. Do not block it.
Change-Id: I5c89ae4930a3cb2edddbc3034d430356557cddba
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
%endif
+%{?hwasan_build:
+export CPPFLAGS="$CPPFLAGS -DHWASAN_BUILD"
+}
+
%reconfigure \
--disable-dependency-tracking \
--with-lua \
sigdelset(&newMask, SIGILL);
sigdelset(&newMask, SIGSEGV);
sigdelset(&newMask, SIGTSTP);
+#ifdef HWASAN_BUILD
+ sigdelset(&newMask, SIGTRAP);
+#endif
ret = pthread_sigmask(SIG_BLOCK, &newMask, &oldMask);
}
} else if (op == SIG_UNBLOCK) {