1 Web interface dependencies: |
1 Web interface dependencies: |
2 - perl >= 5.10 |
2 - perl >= 5.10 |
3 - Mojolicious >= 2.98 |
3 - Mojolicious >= 2.98 |
|
4 - Mojolicious::Plugin::BootstrapPagination |
4 - perl-UUID |
5 - perl-UUID |
5 - jquery |
6 - jquery |
6 |
7 |
7 On debian, install libuuid-perl and libmojolicious-perl (from wheezy, the version |
8 On debian, install libuuid-perl, libmojolicious-perl (from wheezy-backports) and libjs-jquery. |
8 from squeeze is too old), and libjs-jquery (from wheezy too). |
9 |
|
10 Mojolicious::Plugin::BootstrapPagination can be installed with cpan, or you |
|
11 can create a debian package with cpan2deb Mojolicious::Plugin::BootstrapPagination |
9 |
12 |
10 Edit CrashTest.conf and change the paths to match your environment. |
13 Edit CrashTest.conf and change the paths to match your environment. |
11 |
14 |
12 Next, you need to get and build the json branch of minidump-stackwalk from here: |
15 If you want to use the SQL backend for a faster index page, see dist.ini for |
13 http://hg.mozilla.org/users/tmielczarek_mozilla.com/minidump-stackwalk |
16 the additional requirements. Then, you can create the tables with : |
|
17 $ ./CrashTest.pl db create |
|
18 |
|
19 Next, you need to get and build the json minidump-stackwalk from soccoro: |
|
20 https://github.com/mozilla/socorro/tree/master/minidump-stackwalk/ |
14 |
21 |
15 Full compilation instructions: |
22 Full compilation instructions: |
16 $ svn co http://google-breakpad.googlecode.com/svn google-breakpad |
23 $ svn co http://google-breakpad.googlecode.com/svn/trunk google-breakpad |
17 $ mkdir obj-breakpad |
24 $ mkdir obj-breakpad |
18 $ cd obj-breakpad |
25 $ cd obj-breakpad |
19 $ ../google-breakpad/configure && make |
26 $ ../google-breakpad/configure && make |
20 $ cd ../ |
27 $ cd ../ |
21 $ hg clone http://hg.mozilla.org/users/tmielczarek_mozilla.com/minidump-stackwalk -b json |
28 $ mkdir minidump-stackwalk |
22 $ cd minidump-stackwalk |
29 $ cd minidump-stackwalk |
23 $ patch -p1 <<EOF |
30 $ wget https://github.com/mozilla/socorro/raw/master/minidump-stackwalk/{Makefile,stackwalker.cc} |
24 diff --git a/stackwalker.cc b/stackwalker.cc |
31 $ make BREAKPAD_SRCDIR=../google-breakpad/src BREAKPAD_LIBS="../obj-breakpad/src/libbreakpad.a ../obj-breakpad/src/third_party/libdisasm/libdisasm.a" OBJS=/usr/lib/libjsoncpp.a JSON_INCLUDEDIR=/usr/include/jsoncpp |
25 --- a/stackwalker.cc |
32 |
26 +++ b/stackwalker.cc |
33 Note: the paths above are for the system-installed libjsoncpp on debian. Get |
27 @@ -250,12 +250,6 @@ |
34 the jsoncpp from socorro repository, or adjust the paths for you system if you |
28 case google_breakpad::PROCESS_ERROR_DUPLICATE_REQUESTING_THREADS: |
35 use another distribution. |
29 str = "ERROR_DUPLICATE_REQUESTING_THREADS"; |
|
30 break; |
|
31 - case google_breakpad::PROCESS_ERROR_NO_MEMORY_FOR_THREAD: |
|
32 - str = "ERROR_NO_MEMORY_FOR_THREAD"; |
|
33 - break; |
|
34 - case google_breakpad::PROCESS_ERROR_NO_STACKWALKER_FOR_THREAD: |
|
35 - str = "ERROR_NO_STACKWALKER_FOR_THREAD"; |
|
36 - break; |
|
37 case google_breakpad::PROCESS_SYMBOL_SUPPLIER_INTERRUPTED: |
|
38 str = "SYMBOL_SUPPLIER_INTERRUPTED"; |
|
39 break; |
|
40 EOF |
|
41 $ make |
|
42 |
36 |
43 Copy stackwalker to the path configured in CrashTest.conf. |
37 Copy stackwalker to the path configured in CrashTest.conf. |
44 |
38 |
45 No, you can test: |
39 No, you can test: |
46 ./CrashTest.pl daemon |
40 $ hypnotoad -f ./CrashTest.pl |
47 |
41 |
48 The submit URL is /submit and is compatible with socorro. |
42 The submit URL is /submit and is compatible with socorro. |
49 |
43 |