mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-22 20:03:50 +00:00
1042 lines
28 KiB
HTML
1042 lines
28 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<meta name="generator" content="AsciiDoc 8.6.9">
|
||
<title>crashpad_handler(8)</title>
|
||
<style type="text/css">
|
||
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
|
||
|
||
/* Default font. */
|
||
body {
|
||
font-family: Georgia,serif;
|
||
}
|
||
|
||
/* Title font. */
|
||
h1, h2, h3, h4, h5, h6,
|
||
div.title, caption.title,
|
||
thead, p.table.header,
|
||
#toctitle,
|
||
#author, #revnumber, #revdate, #revremark,
|
||
#footer {
|
||
font-family: Arial,Helvetica,sans-serif;
|
||
}
|
||
|
||
body {
|
||
margin: 1em 5% 1em 5%;
|
||
}
|
||
|
||
a {
|
||
color: blue;
|
||
text-decoration: underline;
|
||
}
|
||
a:visited {
|
||
color: fuchsia;
|
||
}
|
||
|
||
em {
|
||
font-style: italic;
|
||
color: navy;
|
||
}
|
||
|
||
strong {
|
||
font-weight: bold;
|
||
color: #083194;
|
||
}
|
||
|
||
h1, h2, h3, h4, h5, h6 {
|
||
color: #527bbd;
|
||
margin-top: 1.2em;
|
||
margin-bottom: 0.5em;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
h1, h2, h3 {
|
||
border-bottom: 2px solid silver;
|
||
}
|
||
h2 {
|
||
padding-top: 0.5em;
|
||
}
|
||
h3 {
|
||
float: left;
|
||
}
|
||
h3 + * {
|
||
clear: left;
|
||
}
|
||
h5 {
|
||
font-size: 1.0em;
|
||
}
|
||
|
||
div.sectionbody {
|
||
margin-left: 0;
|
||
}
|
||
|
||
hr {
|
||
border: 1px solid silver;
|
||
}
|
||
|
||
p {
|
||
margin-top: 0.5em;
|
||
margin-bottom: 0.5em;
|
||
}
|
||
|
||
ul, ol, li > p {
|
||
margin-top: 0;
|
||
}
|
||
ul > li { color: #aaa; }
|
||
ul > li > * { color: black; }
|
||
|
||
.monospaced, code, pre {
|
||
font-family: "Courier New", Courier, monospace;
|
||
font-size: inherit;
|
||
color: navy;
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
pre {
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
#author {
|
||
color: #527bbd;
|
||
font-weight: bold;
|
||
font-size: 1.1em;
|
||
}
|
||
#email {
|
||
}
|
||
#revnumber, #revdate, #revremark {
|
||
}
|
||
|
||
#footer {
|
||
font-size: small;
|
||
border-top: 2px solid silver;
|
||
padding-top: 0.5em;
|
||
margin-top: 4.0em;
|
||
}
|
||
#footer-text {
|
||
float: left;
|
||
padding-bottom: 0.5em;
|
||
}
|
||
#footer-badges {
|
||
float: right;
|
||
padding-bottom: 0.5em;
|
||
}
|
||
|
||
#preamble {
|
||
margin-top: 1.5em;
|
||
margin-bottom: 1.5em;
|
||
}
|
||
div.imageblock, div.exampleblock, div.verseblock,
|
||
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
|
||
div.admonitionblock {
|
||
margin-top: 1.0em;
|
||
margin-bottom: 1.5em;
|
||
}
|
||
div.admonitionblock {
|
||
margin-top: 2.0em;
|
||
margin-bottom: 2.0em;
|
||
margin-right: 10%;
|
||
color: #606060;
|
||
}
|
||
|
||
div.content { /* Block element content. */
|
||
padding: 0;
|
||
}
|
||
|
||
/* Block element titles. */
|
||
div.title, caption.title {
|
||
color: #527bbd;
|
||
font-weight: bold;
|
||
text-align: left;
|
||
margin-top: 1.0em;
|
||
margin-bottom: 0.5em;
|
||
}
|
||
div.title + * {
|
||
margin-top: 0;
|
||
}
|
||
|
||
td div.title:first-child {
|
||
margin-top: 0.0em;
|
||
}
|
||
div.content div.title:first-child {
|
||
margin-top: 0.0em;
|
||
}
|
||
div.content + div.title {
|
||
margin-top: 0.0em;
|
||
}
|
||
|
||
div.sidebarblock > div.content {
|
||
background: #ffffee;
|
||
border: 1px solid #dddddd;
|
||
border-left: 4px solid #f0f0f0;
|
||
padding: 0.5em;
|
||
}
|
||
|
||
div.listingblock > div.content {
|
||
border: 1px solid #dddddd;
|
||
border-left: 5px solid #f0f0f0;
|
||
background: #f8f8f8;
|
||
padding: 0.5em;
|
||
}
|
||
|
||
div.quoteblock, div.verseblock {
|
||
padding-left: 1.0em;
|
||
margin-left: 1.0em;
|
||
margin-right: 10%;
|
||
border-left: 5px solid #f0f0f0;
|
||
color: #888;
|
||
}
|
||
|
||
div.quoteblock > div.attribution {
|
||
padding-top: 0.5em;
|
||
text-align: right;
|
||
}
|
||
|
||
div.verseblock > pre.content {
|
||
font-family: inherit;
|
||
font-size: inherit;
|
||
}
|
||
div.verseblock > div.attribution {
|
||
padding-top: 0.75em;
|
||
text-align: left;
|
||
}
|
||
/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
|
||
div.verseblock + div.attribution {
|
||
text-align: left;
|
||
}
|
||
|
||
div.admonitionblock .icon {
|
||
vertical-align: top;
|
||
font-size: 1.1em;
|
||
font-weight: bold;
|
||
text-decoration: underline;
|
||
color: #527bbd;
|
||
padding-right: 0.5em;
|
||
}
|
||
div.admonitionblock td.content {
|
||
padding-left: 0.5em;
|
||
border-left: 3px solid #dddddd;
|
||
}
|
||
|
||
div.exampleblock > div.content {
|
||
border-left: 3px solid #dddddd;
|
||
padding-left: 0.5em;
|
||
}
|
||
|
||
div.imageblock div.content { padding-left: 0; }
|
||
span.image img { border-style: none; vertical-align: text-bottom; }
|
||
a.image:visited { color: white; }
|
||
|
||
dl {
|
||
margin-top: 0.8em;
|
||
margin-bottom: 0.8em;
|
||
}
|
||
dt {
|
||
margin-top: 0.5em;
|
||
margin-bottom: 0;
|
||
font-style: normal;
|
||
color: navy;
|
||
}
|
||
dd > *:first-child {
|
||
margin-top: 0.1em;
|
||
}
|
||
|
||
ul, ol {
|
||
list-style-position: outside;
|
||
}
|
||
ol.arabic {
|
||
list-style-type: decimal;
|
||
}
|
||
ol.loweralpha {
|
||
list-style-type: lower-alpha;
|
||
}
|
||
ol.upperalpha {
|
||
list-style-type: upper-alpha;
|
||
}
|
||
ol.lowerroman {
|
||
list-style-type: lower-roman;
|
||
}
|
||
ol.upperroman {
|
||
list-style-type: upper-roman;
|
||
}
|
||
|
||
div.compact ul, div.compact ol,
|
||
div.compact p, div.compact p,
|
||
div.compact div, div.compact div {
|
||
margin-top: 0.1em;
|
||
margin-bottom: 0.1em;
|
||
}
|
||
|
||
tfoot {
|
||
font-weight: bold;
|
||
}
|
||
td > div.verse {
|
||
white-space: pre;
|
||
}
|
||
|
||
div.hdlist {
|
||
margin-top: 0.8em;
|
||
margin-bottom: 0.8em;
|
||
}
|
||
div.hdlist tr {
|
||
padding-bottom: 15px;
|
||
}
|
||
dt.hdlist1.strong, td.hdlist1.strong {
|
||
font-weight: bold;
|
||
}
|
||
td.hdlist1 {
|
||
vertical-align: top;
|
||
font-style: normal;
|
||
padding-right: 0.8em;
|
||
color: navy;
|
||
}
|
||
td.hdlist2 {
|
||
vertical-align: top;
|
||
}
|
||
div.hdlist.compact tr {
|
||
margin: 0;
|
||
padding-bottom: 0;
|
||
}
|
||
|
||
.comment {
|
||
background: yellow;
|
||
}
|
||
|
||
.footnote, .footnoteref {
|
||
font-size: 0.8em;
|
||
}
|
||
|
||
span.footnote, span.footnoteref {
|
||
vertical-align: super;
|
||
}
|
||
|
||
#footnotes {
|
||
margin: 20px 0 20px 0;
|
||
padding: 7px 0 0 0;
|
||
}
|
||
|
||
#footnotes div.footnote {
|
||
margin: 0 0 5px 0;
|
||
}
|
||
|
||
#footnotes hr {
|
||
border: none;
|
||
border-top: 1px solid silver;
|
||
height: 1px;
|
||
text-align: left;
|
||
margin-left: 0;
|
||
width: 20%;
|
||
min-width: 100px;
|
||
}
|
||
|
||
div.colist td {
|
||
padding-right: 0.5em;
|
||
padding-bottom: 0.3em;
|
||
vertical-align: top;
|
||
}
|
||
div.colist td img {
|
||
margin-top: 0.3em;
|
||
}
|
||
|
||
@media print {
|
||
#footer-badges { display: none; }
|
||
}
|
||
|
||
#toc {
|
||
margin-bottom: 2.5em;
|
||
}
|
||
|
||
#toctitle {
|
||
color: #527bbd;
|
||
font-size: 1.1em;
|
||
font-weight: bold;
|
||
margin-top: 1.0em;
|
||
margin-bottom: 0.1em;
|
||
}
|
||
|
||
div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
|
||
margin-top: 0;
|
||
margin-bottom: 0;
|
||
}
|
||
div.toclevel2 {
|
||
margin-left: 2em;
|
||
font-size: 0.9em;
|
||
}
|
||
div.toclevel3 {
|
||
margin-left: 4em;
|
||
font-size: 0.9em;
|
||
}
|
||
div.toclevel4 {
|
||
margin-left: 6em;
|
||
font-size: 0.9em;
|
||
}
|
||
|
||
span.aqua { color: aqua; }
|
||
span.black { color: black; }
|
||
span.blue { color: blue; }
|
||
span.fuchsia { color: fuchsia; }
|
||
span.gray { color: gray; }
|
||
span.green { color: green; }
|
||
span.lime { color: lime; }
|
||
span.maroon { color: maroon; }
|
||
span.navy { color: navy; }
|
||
span.olive { color: olive; }
|
||
span.purple { color: purple; }
|
||
span.red { color: red; }
|
||
span.silver { color: silver; }
|
||
span.teal { color: teal; }
|
||
span.white { color: white; }
|
||
span.yellow { color: yellow; }
|
||
|
||
span.aqua-background { background: aqua; }
|
||
span.black-background { background: black; }
|
||
span.blue-background { background: blue; }
|
||
span.fuchsia-background { background: fuchsia; }
|
||
span.gray-background { background: gray; }
|
||
span.green-background { background: green; }
|
||
span.lime-background { background: lime; }
|
||
span.maroon-background { background: maroon; }
|
||
span.navy-background { background: navy; }
|
||
span.olive-background { background: olive; }
|
||
span.purple-background { background: purple; }
|
||
span.red-background { background: red; }
|
||
span.silver-background { background: silver; }
|
||
span.teal-background { background: teal; }
|
||
span.white-background { background: white; }
|
||
span.yellow-background { background: yellow; }
|
||
|
||
span.big { font-size: 2em; }
|
||
span.small { font-size: 0.6em; }
|
||
|
||
span.underline { text-decoration: underline; }
|
||
span.overline { text-decoration: overline; }
|
||
span.line-through { text-decoration: line-through; }
|
||
|
||
div.unbreakable { page-break-inside: avoid; }
|
||
|
||
|
||
/*
|
||
* xhtml11 specific
|
||
*
|
||
* */
|
||
|
||
div.tableblock {
|
||
margin-top: 1.0em;
|
||
margin-bottom: 1.5em;
|
||
}
|
||
div.tableblock > table {
|
||
border: 3px solid #527bbd;
|
||
}
|
||
thead, p.table.header {
|
||
font-weight: bold;
|
||
color: #527bbd;
|
||
}
|
||
p.table {
|
||
margin-top: 0;
|
||
}
|
||
/* Because the table frame attribute is overriden by CSS in most browsers. */
|
||
div.tableblock > table[frame="void"] {
|
||
border-style: none;
|
||
}
|
||
div.tableblock > table[frame="hsides"] {
|
||
border-left-style: none;
|
||
border-right-style: none;
|
||
}
|
||
div.tableblock > table[frame="vsides"] {
|
||
border-top-style: none;
|
||
border-bottom-style: none;
|
||
}
|
||
|
||
|
||
/*
|
||
* html5 specific
|
||
*
|
||
* */
|
||
|
||
table.tableblock {
|
||
margin-top: 1.0em;
|
||
margin-bottom: 1.5em;
|
||
}
|
||
thead, p.tableblock.header {
|
||
font-weight: bold;
|
||
color: #527bbd;
|
||
}
|
||
p.tableblock {
|
||
margin-top: 0;
|
||
}
|
||
table.tableblock {
|
||
border-width: 3px;
|
||
border-spacing: 0px;
|
||
border-style: solid;
|
||
border-color: #527bbd;
|
||
border-collapse: collapse;
|
||
}
|
||
th.tableblock, td.tableblock {
|
||
border-width: 1px;
|
||
padding: 4px;
|
||
border-style: solid;
|
||
border-color: #527bbd;
|
||
}
|
||
|
||
table.tableblock.frame-topbot {
|
||
border-left-style: hidden;
|
||
border-right-style: hidden;
|
||
}
|
||
table.tableblock.frame-sides {
|
||
border-top-style: hidden;
|
||
border-bottom-style: hidden;
|
||
}
|
||
table.tableblock.frame-none {
|
||
border-style: hidden;
|
||
}
|
||
|
||
th.tableblock.halign-left, td.tableblock.halign-left {
|
||
text-align: left;
|
||
}
|
||
th.tableblock.halign-center, td.tableblock.halign-center {
|
||
text-align: center;
|
||
}
|
||
th.tableblock.halign-right, td.tableblock.halign-right {
|
||
text-align: right;
|
||
}
|
||
|
||
th.tableblock.valign-top, td.tableblock.valign-top {
|
||
vertical-align: top;
|
||
}
|
||
th.tableblock.valign-middle, td.tableblock.valign-middle {
|
||
vertical-align: middle;
|
||
}
|
||
th.tableblock.valign-bottom, td.tableblock.valign-bottom {
|
||
vertical-align: bottom;
|
||
}
|
||
|
||
|
||
/*
|
||
* manpage specific
|
||
*
|
||
* */
|
||
|
||
body.manpage h1 {
|
||
padding-top: 0.5em;
|
||
padding-bottom: 0.5em;
|
||
border-top: 2px solid silver;
|
||
border-bottom: 2px solid silver;
|
||
}
|
||
body.manpage h2 {
|
||
border-style: none;
|
||
}
|
||
body.manpage div.sectionbody {
|
||
margin-left: 3em;
|
||
}
|
||
|
||
@media print {
|
||
body.manpage div#toc { display: none; }
|
||
}
|
||
|
||
|
||
/* Copyright 2015 The Crashpad Authors. All rights reserved.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License. */
|
||
|
||
/* The default AsciiDoc asciidoc.css specifies fuchsia as the visited link
|
||
* color. This has a dated appearance. Replace it with blue, the same color used
|
||
* for unvisited links. */
|
||
a:visited {
|
||
color: blue;
|
||
}
|
||
</style>
|
||
<script type="text/javascript">
|
||
/*<+'])');
|
||
// Function that scans the DOM tree for header elements (the DOM2
|
||
// nodeIterator API would be a better technique but not supported by all
|
||
// browsers).
|
||
var iterate = function (el) {
|
||
for (var i = el.firstChild; i != null; i = i.nextSibling) {
|
||
if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
|
||
var mo = re.exec(i.tagName);
|
||
if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
|
||
result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
|
||
}
|
||
iterate(i);
|
||
}
|
||
}
|
||
}
|
||
iterate(el);
|
||
return result;
|
||
}
|
||
|
||
var toc = document.getElementById("toc");
|
||
if (!toc) {
|
||
return;
|
||
}
|
||
|
||
// Delete existing TOC entries in case we're reloading the TOC.
|
||
var tocEntriesToRemove = [];
|
||
var i;
|
||
for (i = 0; i < toc.childNodes.length; i++) {
|
||
var entry = toc.childNodes[i];
|
||
if (entry.nodeName.toLowerCase() == 'div'
|
||
&& entry.getAttribute("class")
|
||
&& entry.getAttribute("class").match(/^toclevel/))
|
||
tocEntriesToRemove.push(entry);
|
||
}
|
||
for (i = 0; i < tocEntriesToRemove.length; i++) {
|
||
toc.removeChild(tocEntriesToRemove[i]);
|
||
}
|
||
|
||
// Rebuild TOC entries.
|
||
var entries = tocEntries(document.getElementById("content"), toclevels);
|
||
for (var i = 0; i < entries.length; ++i) {
|
||
var entry = entries[i];
|
||
if (entry.element.id == "")
|
||
entry.element.id = "_toc_" + i;
|
||
var a = document.createElement("a");
|
||
a.href = "#" + entry.element.id;
|
||
a.appendChild(document.createTextNode(entry.text));
|
||
var div = document.createElement("div");
|
||
div.appendChild(a);
|
||
div.className = "toclevel" + entry.toclevel;
|
||
toc.appendChild(div);
|
||
}
|
||
if (entries.length == 0)
|
||
toc.parentNode.removeChild(toc);
|
||
},
|
||
|
||
|
||
/////////////////////////////////////////////////////////////////////
|
||
// Footnotes generator
|
||
/////////////////////////////////////////////////////////////////////
|
||
|
||
/* Based on footnote generation code from:
|
||
* http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
|
||
*/
|
||
|
||
footnotes: function () {
|
||
// Delete existing footnote entries in case we're reloading the footnodes.
|
||
var i;
|
||
var noteholder = document.getElementById("footnotes");
|
||
if (!noteholder) {
|
||
return;
|
||
}
|
||
var entriesToRemove = [];
|
||
for (i = 0; i < noteholder.childNodes.length; i++) {
|
||
var entry = noteholder.childNodes[i];
|
||
if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
|
||
entriesToRemove.push(entry);
|
||
}
|
||
for (i = 0; i < entriesToRemove.length; i++) {
|
||
noteholder.removeChild(entriesToRemove[i]);
|
||
}
|
||
|
||
// Rebuild footnote entries.
|
||
var cont = document.getElementById("content");
|
||
var spans = cont.getElementsByTagName("span");
|
||
var refs = {};
|
||
var n = 0;
|
||
for (i=0; i<spans.length; i++) {
|
||
if (spans[i].className == "footnote") {
|
||
n++;
|
||
var note = spans[i].getAttribute("data-note");
|
||
if (!note) {
|
||
// Use [\s\S] in place of . so multi-line matches work.
|
||
// Because JavaScript has no s (dotall) regex flag.
|
||
note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
|
||
spans[i].innerHTML =
|
||
"[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
|
||
"' title='View footnote' class='footnote'>" + n + "</a>]";
|
||
spans[i].setAttribute("data-note", note);
|
||
}
|
||
noteholder.innerHTML +=
|
||
"<div class='footnote' id='_footnote_" + n + "'>" +
|
||
"<a href='#_footnoteref_" + n + "' title='Return to text'>" +
|
||
n + "</a>. " + note + "</div>";
|
||
var id =spans[i].getAttribute("id");
|
||
if (id != null) refs["#"+id] = n;
|
||
}
|
||
}
|
||
if (n == 0)
|
||
noteholder.parentNode.removeChild(noteholder);
|
||
else {
|
||
// Process footnoterefs.
|
||
for (i=0; i<spans.length; i++) {
|
||
if (spans[i].className == "footnoteref") {
|
||
var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
|
||
href = href.match(/#.*/)[0]; // Because IE return full URL.
|
||
n = refs[href];
|
||
spans[i].innerHTML =
|
||
"[<a href='#_footnote_" + n +
|
||
"' title='View footnote' class='footnote'>" + n + "</a>]";
|
||
}
|
||
}
|
||
}
|
||
},
|
||
|
||
install: function(toclevels) {
|
||
var timerId;
|
||
|
||
function reinstall() {
|
||
asciidoc.footnotes();
|
||
if (toclevels) {
|
||
asciidoc.toc(toclevels);
|
||
}
|
||
}
|
||
|
||
function reinstallAndRemoveTimer() {
|
||
clearInterval(timerId);
|
||
reinstall();
|
||
}
|
||
|
||
timerId = setInterval(reinstall, 500);
|
||
if (document.addEventListener)
|
||
document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
|
||
else
|
||
window.onload = reinstallAndRemoveTimer;
|
||
}
|
||
|
||
}
|
||
asciidoc.install();
|
||
/*]]>*/
|
||
</script>
|
||
</head>
|
||
<body class="manpage">
|
||
<div id="header">
|
||
<h1>
|
||
crashpad_handler(8) Manual Page
|
||
</h1>
|
||
<h2>NAME</h2>
|
||
<div class="sectionbody">
|
||
<p>crashpad_handler -
|
||
Crashpad’s exception handler server
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<div id="content">
|
||
<div class="sect1">
|
||
<h2 id="_synopsis">Synopsis</h2>
|
||
<div class="sectionbody">
|
||
<div class="verseblock">
|
||
<pre class="content"><strong>crashpad_handler</strong> [<em>OPTION…</em>]</pre>
|
||
<div class="attribution">
|
||
</div></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_description">Description</h2>
|
||
<div class="sectionbody">
|
||
<div class="paragraph"><p>This program is Crashpad’s main exception-handling server. It is responsible for
|
||
catching exceptions, writing crash reports, and uploading them to a crash report
|
||
collection server. Uploads are disabled by default, and can only be enabled by a
|
||
Crashpad client using the Crashpad client library, typically in response to a
|
||
user requesting this behavior.</p></div>
|
||
<div class="paragraph"><p>On OS X, this server may be started by its initial client, in which case it
|
||
performs a handshake with this client via a pipe established by the client that
|
||
is inherited by the server, referenced by the <strong>--handshake-fd</strong> argument. During
|
||
the handshake, the server furnishes the client with a send right that the client
|
||
may use as an exception port. The server retains the corresponding receive
|
||
right, which it monitors for exception messages. When the receive right loses
|
||
all senders, the server exits after allowing any upload in progress to complete.</p></div>
|
||
<div class="paragraph"><p>Alternatively, on OS X, this server may be started from launchd(8), where it
|
||
receives the Mach service name in a <strong>--mach-service</strong> argument. It checks in with
|
||
the bootstrap server under this service name, and clients may look it up with
|
||
the bootstrap server under this service name. It monitors this service for
|
||
exception messages. Upon receipt of <span class="monospaced">SIGTERM</span>, the server exits after allowing
|
||
any upload in progress to complete. <span class="monospaced">SIGTERM</span> is normally sent by launchd(8)
|
||
when it determines that the server should exit.</p></div>
|
||
<div class="paragraph"><p>On Windows, clients register with this server by communicating with it via the
|
||
named pipe identified by the <strong>--pipe-name</strong> argument. Alternatively, the server
|
||
can inherit an already-created pipe from a parent process by using the
|
||
<strong>--initial-client-data</strong> mechanism. That argument also takes all of the arguments
|
||
that would normally be passed in a registration message, and so constitutes
|
||
registration of the first client. Subsequent clients may then register by
|
||
communicating with the server via the pipe. During registration, a client
|
||
provides the server with an OS event object that it will signal should it crash.
|
||
The server obtains the client’s process handle and waits on the crash event
|
||
object for a crash, as well as the client’s process handle for the client to
|
||
exit cleanly without crashing. When a server started via the
|
||
<strong>--initial-client-data</strong> mechanism loses all of its clients, it exits after
|
||
allowing any upload in progress to complete.</p></div>
|
||
<div class="paragraph"><p>On Windows, this executable is built by default as a Windows GUI app, so no
|
||
console will appear in normal usage. This is the version that will typically be
|
||
used. A second copy is also made with a <span class="monospaced">.com</span> extension, rather than <span class="monospaced">.exe</span>. In
|
||
this second copy, the PE header is modified to indicate that it’s a console app.
|
||
This is useful because the <span class="monospaced">.com</span> is found in the path before the <span class="monospaced">.exe</span>, so
|
||
when run normally from a shell using only the basename (without an explicit
|
||
<span class="monospaced">.com</span> or <span class="monospaced">.exe</span> extension), the <span class="monospaced">.com</span> console version will be chosen, and so
|
||
stdio will be hooked up as expected to the parent console so that logging output
|
||
will be visible.</p></div>
|
||
<div class="paragraph"><p>It is not normally appropriate to invoke this program directly. Usually, it will
|
||
be invoked by a Crashpad client using the Crashpad client library, or started by
|
||
another system service. On OS X, arbitrary programs may be run with a Crashpad
|
||
handler by using <a href="run_with_crashpad.html">run_with_crashpad(1)</a> to establish the Crashpad client
|
||
environment before running a program.</p></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_options">Options</h2>
|
||
<div class="sectionbody">
|
||
<div class="dlist"><dl>
|
||
<dt class="hdlist1">
|
||
<strong>--annotation</strong>=<em>KEY=VALUE</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Sets a process-level annotation mapping <em>KEY</em> to <em>VALUE</em> in each crash report
|
||
that is written. This option may appear zero, one, or multiple times.
|
||
</p>
|
||
<div class="paragraph"><p>Most annotations should be provided by the Crashpad client as module-level
|
||
annotations instead of process-level annotations. Module-level annotations are
|
||
more flexible in that they can be modified and cleared during the client
|
||
program’s lifetime. Module-level annotations can be set via the Crashpad client
|
||
library. Process-level annotations are useful for annotations that the
|
||
collection server requires be present, that have fixed values, and for cases
|
||
where a program that does not use the Crashpad client library is being
|
||
monitored.</p></div>
|
||
<div class="paragraph"><p>Breakpad-type collection servers only require the <span class="monospaced">"prod"</span> and <span class="monospaced">"ver"</span>
|
||
annotations, which should be set to the product name or identifier and product
|
||
version, respectively. It is unusual to specify other annotations as
|
||
process-level annotations via this argument.</p></div>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--database</strong>=<em>PATH</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Use <em>PATH</em> as the path to the Crashpad crash report database. This option is
|
||
required. Crash reports are written to this database, and if uploads are
|
||
enabled, uploaded from this database to a crash report collection server. If the
|
||
database does not exist, it will be created, provided that the parent directory
|
||
of <em>PATH</em> exists.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--handshake-fd</strong>=<em>FD</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Perform the handshake with the initial client on the file descriptor at <em>FD</em>.
|
||
Either this option or <strong>--mach-service</strong>, but not both, is required. This option
|
||
is only valid on OS X.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--initial-client-data</strong>=<em>HANDLE_request_crash_dump</em>,<em>HANDLE_request_non_crash_dump</em>,<em>HANDLE_non_crash_dump_completed</em>,<em>HANDLE_first_pipe_instance</em>,<em>HANDLE_client_process</em>,<em>Address_crash_exception_information</em>,<em>Address_non_crash_exception_information</em>,<em>Address_debug_critical_section</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Register the initial client using the inherited handles and data provided. For
|
||
more information on the arguments, see the implementations of <span class="monospaced">CrashpadClient</span>
|
||
and <span class="monospaced">ExceptionHandlerServer</span>. Either this option or <strong>--pipe-name</strong>, but not both,
|
||
is required. This option is only valid on Windows.
|
||
</p>
|
||
<div class="paragraph"><p>When this option is present, the server creates a new named pipe at a random
|
||
name and informs its client of the name. The server waits for at least one
|
||
client to register, and exits when all clients have exited, after waiting for
|
||
any uploads in progress to complete.</p></div>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--mach-service</strong>=<em>SERVICE</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Check in with the bootstrap server under the name <em>SERVICE</em>. Either this option
|
||
or <strong>--handshake-fd</strong>, but not both, is required. This option is only valid on OS
|
||
X.
|
||
</p>
|
||
<div class="paragraph"><p><em>SERVICE</em> may already be reserved with the bootstrap server in cases where this
|
||
tool is started by launchd(8) as a result of a message being sent to a service
|
||
declared in a job’s <span class="monospaced">MachServices</span> dictionary (see launchd.plist(5)). The
|
||
service name may also be completely unknown to the system.</p></div>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--no-rate-limit</strong>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Do not rate limit the upload of crash reports. By default uploads are throttled
|
||
to one per hour. Using this option disables that behavior, and Crashpad will
|
||
attempt to upload all captured reports.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--pipe-name</strong>=<em>PIPE</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Listen on the given pipe name for connections from clients. <em>PIPE</em> must be of
|
||
the form <span class="monospaced">\\.\pipe\<somename></span>. Either this option or <strong>--initial-client-data</strong>,
|
||
but not both, is required. This option is only valid on Windows.
|
||
</p>
|
||
<div class="paragraph"><p>When this option is present, the server creates a named pipe at <em>PIPE</em>, a name
|
||
known to both the server and its clients. The server continues running even
|
||
after all clients have exited.</p></div>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--reset-own-crash-exception-port-to-system-default</strong>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Causes the exception handler server to set its own crash handler to the system
|
||
default before beginning operation. This is only expected to be useful in cases
|
||
where the server inherits an inappropriate crash handler from its parent
|
||
process. This option is only valid on OS X. Use of this option is discouraged.
|
||
It should not be used absent extraordinary circumstances.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--url</strong>=<em>URL</em>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
If uploads are enabled, sends crash reports to the Breakpad-type crash report
|
||
collection server at <em>URL</em>. Uploads are disabled by default, and can only be
|
||
enabled for a database by a Crashpad client using the Crashpad client library,
|
||
typically in response to a user requesting this behavior. If this option is not
|
||
specified, this program will behave as if uploads are disabled.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--help</strong>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Display help and exit.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>--version</strong>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Output version information and exit.
|
||
</p>
|
||
</dd>
|
||
</dl></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_exit_status">Exit Status</h2>
|
||
<div class="sectionbody">
|
||
<div class="dlist"><dl>
|
||
<dt class="hdlist1">
|
||
<strong>0</strong>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Success.
|
||
</p>
|
||
</dd>
|
||
<dt class="hdlist1">
|
||
<strong>1</strong>
|
||
</dt>
|
||
<dd>
|
||
<p>
|
||
Failure, with a message printed to the standard error stream.
|
||
</p>
|
||
</dd>
|
||
</dl></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_see_also">See Also</h2>
|
||
<div class="sectionbody">
|
||
<div class="paragraph"><p><a href="catch_exception_tool.html">catch_exception_tool(1)</a>,
|
||
<a href="crashpad_database_util.html">crashpad_database_util(1)</a>,
|
||
<a href="generate_dump.html">generate_dump(1)</a>,
|
||
<a href="run_with_crashpad.html">run_with_crashpad(1)</a></p></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_resources">Resources</h2>
|
||
<div class="sectionbody">
|
||
<div class="paragraph"><p>Crashpad home page: <a href="https://crashpad.chromium.org/">https://crashpad.chromium.org/</a>.</p></div>
|
||
<div class="paragraph"><p>Report bugs at <a href="https://crashpad.chromium.org/bug/new">https://crashpad.chromium.org/bug/new</a>.</p></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_copyright">Copyright</h2>
|
||
<div class="sectionbody">
|
||
<div class="paragraph"><p>Copyright 2016
|
||
<a href="https://chromium.googlesource.com/crashpad/crashpad/+/master/AUTHORS">The
|
||
Crashpad Authors</a>.</p></div>
|
||
</div>
|
||
</div>
|
||
<div class="sect1">
|
||
<h2 id="_license">License</h2>
|
||
<div class="sectionbody">
|
||
<div class="paragraph"><p>Licensed under the Apache License, Version 2.0 (the “License”);
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at</p></div>
|
||
<div class="literalblock">
|
||
<div class="content monospaced">
|
||
<pre><a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></pre>
|
||
</div></div>
|
||
<div class="paragraph"><p>Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an “AS IS” BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.</p></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="footnotes"><hr></div>
|
||
<div id="footer">
|
||
<div id="footer-text">
|
||
Crashpad 0.8.0<br>
|
||
Last updated October 21, 2016
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|