This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 7f8370a
authored
Fix ASAN in combination with throw intrinsic (#10974)
* Fix ASAN in combination with throw intrinsic
Prior to this commit locally I would see a nondeterministic crash when
executing:
RUSTFLAGS=-Zsanitizer=address \
cargo +nightly run --release test filetests
The crash has a scary-looking internal assertion within the ASAN runtime
itself and local debugging seems to show that threads are required to
reproduce this and it's nondeterministic. I don't know why CI is
currently passing on all PRs when this is failing so frequently for
myself locally.
In any case it seems like there's a magical ASAN intrinsic to call
before `noreturn` things which I think is intended for thread-stopping
events which isn't a great fit for exceptions here but it seems to
resolve the crash.
Basically I have no idea why things crash locally, what this new
function does, nor why it fixes things. I am but a slave to the CI gods
in an attempt to make it so our CI is more reliable.
* Fix compile warning1 parent f4a9644 commit 7f8370a
2 files changed
Lines changed: 49 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
65 | 95 | | |
66 | 96 | | |
67 | 97 | | |
| |||
0 commit comments