Bug 1405713 - Reorder sourcepath normalization to fix srcsrv. r=ted, a=ritu
authorDavid Major <dmajor@mozilla.com>
Tue, 10 Oct 2017 09:19:00 -0400
changeset 434846 f66f3fd671001bfdc83d630d2f79aeebb7cf8a74
parent 434845 8a55ee69a86be122a157d7b85f6af408c6350f63
child 434847 94cb468585934ecc5bd6b0f617d483a14359e69b
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted, ritu
bugs1405713
milestone57.0
Bug 1405713 - Reorder sourcepath normalization to fix srcsrv. r=ted, a=ritu
toolkit/crashreporter/tools/symbolstore.py
--- a/toolkit/crashreporter/tools/symbolstore.py
+++ b/toolkit/crashreporter/tools/symbolstore.py
@@ -550,19 +550,19 @@ class Dumper:
                     pass
                 f = open(full_path, "w")
                 f.write(module_line)
                 # now process the rest of the output
                 for line in proc.stdout:
                     if line.startswith("FILE"):
                         # FILE index filename
                         (x, index, filename) = line.rstrip().split(None, 2)
-                        filename = normpath(filename)
                         # We want original file paths for the source server.
                         sourcepath = filename
+                        filename = normpath(filename)
                         if filename in self.file_mapping:
                             filename = self.file_mapping[filename]
                         if self.vcsinfo:
                             gen_path = self.generated_files.get(filename)
                             if gen_path and self.s3_bucket:
                                 filename = get_generated_file_s3_path(filename, gen_path, self.s3_bucket)
                                 rootname = ''
                             else: