Closed
Bug 846864
Opened 12 years ago
Closed 12 years ago
Source Server broken
Categories
(Firefox Build System :: General, defect, P2)
Tracking
(firefox21 wontfix, firefox22 fixed, firefox23 fixed)
RESOLVED
FIXED
mozilla23
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(1 file)
5.50 KB,
patch
|
khuey
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta-
|
Details | Diff | Splinter Review |
The source server support in our Windows builds appears to be broken. I poked at the data in the pdb files, and the relevant bit (comparing Firefox 3.6 with a Nightly build) is:
-HGSERVER=http://hg.mozilla.org/releases/mozilla-1.9.2^M^M
+HGSERVER=e:\builds\moz2_slave\m-cen-w32-ntly-000000000000000\build^M^M
It looks like SRCSRV_ROOT isn't being set in the environment properly:
http://mxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/tools/symbolstore.py#549
Assignee | ||
Updated•12 years ago
|
Severity: normal → critical
Updated•12 years ago
|
Assignee: nobody → catlee
Priority: -- → P2
Assignee | ||
Comment 1•12 years ago
|
||
Clarification: it seems like we may never have set SRCSRV_ROOT in the Mercurial world (that probably dates back to CVS), but we relied on `hg showconfig paths.default` pointing at the HTTP repo path.
Comment 2•12 years ago
|
||
`hg showconfig paths.default` does point to http://hg.m.o on the machines I've checked.
Note that you need to run it against the root of the checkout. If you run e.g. `hg -R /path/to/checkout/browser showconfig paths.default`, you get an empty result.
Assignee | ||
Comment 3•12 years ago
|
||
That should be ok, we're always passing in $(topsrcdir) here:
http://mxr.mozilla.org/mozilla-central/source/Makefile.in#141
I checked a few PDB files, it looks like this broke between Firefox 18 and 19. 18.0.2's PDB file looks fine:
$ /c/Program\ Files/Debugging\ Tools\ for\ Windows\ \(x64\)/srcsrv/pdbstr.exe
-r -p:firefox.18.0.2.pdb -s:srcsrv | grep HGSERVER
HGSERVER=http://hg.mozilla.org/releases/mozilla-release
but 19's is broken:
$ /c/Program\ Files/Debugging\ Tools\ for\ Windows\ \(x64\)/srcsrv/pdbstr.exe
-r -p:firefox.19.0.pdb -s:srcsrv | grep HGSERVER
HGSERVER=e:\builds\moz2_slave\rel-m-rel-w32_bld-000000000000\build
(and 19.0.1 as well).
Updated•12 years ago
|
Component: Release Engineering → Build Config
Product: mozilla.org → Core
Version: other → 19 Branch
Updated•12 years ago
|
Assignee: catlee → nobody
So what's the plan forward here?
Flags: needinfo?(ted)
Assignee | ||
Comment 5•12 years ago
|
||
It seems plausible that bug 774780 broke this. I'm not sure if backing that out is straightforward given other changes to symbolstore.py, but we can try that.
Flags: needinfo?(ted)
I will send a bottle of the (not absurdly priced) drink of your choice to the person who fixes this bug.
Assignee | ||
Comment 7•12 years ago
|
||
Here's a crappy workaround. The caveat is that you have to run this on every symbol file you care about:
$ /c/Program\ Files/Debugging\ Tools\ for\ Windows\ \(x64\)/srcsrv/pdbstr.exe -r -p:firefox.pdb -s:srcsrv | sed -e 's/^HGSERVER=.*/HGSERVER=http:\/\/hg.mozilla.org\/releases\/mozilla-release/' > srcsrv
$ /c/Program\ Files/Debugging\ Tools\ for\ Windows\ \(x64\)/srcsrv/pdbstr.exe -w -p:firefox.pdb -s:srcsrv -i:srcsrv
(this also assumes that you're debugging release builds, you can swap whatever URL you need in there for HGSERVER.)
Assignee | ||
Comment 8•12 years ago
|
||
Not that I really expect you to know this code, but you care the most about this bug. :) I spent most of my time writing the test so I could sanity check my assumption.
Attachment #741472 -
Flags: review?(khuey)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ted
Assignee | ||
Comment 9•12 years ago
|
||
Pushed this to try just because I was testing out bug 863715 anyway:
https://tbpl.mozilla.org/?tree=Try&rev=d3213be8d48b
Attachment #741472 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 10•12 years ago
|
||
Assignee | ||
Comment 11•12 years ago
|
||
I sanity checked the symbols from my try server push and they look good.
Assignee | ||
Comment 12•12 years ago
|
||
I actually went all the way and loaded them in a debugger and was able to debug with source.
Assignee | ||
Comment 13•12 years ago
|
||
Comment on attachment 741472 [details] [diff] [review]
Fix source server support
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Regression from bug 774780.
User impact if declined: Makes debugging Windows crashes from crash-stats much more of a pain.
Testing completed (on m-c, etc.): Landed on mozilla-inbound, tested on a tryserver build.
Risk to taking this patch (and alternatives if risky): Very minimal. Change is only to the script that produces debug symbols. Patch includes tests.
String or IDL/UUID changes made by this patch: N/A
Attachment #741472 -
Flags: approval-mozilla-beta?
Attachment #741472 -
Flags: approval-mozilla-aurora?
Comment 14•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite+
Comment 15•12 years ago
|
||
Comment on attachment 741472 [details] [diff] [review]
Fix source server support
This patch looks good to land on aurora.
But given we will be going to build with our second last beta tomorrow & the fallouts from this *may* impact breakpad symbols somewhat in a wrong manner & since we heavily rely on symbols for crash-data, lets not take the risk on beta.
Also this is a FX19 regression.Would have been ok for early beta but seems late now to deal with the fallouts in our final beta's.
Please renominate if there is disagreement here.
Attachment #741472 -
Flags: approval-mozilla-beta?
Attachment #741472 -
Flags: approval-mozilla-beta-
Attachment #741472 -
Flags: approval-mozilla-aurora?
Attachment #741472 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 16•12 years ago
|
||
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•