This is an archive of the discontinued LLVM Phabricator instance.

tsan: remember and print function that installed at_exit callbacks
ClosedPublic

Authored by dvyukov on Nov 25 2021, 10:49 AM.

Details

Summary

Sometimes stacks for at_exit callbacks don't include any of the user functions/files.
For example, a race with a global std container destructor will only contain
the container type name and our at_exit_wrapper function. No signs what global variable
this is.
Remember and include in reports the function that installed the at_exit callback.
This should give glues as to what variable is being destroyed.

Depends on D114606.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Nov 25 2021, 10:49 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2021, 10:49 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Nov 25 2021, 11:06 AM
This revision is now accepted and ready to land.Nov 25 2021, 11:06 AM
vitalybuka accepted this revision.Nov 25 2021, 11:40 AM
This revision was landed with ongoing or failed builds.Nov 25 2021, 11:01 PM
This revision was automatically updated to reflect the committed changes.