From 966b0e4669d13f9649deb4721da2a00edeb51980 Mon Sep 17 00:00:00 2001 From: Christian Holler Date: Mon, 21 Oct 2013 20:11:07 +0200 Subject: [PATCH] Bug 929024 - Fix ASan symbolizing for mochitests. r=ted --HG-- extra : rebase_source : f6b4ee3a5d84ba1987f2a35abe9b28c1d45efb2e --- build/automationutils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/automationutils.py b/build/automationutils.py index 1dfd7a470fd..abd3da8a0db 100644 --- a/build/automationutils.py +++ b/build/automationutils.py @@ -449,6 +449,12 @@ def environment(xrePath, env=None, crashreporter=True): asan = bool(mozinfo.info.get("asan")) if asan and (mozinfo.isLinux or mozinfo.isMac): try: + # Symbolizer support + llvmsym = os.path.join(xrePath, "llvm-symbolizer") + if os.path.isfile(llvmsym): + env["ASAN_SYMBOLIZER_PATH"] = llvmsym + log.info("ASan using symbolizer at %s", llvmsym) + totalMemory = systemMemory() # Only 2 GB RAM or less available? Use custom ASan options to reduce