[Logging] Hint of use-after-free indicating error in POSIX's LockImpl.
Error 22 (EINVAL) is often associated with use-after-frees. I've seen multiple developers independently spending cycles figuring this out. Add a hint for everyone once and for all in POSIX's LockImpl Issues where this may be useful: https://bugs.chromium.org/p/chromium/issues/list?q=%22Check+failed%3A+rv+%3D%3D+0+(22+vs.+0)%22 Sadly I couldn't find a way to test this. I tried to write a death test on a manual use-after-free but the error is unreliable. R=dcheng@chromium.org Bug: 818163 Change-Id: I2f9a3aeadebd8bd7b32e2a28d1ba4b801efed9ff Reviewed-on: https://chromium-review.googlesource.com/1040586Reviewed-by:Daniel Cheng <dcheng@chromium.org> Commit-Queue: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#556593}
Showing
Please register or sign in to comment