Bug 929024 - Fix ASan symbolizing for mochitests. r=ted
authorChristian Holler <choller@mozilla.com>
Mon, 21 Oct 2013 20:11:07 +0200
changeset 165409 55d36871fbd853fe35b3084ed740eeed881352d7
parent 165408 654ffd9d6b0904b2ddbe2b77e3003c36c2d0d4dc
child 165410 a92ac47a8ba759ff99379ddad1f45323b9707d2e
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs929024
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 929024 - Fix ASan symbolizing for mochitests. r=ted
build/automationutils.py
--- a/build/automationutils.py
+++ b/build/automationutils.py
@@ -444,16 +444,22 @@ def environment(xrePath, env=None, crash
   env['R_LOG_LEVEL'] = '5'
   env['R_LOG_DESTINATION'] = 'stderr'
   env['R_LOG_VERBOSE'] = '1'
 
   # ASan specific environment stuff
   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
       # the amount of resources required to do the tests. Standard options
       # will otherwise lead to OOM conditions on the current test slaves.
       #
       # If we have more than 2 GB or RAM but still less than 4 GB, we need
       # another set of options to prevent OOM in some memory-intensive