Closed
Bug 1199662
Opened 10 years ago
Closed 10 years ago
Crash ping environments are broken
Categories
(Toolkit :: Crash Reporting, defect)
Toolkit
Crash Reporting
Tracking
()
RESOLVED
FIXED
mozilla43
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
(Whiteboard: [unifiedTelemetry])
Attachments
(1 file)
40 bytes,
text/x-review-board-request
|
ted
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details |
STR:
Crash Firefox: you can do this by typing this into the browser console:
Cu.import("resource://gre/modules/ctypes.jsm");
ctypes.cast(new ctypes.intptr_t(5), ctypes.int32_t.ptr).contents;
Re-open Firefox and wait a minute.
Using the future version of about:healthreport (not landed yet) or API access, check the contents of the crash ping.
EXPECTED:
payload.hasCrashEnvironment should be true, and the environment block of the ping should list the previous environment.
ACTUAL:
payload.hasCrashEnvironment is false.
Exception in the browser console:
10:18:11.597 JSON.parse: expected ',' or '}' after property value in object at line 1 column 785 of the JSON data1 CrashManager.jsm:541:0
Assignee | ||
Comment 1•10 years ago
|
||
In the data submitted to crash-stats, TelemetryEnvironment is a correct annotation and appears to be valid JSON.
Assignee | ||
Comment 2•10 years ago
|
||
Turns out it's confusion about escaping in the event file. Crash reporter stores and write its key-value pairs by escaping \ and \n, but when we read it we don't unescape. Going to fix this using KeyValueParser.jsm.
Assignee | ||
Comment 3•10 years ago
|
||
Bug 1199662 - Crash ping environment block is broken when any string field contains a quotation mark. Unescape INI fields properly using the library that already exists for the purpose. r?ted
Attachment #8654980 -
Flags: review?(ted)
Comment 4•10 years ago
|
||
Comment on attachment 8654980 [details]
MozReview Request: Bug 1199662 - Crash ping environment block is broken when any string field contains a quotation mark. Unescape INI fields properly using the library that already exists for the purpose. r?ted
https://reviewboard.mozilla.org/r/17783/#review15975
Wish we weren't using such a half-baked format, but at least we have a library to parse it!
Attachment #8654980 -
Flags: review?(ted) → review+
Comment 6•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Comment 7•10 years ago
|
||
Comment on attachment 8654980 [details]
MozReview Request: Bug 1199662 - Crash ping environment block is broken when any string field contains a quotation mark. Unescape INI fields properly using the library that already exists for the purpose. r?ted
Approval Request Comment
[Feature/regressing bug #]:
Unified Telemetry
[User impact if declined]:
Part of the data in crash pings is broken and thus missing for analysis.
[Describe test coverage new/current, TreeHerder]:
Automated tests, manual confirmation.
[Risks and why]:
Low-risk, small and limited change.
[String/UUID change made/needed]:
None.
Attachment #8654980 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Comment 8•10 years ago
|
||
Comment on attachment 8654980 [details]
MozReview Request: Bug 1199662 - Crash ping environment block is broken when any string field contains a quotation mark. Unescape INI fields properly using the library that already exists for the purpose. r?ted
OK, let's do it.
Attachment #8654980 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Flags: qe-verify+ → qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•