OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Scape errors from the valgrind bots, reproduce them locally, | 2 # Scape errors from the valgrind bots, reproduce them locally, |
3 # save logs as regrind-TESTNAME.log, and display any errors found. | 3 # save logs as regrind-TESTNAME.log, and display any errors found. |
4 # Also save files regrind-failed.txt listing failed tests, | 4 # Also save files regrind-failed.txt listing failed tests, |
5 # and regrind-failed-map.txt showing which bot URLs have which failed tests | 5 # and regrind-failed-map.txt showing which bot URLs have which failed tests |
6 # (handy when filing bugs). | 6 # (handy when filing bugs). |
7 # | 7 # |
8 # Only scrapes linux layout bot at the moment. | 8 # Only scrapes linux layout bot at the moment. |
9 # TODO: handle layout tests that don't have obvious path to test file | 9 # TODO: handle layout tests that don't have obvious path to test file |
10 # TODO: extend script to handle more kinds of errors and more tests | 10 # TODO: extend script to handle more kinds of errors and more tests |
11 | 11 |
12 # where the valgrind layout bot results live | 12 # where the valgrind layout bot results live |
13 LAYOUT_URL="http://build.chromium.org/buildbot/waterfall/builders/Webkit%20Linux
%20(valgrind%20layout)" | 13 LAYOUT_URL="http://build.chromium.org/p/chromium.memory/builders/Webkit%20Linux%
20(valgrind%20layout)" |
14 # how many builds back to check | 14 # how many builds back to check |
15 LAYOUT_COUNT=250 | 15 LAYOUT_COUNT=250 |
16 | 16 |
17 # regexp to match valgrind errors | 17 # regexp to match valgrind errors |
18 PATTERN="are definitely|uninitialised|Unhandled exception|\ | 18 PATTERN="are definitely|uninitialised|Unhandled exception|\ |
19 Invalid read|Invalid write|Invalid free|Source and desti|Mismatched free|\ | 19 Invalid read|Invalid write|Invalid free|Source and desti|Mismatched free|\ |
20 unaddressable byte|vex x86|the 'impossible' happened|\ | 20 unaddressable byte|vex x86|the 'impossible' happened|\ |
21 valgrind:.*: Assertion.*failed|VALGRIND INTERNAL ERROR" | 21 valgrind:.*: Assertion.*failed|VALGRIND INTERNAL ERROR" |
22 | 22 |
23 usage() { | 23 usage() { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 if test $do_repro = 1 | 124 if test $do_repro = 1 |
125 then | 125 then |
126 repro_layout | 126 repro_layout |
127 fi | 127 fi |
128 | 128 |
129 if test $do_cleanup = 1 | 129 if test $do_cleanup = 1 |
130 then | 130 then |
131 rm -f regrind-errfiles.txt regrind-*.tmp* | 131 rm -f regrind-errfiles.txt regrind-*.tmp* |
132 fi | 132 fi |
OLD | NEW |