This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Summary should point to "responsible caller" for external races
Needs ReviewPublic

Authored by kubamracek on Apr 4 2017, 5:22 PM.

Details

Reviewers
dvyukov
Summary

For TSan "external" races, the bug is in the caller of the API, not the function itself. This patch makes sure that the "SUMMARY:" line of TSan reports print out the name of the responsible caller.

Diff Detail

Event Timeline

kubamracek created this revision.Apr 4 2017, 5:22 PM
dvyukov added inline comments.Apr 21 2017, 7:11 AM
lib/tsan/rtl/tsan_report.cc
384

This conflicts with D31630.
rep->typ == ReportTypeExternalRace can be, but this stack may not be an external access.
Let's first land D31630 and then get back to this.