Crash stacks not linking to searchfox
Categories
(Socorro :: Webapp, task, P3)
Tracking
(Not tracked)
People
(Reporter: sfink, Unassigned)
References
Details
(Whiteboard: [cringe])
Crash stacks now seem to have links to github. I believe they went to mercurial before? I would still prefer searchfox. (Related: bug 1651813 is an older bug asking to switch from hg.m.o -> searchfox.)
For example: instead of or in addition to
https://github.com/mozilla-firefox/firefox/blob/ed6cfb3b73cb602ed2b8a75b1721c95b8e820322/dom/base/StructuredCloneBlob.cpp#L253
I would like
https://searchfox.org/firefox-main/rev/ed6cfb3b73cb602ed2b8a75b1721c95b8e820322/dom/base/StructuredCloneBlob.cpp#253
I used github's search to try to find it, and it'd be something like the github one: https://github.com/%(repo)s/blob/%(revision)s/%(file)s#L%(line)s except it'd be https://searchfox.org/%(notrepo)s/rev/%(revision)s/%(file)s#%(line)s except I don't know what notrepo should be and I don't want to dig up the user right now. (Nor do I know if it'd be ok to use searchfox as a "VCS".) Maybe if mozilla-services were indexed by searchfox... ;-)
Comment 1•19 days ago
|
||
Thank you for filing this. We obtain this information from the symbols files, so this is not something we control directly. gsvelto: is this a change that was made upstream recently?
Comment 2•18 days ago
|
||
We last changed the paths in bug 1987761. Personally I'd be in favor of them going to searchfox.org as that's what I use whenever I look at crash stats, but I don't know if there would be downsides to this outside of searchfox uptime (which is currently higher than GitHub, mostly because of GH's consistent degradation in the last couple of years). Markus, what do you think?
Comment 3•18 days ago
|
||
Maybe someone interested in this can spin up a Firefox extension that translates the links on the client side? We won't have the bandwidth to do this, but it would give people a choice, and if Searchfox is down they can simply disable the extension.
Comment 4•18 days ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #2)
Markus, what do you think?
I also think linking to searchfox is preferable over linking to github. The URL translation should be straightforward. Comment #0 has it for the mozilla-firefox/firefox repo; I'm not sure if that would immediately work for release branches as well but it's probably not hard to find out.
Comment 5•18 days ago
|
||
Comment 6•5 days ago
|
||
Thanks for the PR! I'll move this ticket back into the Socorro product, since this is where we ended up fixing this.
Updated•5 days ago
|
Comment 7•5 days ago
|
||
I merged the PR (which took a few attempts due to GitHub issues).
Comment 8•5 days ago
|
||
I tested this in stage with a few crashes. I compared where the links took me for the same crash in prod, and it's all looking good. Some links go to surprising lines, e.g. the link for arena_dalloc(void*, unsigned long, arena_t*) in frame 25 of https://crash-stats.mozilla.org/report/index/cdc13f88-7e67-4eb7-aad8-b7ee00260825 is https://searchfox.org/firefox-main/rev/017a9913bd6c272a859aea16d3cab5a4d46bf1b0/memory/build/mozjemalloc.cpp#2737, which is not what I'd expect, but it's the same line using the old GitHub link, so the behaviour isn't caused by this patch. I'll go ahead and deploy it to prod.
Comment 9•5 days ago
|
||
This was deployed to production with https://github.com/mozilla-services/socorro/releases/tag/v2026.08.26, and appears to be working fine there as well.
Description
•