Stack traces are missing from almost all Glean crash pings from the windows crash reporter client
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
People
(Reporter: afranchuk, Assigned: afranchuk)
Details
Attachments
(7 files)
258.55 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
As shown in the plot, the orange line (Windows Glean crash pings with stack traces) is way, way lower than expected (though oddly also non-zero).
Assignee | ||
Comment 1•8 months ago
•
|
||
There's no logic specific to the Glean implementation that would result in this behavior, as any error to convert a value results in the entire ping being discarded (as opposed to only the field). However, if the stack traces were simply missing, I would expect legacy Telemetry to look the same. At the moment, my theory is that Glean itself may be internally discarding the field for some reason.
Assignee | ||
Comment 2•8 months ago
|
||
I have confirmed in the logs that we encounter:
[WARN glean_core::error_recording] crash.stack_traces: Value did not match predefined schema
Assignee | ||
Comment 3•8 months ago
|
||
This is due to windows having an extra unloaded_modules
field. I will change my approach to copy all data to avoid extra fields breaking the expected schema.
Assignee | ||
Comment 4•8 months ago
|
||
This ensures that we always match the metric schema.
Assignee | ||
Comment 5•8 months ago
|
||
Having multiple glean tests exposed some issues and races (since glean
is a global value, it must be tested serially). This changes mock data
to be an Arc
as we can't depend on glean deterministically accessing
the data we pass to it, unfortunately.
Assignee | ||
Comment 6•8 months ago
|
||
Comment 8•7 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7ef5ebb06679
https://hg.mozilla.org/mozilla-central/rev/5a587f1aa35d
https://hg.mozilla.org/mozilla-central/rev/00f2c12f3a27
Comment 9•7 months ago
|
||
The patch landed in nightly and beta is affected.
:afranchuk, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox130
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 10•7 months ago
|
||
This ensures that we always match the metric schema.
Original Revision: https://phabricator.services.mozilla.com/D218215
Updated•7 months ago
|
Assignee | ||
Comment 11•7 months ago
|
||
Having multiple glean tests exposed some issues and races (since glean
is a global value, it must be tested serially). This changes mock data
to be an Arc
as we can't depend on glean deterministically accessing
the data we pass to it, unfortunately.
Original Revision: https://phabricator.services.mozilla.com/D218216
Updated•7 months ago
|
Assignee | ||
Comment 12•7 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D218217
Updated•7 months ago
|
Comment 13•7 months ago
|
||
beta Uplift Approval Request
- User impact if declined: No stack traces in most windows crash reports, and potentially other platforms (more difficult for us to fix user bugs)
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: N/A
- Risk associated with taking this patch: Low
- Explanation of risk level: The changes fix a bug in stack trace glean metric recording. They do not affect any other code.
- String changes made/needed: None
- Is Android affected?: yes
Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 14•7 months ago
|
||
uplift |
Description
•