bug 1217051 - Pipe dump_syms stderr to /dev/null. r=catlee
authorTed Mielczarek <ted@mielczarek.org>
Wed, 21 Oct 2015 12:54:16 -0400
changeset 303957 0eee1ce8d43ca2866fb716d17897c1f04f5d3968
parent 303956 aa291bcfb0e8738348a52c7b882d4ede346291c1
child 303958 26c5929a5a7e97e45126d7596b3fc3b3f9f9e549
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscatlee
bugs1217051
milestone44.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 1217051 - Pipe dump_syms stderr to /dev/null. r=catlee
toolkit/crashreporter/tools/symbolstore.py
--- a/toolkit/crashreporter/tools/symbolstore.py
+++ b/toolkit/crashreporter/tools/symbolstore.py
@@ -613,17 +613,18 @@ class Dumper:
 
         sourceFileStream = ''
         code_id, code_file = None, None
         for file in files:
             # files is a tuple of files, containing fallbacks in case the first file doesn't process successfully
             try:
                 cmd = [self.dump_syms] + arch.split() + [file]
                 self.output_pid(sys.stderr, ' '.join(cmd))
-                proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+                proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
+                                        stderr=open(os.devnull, 'wb'))
                 module_line = proc.stdout.next()
                 if module_line.startswith("MODULE"):
                     # MODULE os cpu guid debug_file
                     (guid, debug_file) = (module_line.split())[3:5]
                     # strip off .pdb extensions, and append .sym
                     sym_file = re.sub("\.pdb$", "", debug_file) + ".sym"
                     # we do want forward slashes here
                     rel_path = os.path.join(debug_file,