[scudo] Descriptive Fucshia errors
authorCaslyn Tonelli <caslyn@google.com>
Sun, 16 Apr 2023 02:03:58 +0000 (02:03 +0000)
committerCaslyn Tonelli <caslyn@google.com>
Mon, 17 Apr 2023 17:38:06 +0000 (17:38 +0000)
commitced95a5765f5743761e72685ecc944dde990305a
tree773581a0bdcf44593b471ec4e32a2b7652d9e82b
parent67e6f5a7968f21f5db47dfa1d6b6f40715d8fe6e
[scudo] Descriptive Fucshia errors

`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.
compiler-rt/lib/scudo/standalone/fuchsia.cpp