Commit d02c47a
authored
[DevASAN][DevMSAN] Use abort instead of exit when in error (#19085)
When we try to exit the problem when reporting the error, the `exit(1)`
could cause hangs in SYCL runtime because it skips some processes before
the SYCL shutdown process in atexit stage. The `abort()` is more
accurate here because it would stop the whole process right away, and no
more SYCL shutdown process with the unstable, early exited program.1 parent fb071ab commit d02c47a
File tree
2 files changed
+2
-2
lines changed- unified-runtime/source/loader/layers/sanitizer
- asan
- msan
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
0 commit comments