This is an archive of the discontinued LLVM Phabricator instance.

tsan: don't pass bogus PCs to __tsan_symbolize_external
ClosedPublic

Authored by dvyukov on Aug 24 2017, 6:51 AM.

Details

Summary

See the added comment for an explanation.

Diff Detail

Event Timeline

dvyukov created this revision.Aug 24 2017, 6:51 AM

I am open to suggestions. This is total mess.

vitalybuka edited edge metadata.Aug 24 2017, 11:00 AM

Definitely looks weird, but I have no better idea.
So just couple of nits

lib/tsan/rtl/tsan_rtl_report.cc
638

Could this be just > INT64_MAX

test/tsan/double_race.cc
17

misaligned

19

same

alekseyshl accepted this revision.Aug 24 2017, 5:10 PM

Have no better ideas either.

This revision is now accepted and ready to land.Aug 24 2017, 5:10 PM
dvyukov updated this revision to Diff 112664.Aug 25 2017, 1:51 AM
dvyukov marked 2 inline comments as done.
dvyukov added inline comments.
lib/tsan/rtl/tsan_rtl_report.cc
638

This is 61, not 63, so INT64_MAX won't do.
I've added a constant for this. It was duplicated in multiple places.

Submitted in 311768.

dvyukov closed this revision.Aug 25 2017, 1:53 AM