This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] State correct PC in first error message.
ClosedPublic

Authored by fmayer on Aug 5 2021, 9:25 AM.

Details

Summary

We would put the return address there, rather than the fault address.

Diff Detail

Event Timeline

fmayer created this revision.Aug 5 2021, 9:25 AM
fmayer published this revision for review.Aug 5 2021, 9:27 AM
fmayer added a reviewer: pcc.
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2021, 9:27 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
eugenis accepted this revision.Aug 9 2021, 4:20 PM
eugenis added a subscriber: eugenis.

LGTM

This revision is now accepted and ready to land.Aug 9 2021, 4:20 PM
This revision was landed with ongoing or failed builds.Aug 10 2021, 1:29 AM
This revision was automatically updated to reflect the committed changes.

@fmayer : It looks like your changes may be are causing test issues:

https://lab.llvm.org/buildbot/#/builders/37/builds/6011

Failed Tests (2):

HWAddressSanitizer-x86_64 :: TestCases/double-free.c
HWAddressSanitizer-x86_64 :: TestCases/use-after-free.c

Thanks