This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Descriptive Fuchsia errors
ClosedPublic

Authored by Caslyn on Apr 16 2023, 12:43 PM.

Details

Reviewers
fabio-d
Summary

dieOnError in fuchsia.cpp takes the syscall name, status code, and
relevant size parameter to describe what failed, the reason, and size
context. Several different Fuchsia syscalls can fail underlying Scudo's
map operation and gets hidden if using dieOnMapUnmapError.

The reason for this change is to provide an error status code and more
helpful information to debug failures.

Diff Detail

Event Timeline

Caslyn created this revision.Apr 16 2023, 12:43 PM
Caslyn requested review of this revision.Apr 16 2023, 12:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2023, 12:43 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
fabio-d accepted this revision.Apr 17 2023, 9:30 AM
This revision is now accepted and ready to land.Apr 17 2023, 9:30 AM
Caslyn retitled this revision from [scudo] Descriptive Fucshia errors to [scudo] Descriptive Fuchsia errors.Apr 17 2023, 11:00 AM
Caslyn closed this revision.Apr 17 2023, 11:46 AM

Apologies, my local git checkout diverged from the phabricator revision and this patch was merged under https://reviews.llvm.org/rGced95a5765f5743761e72685ecc944dde990305a. Unfortunately the "Fuchsia" typo in the title was not fixed under that revision, but otherwise the merged content is equal. Moving forward with closing this.