While debugging ASan and TSan, I sometimes get a recursion during a failed CHECK processing. CheckFailed can call a lot of code (printing, unwinding a stack trace, symbolicating, ...) and this can fail another CHECK. This means I sometimes see a crash due to a infinite recursion stack overflow. Let's stop after 10 failed CHECKs and just kill the process immediately. I also added a Sleep(2) call before the trap, so that other threads still get a chance to print their failed CHECKs.
Details
Details
- Reviewers
kcc glider dvyukov samsonov aizatsky - Commits
- rGe0c82567811e: [sanitizer] Break infinite recursion in case of recursive failed CHECKs
rCRT269288: [sanitizer] Break infinite recursion in case of recursive failed CHECKs
rL269288: [sanitizer] Break infinite recursion in case of recursive failed CHECKs
Diff Detail
Diff Detail
- Repository
- rL LLVM