Hi Andrew,

On Sat, 8 Feb 2020 at 10:16, Andrew Pinski <pins...@gmail.com> wrote:
>
> Hi,
>   These two patches are what I use to fix testing of the santizers
> with qemu.  The first one disables coloring always as for some reason
> when running with qemu (but not normally), coloring is detected.  I
> have not gone and debugged the reason why the sanitizers does not
> detect coloring when run under dejagnu even though, it is designed to
> be running under a psedu-TTY.

I looked at that a long time ago (2013 according to the list archives...), see
https://gcc.gnu.org/ml/gcc-patches/2013-05/msg00280.html

When I enabled ASAN on arm, I did update some of the expected outputs,
because of this coloring. I think I had to fix a few *SAN tests added
since then for that reason.

>
> The second patch disables LSAN when clone with the arguments that are
> needed to stop the world fail.  This second patch should in theory go
> upstream but I am not going to that right now; plus maybe it should
> only disable it when used with asan instead of in general.

On my side, I run the tests with ASAN_OPTIONS=detect_leaks=0

>
> With these two patches, I get clean test results on aarch64-linux-gnu.
> I am mainly sending them here as I think they are useful for people
> who are doing testing; especially cross testing.

Indeed, thanks for sharing them.

Christophe

>
> Thanks,
> Andrew Pinski

Reply via email to