Auto merge of #11530 - jdm:sigsegv, r=metajack

Obtain backtraces automatically from segfaults

<!-- Please describe your changes on the following line: -->
This enables more meaningful output from observing hard crashes outside of GDB through the judicious use of a SIGSEGV signal handler.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #9371 (github issue number if applicable).
- [X] There are tests for these changes OR

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11530)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-20 20:08:50 -05:00 committed by GitHub
commit 2c4c2d8779
10 changed files with 83 additions and 1 deletions

View file

@ -6952,6 +6952,12 @@
"url": "/_mozilla/mozilla/service-workers/service-worker-registration.html"
}
],
"mozilla/sigsegv.html": [
{
"path": "mozilla/sigsegv.html",
"url": "/_mozilla/mozilla/sigsegv.html"
}
],
"mozilla/storage.html": [
{
"path": "mozilla/storage.html",

View file

@ -0,0 +1,4 @@
[sigsegv.html]
type: testharness
prefs: [dom.testbinding.enabled:true,dom.testable_crash.enabled:true]
expected: CRASH

View file

@ -0,0 +1,8 @@
<!doctype html>
<meta charset="utf-8">
<title></title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
(new TestBinding()).crashHard();
</script>