Commit 8ca0bcd
[sanitizer][test] Clean up allow_user_segv.cpp test case (llvm#163870)
This test case has two issues:
- it has some special treatment of SIGBUS, ostensibly to handle old
Darwin platforms, but this been silently broken for years because the
assertions only check for SEGV.
- it has `XFAIL: !compiler-rt-optimized && tsan` [*], because the null
pointer dereference will trigger an assertion (invalid app memory)
rather than a segfault.
We fix both issues by directly raising SIGSEGV. We also considerably
simplify the test case, while maintaining the core test of chaining the
segfault handlers.
[*] This test might also fail when other sanitizer runtimes are compiled
with assertions, though those combinations are not well-tested by
buildbots.1 parent 6bd122a commit 8ca0bcd
File tree
1 file changed
+9
-17
lines changed- compiler-rt/test/sanitizer_common/TestCases/Linux
1 file changed
+9
-17
lines changedLines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 53 | | |
64 | 54 | | |
65 | 55 | | |
| |||
72 | 62 | | |
73 | 63 | | |
74 | 64 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 65 | + | |
79 | 66 | | |
80 | | - | |
81 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
| |||
0 commit comments