This is an archive of the discontinued LLVM Phabricator instance.

[asan] Bail out on stack overflow in recovery mode.
ClosedPublic

Authored by m.ostapenko on May 5 2016, 2:17 AM.

Details

Summary

In recovery mode, when ASan detects stack overflow (say, when infinite recursion detected), it tries to continue program execution and hangs on repetitive error reports. There isn't any sense to do it, we can just bail out on stack overflow error, because the program would crash soon anyway.

Diff Detail

Repository
rL LLVM

Event Timeline

m.ostapenko updated this revision to Diff 56247.May 5 2016, 2:17 AM
m.ostapenko retitled this revision from to [asan] Bail out on stack overflow in recovery mode..
m.ostapenko updated this object.
m.ostapenko added reviewers: kcc, samsonov, dvyukov.
m.ostapenko set the repository for this revision to rL LLVM.
m.ostapenko added subscribers: llvm-commits, ygribov.

This may need a test.

m.ostapenko updated this revision to Diff 56290.May 5 2016, 7:54 AM

Add a testcase. Looks better now?

kcc accepted this revision.May 5 2016, 10:34 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 5 2016, 10:34 AM
This revision was automatically updated to reflect the committed changes.