This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Recognize frames coming from "libclang_rt.tsan_*" module as internal
ClosedPublic

Authored by kubamracek on Nov 19 2015, 2:15 AM.

Details

Summary

On OS X, we build a dylib of the TSan runtime, which doesn't necessarily need to contain debugging symbols (and file and line information), so llvm-symbolizer might not be able to find file names for TSan internal frames. FrameIsInternal currently only considers filenames, but we should simply treat all frames within libclang_rt.tsan_osx_dynamic.dylib as internal. This patch treats all modules starting with libclang_rt.tsan_ as internal, because there may be more runtimes for other platforms in the future.

Also, this fixes one test failure on OS X.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek updated this revision to Diff 40617.Nov 19 2015, 2:15 AM
kubamracek retitled this revision from to [tsan] Recognize frames coming from "libclang_rt.tsan_*" module as internal.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, kcc, glider, samsonov.
dvyukov edited edge metadata.Nov 19 2015, 2:20 AM

Is there a test that fails today?

Also, this fixes one test failure on OS X.

OK

dvyukov accepted this revision.Nov 19 2015, 2:21 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 19 2015, 2:21 AM
This revision was automatically updated to reflect the committed changes.