Closed
Bug 1069700
Opened 11 years ago
Closed 11 years ago
Linux sandbox failures double-crash in non-XPCOM processes
Categories
(Core :: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: jld, Assigned: jld)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
1.50 KB,
patch
|
kang
:
review+
|
Details | Diff | Splinter Review |
The code in security/sandbox/linux/glue/SandboxCrash.cpp that tries to log the current JavaScript stack (if on the main thread, and there is one) doesn't correctly handle the case where the process doesn't have an nsIXPConnect instance: it crashes, either with an assertion failure (debug) or a segfault (non-debug). Specifically, this is the case for Gecko Media Plugin processes.
This happens *after* the crash reporter has already been invoked and prepared itself to reraise the original crash, so it's not a major problem, but it does result in confusing log messages (on stderr for the assertion failure, and/or in the kernel log for a segfault), and the fix is simple.
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8491952 -
Flags: review?(gdestuynder)
| Assignee | ||
Comment 2•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=4260a7c217cf
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=4260a7c217cf
And tested locally on B2G with a deliberate content sandbox crash to make sure the JS stack logging still works in that case.
Comment on attachment 8491952 [details] [diff] [review]
bug1069700-gmp-no-jsstack-hg0.diff
Review of attachment 8491952 [details] [diff] [review]:
-----------------------------------------------------------------
looks safe
Attachment #8491952 -
Flags: review?(gdestuynder) → review+
Comment 5•11 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•