/
report_index.html
562 lines (537 loc) · 22.4 KB
/
report_index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
{% extends "crashstats_base.html" %}
{% block site_css %}
{{ super() }}
{% compress css %}
<link media="screen" href="{{ static('crashstats/css/flora/flora.css') }}" type="text/css" rel="stylesheet">
<link media="screen" href="{{ static('crashstats/css/flora/flora.tabs.css') }}" type="text/css" rel="stylesheet">
<link media="screen" href="{{ static('crashstats/css/flora/flora.tablesorter.css') }}" type="text/css" rel="stylesheet">
<style type="text/css">
#details th, #metadata th {
width: 15%;
}
</style>
{% endcompress %}
{% endblock %}
{% block page_title %}
[@ {{ report.signature }}] - {{ report.product }} {{ report.version }} Crash Report - Report ID: {{ report.uuid }}
{% endblock %}
{% block content %}
<div id="mainbody">
<div class="page-heading">
<h2>{{ report.product }} {{ report.version }} Crash Report [@ {{ report.signature }} ]</h2>
</div>
<div class="panel">
<div class="body notitle">
<div id="sumo-link"><a href="http://support.mozilla.com/search?q={{ report.signature|urlencode }}" title="Find more answers at support.mozilla.com!">Search Mozilla Support for Help</a></div>
{% if hang_id %}
<div class="oopp-hang">
<div class="current">Hang Minidump <span class="type">({{ process_type }})</span></div>
{% if crash_pairs.total == 0 %}
<div class="pair">Hang ID {{ hang_id }} but no other UUID pair found</div>
{% else %}
<div class="pair">Hang ID <a href="{{ hang_id }}">{{ hang_id }}</a></div>
{% endif%}
</div>
{% endif %}
<div id="report-header-details">ID: <span>{{ report.uuid }}</span><br/> Signature: <span>{{ report.signature }}</span></div>
<div id="report-index" class="flora">
<ul class="ui-tabs-nav">
<li><a href="#details"><span>Details</span></a></li>
<li><a href="#metadata"><span>Metadata</span></a></li>
<li><a href="#modules"><span>Modules</span></a></li>
<li><a href="#rawdump"><span>Raw Dump</span></a></li>
<li><a href="#extensions"><span>Extensions</span></a></li>
{% if total_correlations > 0 %}
<li><a href="#correlation"><span>Correlations</span></a></li>
{% endif %}
</ul>
<div id="details">
<table class="record data-table vertical">
<tbody>
<tr>
<th scope="row">Signature</th>
<td>
{{ report.signature }}
<a href="{{ url('crashstats:report_list') }}?product={{ product }}&signature={{ report.signature|urlencode }}" class="sig-overview" title="View more reports of this type">More Reports</a>
<a href="{{ url('crashstats:query') }}?signature={{ report.signature|urlencode }}#advanced" class="sig-search" title="Search for more reports of this type">Search</a>
</td>
</tr>
<tr>
<th scope="row">UUID</th>
<td>{{ report.uuid }}</td>
</tr>
<tr>
<th scope="row">Date Processed</th><td>{{ report.date_processed }}</td>
</tr>
{% if report.process_type %}
<tr>
<th scope="row">Process Type</th>
<td>{{ report.process_type }}
{% if report.PluginName %}
<strong class="name">{{ report.PluginName }}</strong>
{% endif %}
{% if report.PluginVersion %}
<span>Version:</span><span class="version">{{ report.PluginVersion }}</span>
{% endif %}
{% if report.PluginFilename %}
<span>Filename:</span><span class="filename">{{ report.PluginFilename }}</span>
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<th scope="row">Uptime</th><td>{{ report.uptime }}</td>
</tr>
{% if report.last_crash %}
<tr>
<th scope="row">Last Crash</th><td>{{ report.last_crash }} seconds before submission</td>
</tr>
{% endif %}
{% if report.install_age %}
<tr>
<th scope="row">Install Age</th>
<td>{{ report.install_age }} since version was first installed.</td>
</tr>
{% endif %}
{% if install_time %}
<tr>
<th scope="row">Install Time</th>
<td>{{ install_time }}</td>
</tr>
{% endif %}
<tr>
<th scope="row">Product</th>
<td>{{ report.product }}</td>
</tr>
<tr>
<th scope="row">Version</th>
<td>{{ report.version }}</td>
</tr>
<tr>
<th scope="row">Build ID</th>
<td>{{ report.build }}</td>
</tr>
<tr>
<th scope="row">Release Channel</th>
<td>{{ report.release_channel }}</td>
</tr>
<tr>
<th scope="row">OS</th>
<td>{{ report.os_name }}</td>
</tr>
<tr>
<th scope="row">OS Version</th>
<td>{{ report.os_version }}</td>
</tr>
{% if raw.B2G_OS_Version %}
<tr>
<th scope="row">B2G OS Version</th>
<td><pre>{{ raw.B2G_OS_Version }}</pre></td>
</tr>
{% endif %}
<tr>
<th scope="row">Build Architecture</th>
<td>{{ report.cpu_name }}</td>
</tr>
<tr>
<th scope="row">Build Architecture Info</th>
<td>{{ report.cpu_info }}</td>
</tr>
<tr>
<th scope="row">Crash Reason</th>
<td>{{ report.reason }}</td>
</tr>
<tr>
<th scope="row">Crash Address</th>
<td>{{ report.address }}</td>
</tr>
{% if request.user.has_perm('crashstats.view_pii') %}
<tr>
<th scope="row">Email Address</th>
<td>
{% if raw.Email %}
<a href="mailto:{{ raw.Email }}">{{ raw.Email }}</a> - Super Sensitive! Don't mess around!
{% endif %}
</td>
</tr>
<tr>
<th scope="row">URL</th>
<td>
{% if raw.URL %}
<a href="{{ raw.URL }}" title="{{ raw.URL }}">{{ raw.URL }}</a> - Super Sensitive! Don't mess around!
{% endif %}
</td>
</tr>
{% endif %}
{% if request.user.has_perm('crashstats.view_exploitability') %}
<tr>
<th scope="row">Exploitability</th>
<td>
{% if report.exploitability %}
{{ report.exploitability }}
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<th scope="row">User Comments</th>
<td>
{% if report.user_comments %}
{% if request.user.has_perm('crashstats.view_pii') %}
{{ report.user_comments | nl2br }}
{% else %}
{{ report.user_comments | scrub_pii | nl2br }}
{% endif %}
{% endif %}
</td>
</tr>
{% if report.app_notes %}
<tr>
<th title="Notes added by the application's code during crash" scope="row">App Notes</th>
<td><pre>{{ report.app_notes }}</pre></td>
</tr>
{% endif %}
{% if report.processor_notes %}
<tr>
<th title="Notes added by Socorro when accepting the crash report" scope="row">Processor Notes</th>
<td><code>{{ report.processor_notes }}</code></td>
</tr>
{% endif %}
{% if report.distributor %}
<tr>
<th>
<td><pre>{{ report.distributor }}</pre></td>
</tr>
{% endif %}
{% if report.distributor_version %}
<tr>
<th>
<td><pre>{{ report.distributor_version }}</pre></td>
</tr>
{% endif %}
<tr>
<th scope="row">EMCheckCompatibility</th>
<td>
<pre>{% if report.addons_checked %}True{% else %}False{% endif %}</pre>
</td>
</tr>
<tr>
<th scope="row">Winsock LSP</th>
<td><pre>{{ report.Winsock_LSP }}</pre></td>
</tr>
<tr>
<th scope="row">Adapter Vendor ID</th>
<td><pre>{{ raw.AdapterVendorID }}</pre></td>
</tr>
<tr>
<th scope="row">Adapter Device ID</th>
<td><pre>{{ raw.AdapterDeviceID }}</pre></td>
</tr>
{% if raw.JavaStackTrace %}
<tr>
<th scope="row">Java Stack Trace</th>
<td><pre>{{ raw.JavaStackTrace }}</pre></td>
</tr>
{% endif %}
{% if raw.TotalVirtualMemory %}
<tr>
<th scope="row">Total Virtual Memory</th>
<td><pre>{{ raw.TotalVirtualMemory }}</pre></td>
</tr>
{% endif %}
{% if raw.AvailableVirtualMemory %}
<tr>
<th scope="row">Available Virtual Memory</th>
<td><pre>{{ raw.AvailableVirtualMemory }}</pre></td>
</tr>
{% endif %}
{% if raw.SystemMemoryUsePercentage %}
<tr>
<th scope="row">System Memory Use Percentage</th>
<td><pre>{{ raw.SystemMemoryUsePercentage }}</pre></td>
</tr>
{% endif %}
{% if raw.AvailablePageFile %}
<tr>
<th scope="row">Available Page File</th>
<td><pre>{{ raw.AvailablePageFile }}</pre></td>
</tr>
{% endif %}
{% if raw.AvailablePhysicalMemory %}
<tr>
<th scope="row">Available Physical Memory</th>
<td><pre>{{ raw.AvailablePhysicalMemory }}</pre></td>
</tr>
{% endif %}
{% if raw.OOMAllocationSize %}
<tr>
<th scope="row">OOM Allocation Size</th>
<td><pre>{{ raw.OOMAllocationSize }}</pre></td>
</tr>
{% endif %}
{% if raw.FlashProcessDump %}
<tr>
<th scope="row">Flash Process Dump</th>
<td><pre>{{ raw.FlashProcessDump }}</pre></td>
</tr>
{% endif %}
{% if raw.Accessibility %}
<tr>
<th scope="row">Accessibility</th>
<td><pre>{{ raw.Accessibility }}</pre></td>
</tr>
{% endif %}
{% if raw.Android_CPU_ABI%}
<tr>
<th scope="row">Android CPU ABI</th>
<td><pre>{{ raw.Android_CPU_ABI}}</pre></td>
</tr>
{% endif %}
{% if raw.Android_Manufacturer %}
<tr>
<th scope="row">Android Manufacturer</th>
<td><pre>{{ raw.Android_Manufacturer }}</pre></td>
</tr>
{% endif %}
{% if raw.Android_Model %}
<tr>
<th scope="row">Android Model</th>
<td><pre>{{ raw.Android_Model }}</pre></td>
</tr>
{% endif %}
{% if raw.Android_Version %}
<tr>
<th scope="row">Android Version</th>
<td><pre>{{ raw.Android_Version }}</pre></td>
</tr>
{% endif %}
</tbody>
</table>
<div id="bugzilla" class="bugreporter">
<p><strong>Bugzilla</strong> - Report this bug in
{% for bug_product in [product, 'Core', 'Plugins', 'Toolkit'] %}
{% if bug_product in bug_product_map %}
{% set bug_product = settings.BUG_PRODUCT_MAP[bug_product] %}
{% endif %}
<a href="https://bugzilla.mozilla.org/enter_bug.cgi?bug_severity=critical&keywords=crash&product={{ bug_product }}&op_sys={{ report.os_name }}&rep_platform={{ report.cpu_name }}&cf_crash_signature={{ '[@' | urlencode }} {{ report.signature|urlencode }}{{ ']' | urlencode }}&short_desc=crash in {{ report.signature|urlencode }}&comment=This bug was filed from the Socorro interface and is %0Areport bp-{{ report.uuid }}.%0A=============================================================%0A" target="_blank">{{ bug_product }}</a>
{% endfor %}
</p>
<h2>Related Bugs</h2>
<div class="bug_ids_expanded_list">
<ul class="bug_ids_expanded full_bug_ids full">
{% for bug in bug_associations %}
<li>{{ show_bug_link(bug.id) }}</li>
{% endfor %}
</ul>
</div>
</div><!-- /bugzilla -->
{% if parsed_dump.threads %}
<div id="frames">
<h2>Crashing Thread</h2>
<table class="data-table">
<thead>
<tr>
<th scope="col">Frame</th>
<th scope="col">Module</th>
<th class="signature-column" scope="col">Signature</th>
<th scope="col">Source</th>
</tr>
</thead>
<tbody>
{% for frame in parsed_dump.threads[parsed_dump.crash_info.crashing_thread].frames %}
<tr class="{%if frame.missing_symbols %}missingsymbols{% endif %}">
<td>
{%if frame.missing_symbols %}
<span class="row-notice" title="missing symbol">Ø</span>
{% endif %}
{{ frame.frame }}
</td>
<td>{{ frame.module }}</td>
<td title="{{ frame.signature }}">{{ frame.signature }}</td>
{% if frame.source_link %}
<td>
<a href="{{ frame.source_link }}">{{ frame.file }}</a>
</td>
{% else %}
<td>
{% if frame.file %}
{{ frame.file }}:{{ frame.line }}
{% endif %}
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<p id="showallthreads" class="hidden"><a href="#allthreads">Show/hide other threads</a></p>
<div id="allthreads">
{% for thread in parsed_dump.threads %}
{%if thread.thread != parsed_dump.crash_info.crashing_thread %}
<h2>Thread {{ thread.thread }}</h2>
<table class="data-table">
<thead>
<tr>
<th scope="col">Frame</th>
<th scope="col">Module</th>
<th class="signature-column" scope="col">Signature</th>
<th scope="col">Source</th>
</tr>
</thead>
<tbody>
{% for frame in thread.frames %}
<tr class="{%if frame.missing_symbols %}missingsymbols{% endif %}">
<td>
{%if frame.missing_symbols %}
<span class="row-notice" title="missing symbol">Ø</span>
{% endif %}
{{ frame.frame }}
</td>
<td>{{ frame.module }}</td>
<td title="{{ frame.signature }}">{{ frame.signature }}</td>
{% if frame.source_link %}
<td>
<a href="{{ frame.source_link }}">{{ frame.file }}</a>
</td>
{% else %}
<td>{{ frame.file }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endfor %}
</div>
</div><!-- /frames -->
{% endif %}
</div><!-- /details -->
<div id="metadata" class="ui-tabs-hide">
<table class="record data-table vertical">
<tbody>
{% for key in raw_keys %}
<tr>
<th scope="row">{{ key }}</th>
{% if key == 'Comments' %}
<td>{{ raw[key] | scrub_pii }}</td>
{% else %}
<td>{{ raw[key] }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- /#rawdetails -->
<div id="modules" class="ui-tabs-hide">
{% if parsed_dump.modules %}
<table class="tablesorter data-table" id="modules-list">
<thead>
<tr>
<th scope="col">Filename</th>
<th scope="col">Version</th>
<th scope="col">Debug Identifier</th>
<th scope="col">Debug Filename</th>
</tr>
</thead>
<tbody>
{% for module in parsed_dump.modules %}
<tr class="{%if module.missing_symbols %}missingsymbols{% endif %}">
<td>{{ module.filename }}</td>
<td>{{ module.version }}</td>
<td>{{ module.debug_id }}</td>
<td>{{ module.debug_file }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div><!-- /modules -->
<div id="rawdump" class="ui-tabs-hide">
<div class="code">{{ raw_stackwalker_output }}</div>
{% if request.user.has_perm('crashstats.view_rawdump') %}
<h3>Download the Raw Dump</h3>
{% for url in raw_dump_urls %}
<p><a href="{{ url }}">{{ url }}</a></p>
{% endfor %}
{% else %}
<p>You need to be signed in to be able to download raw dumps.</p>
{% endif %}
</div><!-- /rawdump -->
<div id="extensions" class="ui-tabs-hide">
{% if report.addons %}
<table class="data-table">
<thead>
<tr>
<th scope="col">Extension</th>
<th scope="col">Extension Id</th>
<th scope="col">Version</th>
<th scope="col">Current?</th>
</tr>
</thead>
<tbody>
{% for addon in report.addons %}
<tr>
<td><a href=""></a></td>
<td>{{ addon[0] }}</td>
<td>{{ addon[1] }}</td>
<td><strong>{{ addon[2] }}</strong></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No extensions were installed.</p>
{% endif %}
</div><!-- /extensions -->
<div id="correlation" class="ui-tabs-hide"><h2>Correlations for {{ product }} {{ version }} {{ report.os_name }} </h2>
<p>Below are tables of correlation data generated by <a href="http://dbaron.org/mozilla/topcrash-modules">dbaron's scripts</a>. If this crash signature is
a top crasher, then we should be able to load it from <a href="http://crash-analysis.mozilla.com/crash_analysis/">the original text files</a>. Only the first 2MB of each Platform's output is loaded. If this screen has data from multiple product/version/platforms, the crashiest was picked ({{ product }} {{ version }} {{ report.os_name }}).</p>
<ul>
<li id="mod">
<h3>Modules <a href="#modver" title="Skip Down to Module Versions">Next</a></h3>
<div id="interesting-modules_correlation">Loading <img src="{{ static('img/loading.png') }}" width="16" height="17" alt="Loading..." /></div>
</li>
<li id="modver">
<h3>Modules by versions <a href="#add" title="Skip Down to Add-ons">Next</a>
<a href="#mod" title="Skip Up to Modules">Previous</a></h3>
<div id="interesting-modules-with-versions-panel"><button name="interesting-modules-with-versions" class="load-version-data">Load</button></div>
</li>
<li id="add">
<h3>Add-ons <a href="#addver" title="Skip Down to Add-on Versions">Next</a>
<a href="#modver" title="Skip Up to Module Versions">Previous</a></h3>
<div id="interesting-addons_correlation">Loading <img src="{{ static('img/loading.png') }}" width="16" height="17" alt="Loading..." /></div>
</li>
<li id="addver">
<h3>Add-ons by versions <a href="#core-counts" title="Skip Down to CPU Cores">Next</a>
<a href="#add" title="Skip Up to Add-ons">Previous</a></h3>
<div id="interesting-addons-with-versions-panel"><button name="interesting-addons-with-versions" class="load-version-data">Load</button></div>
</li>
<li id="core-counts">
<h3>CPU Cores <a href="#addver" title="Skip Up to Add-on Versions">Previous</a></h3>
<div id="core-counts_correlation">Loading <img src="{{ static('img/loading.png') }}" width="16" height="17" alt="Loading..." /></div>
</li>
</ul>
</div><!-- /correlation -->
</div> <!-- /report-index -->
</div>
</div>
</div>
<script type="text/javascript">
var SocReport = {
base: '{{ url('crashstats:correlations_json') }}',
path: 'product={{ product }}&version={{ version }}&platform={{ report.os_name }}&signature={{ report.signature|urlencode }}',
loading: 'Loading <img src="{{ static('img/loading.png') }}" width="16" height="17" alt="Loading..." />'
};
</script>
{% endblock %}
{% block site_js %}
{{ super() }}
{% compress js %}
<script type="text/javascript" src="{{ static('crashstats/js/jquery/plugins/ui/jquery.ui.core.min.js') }}"></script>
<script type="text/javascript" src="{{ static('crashstats/js/jquery/plugins/ui/jquery.ui.widget.min.js') }}"></script>
<script type="text/javascript" src="{{ static('crashstats/js/jquery/plugins/ui/jquery.ui.tabs.min.js') }}"></script>
<script type="text/javascript" src="{{ static('crashstats/js/jquery/plugins/ui/jquery.tablesorter.min.js') }}"></script>
<script type="text/javascript" src="{{ static('crashstats/js/socorro/bugzilla.js') }}"></script>
<script type="text/javascript" src="{{ static('crashstats/js/socorro/report.js') }}"></script>
<script type="text/javascript" src="{{ static('crashstats/js/socorro/correlation.js') }}"></script>
{% endcompress %}
{% endblock %}