INSTALL
author Vincent Tondellier <tonton+hg@team1664.org>
Tue, 20 Nov 2012 15:06:13 +0100
changeset 13 b5d8f0f977aa
child 14 e9c1591a4f54
permissions -rw-r--r--
Add install instruction
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
On debian, install libuuid-perl and libmojolicious-perl (from wheezy, the version
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     7
from squeeze is too old).
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     9
Edit CrashTest.conf and change the paths to match your environment.
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    10
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    11
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
    12
http://hg.mozilla.org/users/tmielczarek_mozilla.com/minidump-stackwalk
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    13
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    14
Full compilation instructions:
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    15
$ svn co http://google-breakpad.googlecode.com/svn google-breakpad
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
$ mkdir obj-breakpad
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
$ cd obj-breakpad
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
$ ../google-breakpad/configure && make
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    19
$ cd ../
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    20
$ 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
    21
$ cd minidump-stackwalk
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    22
$ patch -p1 <<EOF                                                                                                                                                                               1 ↵
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    23
diff --git a/stackwalker.cc b/stackwalker.cc
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    24
--- a/stackwalker.cc
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    25
+++ b/stackwalker.cc
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    26
@@ -250,12 +250,6 @@
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    27
   case google_breakpad::PROCESS_ERROR_DUPLICATE_REQUESTING_THREADS:
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    28
     str = "ERROR_DUPLICATE_REQUESTING_THREADS";
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    29
     break;
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    30
-  case google_breakpad::PROCESS_ERROR_NO_MEMORY_FOR_THREAD:
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    31
-    str = "ERROR_NO_MEMORY_FOR_THREAD";
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    32
-    break;
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    33
-  case google_breakpad::PROCESS_ERROR_NO_STACKWALKER_FOR_THREAD:
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    34
-    str = "ERROR_NO_STACKWALKER_FOR_THREAD";
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    35
-    break;
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    36
   case google_breakpad::PROCESS_SYMBOL_SUPPLIER_INTERRUPTED:
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    37
     str = "SYMBOL_SUPPLIER_INTERRUPTED";
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    38
     break;
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    39
EOF
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    40
$ make
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    41
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    42
Copy stackwalker to the path configured in CrashTest.conf.
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    43
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    44
No, you can test:
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    45
./CrashTest.pl daemon
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    46
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    47
The submit URL is /submit and is compatible with socorro.
b5d8f0f977aa Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    48