Closed Bug 2088427 Opened 27 days ago Closed 7 days ago

Move reading the memory tester preferences outside of the exception handler

Categories

(Toolkit :: Crash Reporting, defect)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

We currently setup the environment variables used by the crash reporter client memory testing machinery right before launching it. However this isn't really the right place to do it, as we're within the exception handler, so allocating memory and reading prefs is a bad idea. I guess it was put here because we can't do this on startup - as we can't read the prefs - and we didn't have the pref-reading machinery in the crash reporter client yet.

Now the easiest thing to do is to move this logic directly to the crash reporter client and never set those environment variables in the parent.

Assignee: nobody → gsvelto
Status: NEW → ASSIGNED

I wonder if this should really account as defect?

Flags: needinfo?(gsvelto)

Yes, we're doing stuff we shouldn't do in the exception handler and this might be the cause of us missing some crashes.

Flags: needinfo?(gsvelto)

OK, then please set a severity :-)

Severity: -- → S3
Pushed by gsvelto@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/936190ea0830 https://hg.mozilla.org/integration/autoland/rev/37b2b8726694 Move dealing with the memory tester prefs to the crash reporter client r=afranchuk,crashreporting-reviewers
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8486c7b8d186 https://hg.mozilla.org/integration/autoland/rev/07422d2cd63a Revert "Bug 2088427 - Move dealing with the memory tester prefs to the crash reporter client r=afranchuk,crashreporting-reviewers" for causing BR tests failures

Backed out for causing BR tests failures
Backout Link
Push with failures
Failure Log

Flags: needinfo?(gsvelto)

I'm missing the envs() method on our mock of the Command struct, let me fix that.

Flags: needinfo?(gsvelto)
Attachment #9673066 - Attachment description: Bug 2088427 - Move dealing with the memory tester prefs to the crash reporter client r=afranchuk → Bug 2088427 - Move dealing with the memory tester prefs to the crash reporter client r=afranchuk,crashreporting-reviewers
Pushed by gsvelto@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/00d2348a2f4d https://hg.mozilla.org/integration/autoland/rev/53c11c96a285 Move dealing with the memory tester prefs to the crash reporter client r=afranchuk,crashreporting-reviewers
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
See Also: → 2096887
Blocks: 2096887
See Also: 2096887 →
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: