| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Wed, 25 Jun 2014 00:16:09 +0200 | |
| changeset 21 | fab315d8c7a8 |
| parent 15 | 394f772a8105 |
| child 51 | 2894d97715c9 |
| permissions | -rw-r--r-- |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
Web interface dependencies: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
- perl >= 5.10 |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
- Mojolicious >= 2.98 |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
- perl-UUID |
| 14 | 5 |
- jquery |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
On debian, install libuuid-perl and libmojolicious-perl (from wheezy, the version |
|
15
394f772a8105
jquery from wheezy is required
Vincent Tondellier <tonton+hg@team1664.org>
parents:
14
diff
changeset
|
8 |
from squeeze is too old), and libjs-jquery (from wheezy too). |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
Edit CrashTest.conf and change the paths to match your environment. |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
Next, you need to get and build the json branch of minidump-stackwalk from here: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
http://hg.mozilla.org/users/tmielczarek_mozilla.com/minidump-stackwalk |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
Full compilation instructions: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
$ svn co http://google-breakpad.googlecode.com/svn google-breakpad |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
$ mkdir obj-breakpad |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
$ cd obj-breakpad |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
$ ../google-breakpad/configure && make |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
$ cd ../ |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
$ hg clone http://hg.mozilla.org/users/tmielczarek_mozilla.com/minidump-stackwalk -b json |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
$ cd minidump-stackwalk |
| 14 | 23 |
$ patch -p1 <<EOF |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
diff --git a/stackwalker.cc b/stackwalker.cc |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
--- a/stackwalker.cc |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
+++ b/stackwalker.cc |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
27 |
@@ -250,12 +250,6 @@ |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
28 |
case google_breakpad::PROCESS_ERROR_DUPLICATE_REQUESTING_THREADS: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
29 |
str = "ERROR_DUPLICATE_REQUESTING_THREADS"; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
30 |
break; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
31 |
- case google_breakpad::PROCESS_ERROR_NO_MEMORY_FOR_THREAD: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
32 |
- str = "ERROR_NO_MEMORY_FOR_THREAD"; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
33 |
- break; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
34 |
- case google_breakpad::PROCESS_ERROR_NO_STACKWALKER_FOR_THREAD: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
35 |
- str = "ERROR_NO_STACKWALKER_FOR_THREAD"; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
36 |
- break; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
37 |
case google_breakpad::PROCESS_SYMBOL_SUPPLIER_INTERRUPTED: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
38 |
str = "SYMBOL_SUPPLIER_INTERRUPTED"; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
39 |
break; |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
40 |
EOF |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
41 |
$ make |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
42 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
43 |
Copy stackwalker to the path configured in CrashTest.conf. |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
44 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
45 |
No, you can test: |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
46 |
./CrashTest.pl daemon |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
47 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
48 |
The submit URL is /submit and is compatible with socorro. |
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
49 |