mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
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:
commit
2c4c2d8779
10 changed files with 83 additions and 1 deletions
|
@ -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",
|
||||
|
|
4
tests/wpt/mozilla/meta/mozilla/sigsegv.html.ini
Normal file
4
tests/wpt/mozilla/meta/mozilla/sigsegv.html.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
[sigsegv.html]
|
||||
type: testharness
|
||||
prefs: [dom.testbinding.enabled:true,dom.testable_crash.enabled:true]
|
||||
expected: CRASH
|
8
tests/wpt/mozilla/tests/mozilla/sigsegv.html
Normal file
8
tests/wpt/mozilla/tests/mozilla/sigsegv.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue