From 12ca2e37b753db1f39a16f3c6f8c7260abde9085 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 2 Feb 2021 09:17:17 +0100 Subject: [PATCH] selftest: Fix libasan preload libasan.so needs to be the first library which is preloaded or it wont work. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- selftest/selftest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selftest/selftest.pl b/selftest/selftest.pl index 4c27edd2969..cfc5e438480 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -344,7 +344,7 @@ my $ld_preload = $ENV{LD_PRELOAD}; if ($opt_libasan_so_path) { if ($ld_preload) { - $ld_preload = "$ld_preload:$opt_libasan_so_path"; + $ld_preload = "$opt_libasan_so_path:$ld_preload"; } else { $ld_preload = "$opt_libasan_so_path"; } -- 2.47.3