[PATCH] D118633: [Symbolizer] Add Build ID flag to llvm-symbolizer.
Daniel Thornburgh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 16:33:10 PST 2022
mysterymath added inline comments.
================
Comment at: llvm/lib/DebugInfo/Symbolize/Symbolize.cpp:439
+ // Record that an error occurred.
+ recordPath("");
return false;
----------------
phosek wrote:
> IIUC this slightly changes the semantics. Currently, even if we failed to download a file (for example because of the intermittent network error), we would try again on then next symbolization request. With this change, we would cache the error result (that is, an empty string) after the first attempt and never retry. Maybe it would be better to drop this line to preserve the current semantics?
This is slightly tricky: we should retry the network request if it failed previously, but we probably shouldn't spam the console with repeated error messages for the build ID, since that differs from the way errors work for paths (one per path).
I've tried to keep the error behavior while still retrying the lookup under the hood. If a retry succeeds, the data becomes available for all future symbolization request; otherwise, the error is silenced.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118633/new/
https://reviews.llvm.org/D118633
More information about the llvm-commits
mailing list