|
| 1 | +#!/bin/awk -f |
| 2 | + |
| 3 | +# Filter out stuff like the following, since it is expected output for the munmap01 testcase: |
| 4 | + |
| 5 | +# munmap01: unempty log2.filtered: |
| 6 | +# ==1980523== |
| 7 | +# ==1980523== Process terminating with default action of signal 11 (SIGSEGV): dumping core |
| 8 | +# ==1980523== Access not within mapped region at address 0x483F000 |
| 9 | +# ==1980523== at 0x401F9A: run (munmap01.c:46) |
| 10 | +# ==1980523== by 0x40D42F: fork_testrun.isra.0 (tst_test.c:1669) |
| 11 | +# ==1980523== by 0x40F894: tst_run_tcases (tst_test.c:2041) |
| 12 | +# ==1980523== by 0x401DCD: main (tst_test.h:738) |
| 13 | +# ==1980523== If you believe this happened as a result of a stack |
| 14 | +# ==1980523== overflow in your program's main thread (unlikely but |
| 15 | +# ==1980523== possible), you can try to increase the size of the |
| 16 | +# ==1980523== main thread stack using the --main-stacksize= flag. |
| 17 | +# ==1980523== The main thread stack size used in this run was 8388608. |
| 18 | +# ==1980540== |
| 19 | +# ==1980540== Process terminating with default action of signal 11 (SIGSEGV): dumping core |
| 20 | +# ==1980540== Access not within mapped region at address 0x4840000 |
| 21 | +# ==1980540== at 0x401F9A: run (munmap01.c:46) |
| 22 | +# ==1980540== by 0x40D42F: fork_testrun.isra.0 (tst_test.c:1669) |
| 23 | +# ==1980540== by 0x40F894: tst_run_tcases (tst_test.c:2041) |
| 24 | +# ==1980540== by 0x401DCD: main (tst_test.h:738) |
| 25 | +# ==1980540== If you believe this happened as a result of a stack |
| 26 | +# ==1980540== overflow in your program's main thread (unlikely but |
| 27 | +# ==1980540== possible), you can try to increase the size of the |
| 28 | +# ==1980540== main thread stack using the --main-stacksize= flag. |
| 29 | +# ==1980540== The main thread stack size used in this run was 8388608. |
| 30 | + |
| 31 | +skip = 0 |
| 32 | +/==[0-9][0-9]*==/ { skip = 1 } |
| 33 | +/Process terminating with default action of signal 11/ { skip = 1; skipblock=1 } |
| 34 | +/The main thread stack size used in this run was/ { skip = 1; skipblock=0 } |
| 35 | +!skip && !skipblock { print } |
0 commit comments