Closed
Bug 946799
Opened 11 years ago
Closed 11 years ago
Write breakpad reserved-memory annotations and fix blocklist annotation
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
Tracking | Status | |
---|---|---|
firefox27 | --- | fixed |
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files)
(deleted),
patch
|
ted
:
review+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
away
:
review+
|
Details | Diff | Splinter Review |
This is the client side bit of bug 946381, plus a fix to a blocklist annotation which has a typo.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8343175 -
Flags: review?(ted)
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8343176 -
Flags: review?(dmajor)
Comment 3•11 years ago
|
||
Comment on attachment 8343175 [details] [diff] [review]
bug946799-partA-reserve-annotation
Review of attachment 8343175 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/crashreporter/nsExceptionHandler.cpp
@@ +567,5 @@
> + int bufferLen;
> +
> + if (gBreakpadReservedVM) {
> + WriteFile(hFile, kBreakpadReserveAddressParameter, kBreakpadReserveAddressParameterLen, &nBytes, nullptr);
> + _ui64toa(uintptr_t(gBreakpadReservedVM), buffer, 10);
Is there a reason you're writing this out in base-10 instead of in hex like we do most other addresses?
Attachment #8343175 -
Flags: review?(ted) → review+
Assignee | ||
Comment 4•11 years ago
|
||
There is not a reason other than that's the way I already wrote the processor patch.
Comment on attachment 8343176 [details] [diff] [review]
bug946799-partB-blocklist
Review of attachment 8343176 [details] [diff] [review]:
-----------------------------------------------------------------
::: mozglue/build/WindowsDllBlocklist.cpp
@@ +149,5 @@
> static const char kBlockedDllsParameter[] = "BlockedDllList=";
> static const int kBlockedDllsParameterLen =
> sizeof(kBlockedDllsParameter) - 1;
>
> +static const char kBlocklistInitFailedParameter[] = "BlocklistInitFailed=1\n";
I kept these split in order to maintain the key/value pattern from nsExceptionHandler.cpp, but I guess collapsing them is reasonable.
@@ +158,2 @@
> static const int kUser32BeforeBlocklistParameterLen =
> + sizeof(kUser32BeforeBlocklistParameter) - 1;
Good catch, thanks!
Attachment #8343176 -
Flags: review?(dmajor) → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dccf3c3e7125
https://hg.mozilla.org/integration/mozilla-inbound/rev/14c40f80f7e2
Target Milestone: --- → mozilla28
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dccf3c3e7125
https://hg.mozilla.org/mozilla-central/rev/14c40f80f7e2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8343175 [details] [diff] [review]
bug946799-partA-reserve-annotation
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 943051 made memory reservation work but made the vmblock analysis less useful, this fixes it
User impact if declined: worse data on OOM crashes
Testing completed (on m-c, etc.): verified via crash-stats
Risk to taking this patch (and alternatives if risky): not risky
String or IDL/UUID changes made by this patch: none
Attachment #8343175 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
Attachment #8343175 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Assignee | ||
Comment 9•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/591ed7a98ced
https://hg.mozilla.org/releases/mozilla-beta/rev/79e2ad13871d
status-firefox27:
--- → fixed
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•