[all-commits] [llvm/llvm-project] 0f9bfe: [Sanitizers][Atos] Remove null-ing of atos process...
thetruestblue via All-commits
all-commits at lists.llvm.org
Fri Apr 7 14:56:50 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f9bfe0a02ffff077a1a98065069b52744e31723
https://github.com/llvm/llvm-project/commit/0f9bfe0a02ffff077a1a98065069b52744e31723
Author: Blue Gaston <bblueconway at gmail.com>
Date: 2023-04-07 (Fri, 07 Apr 2023)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_mac.cpp
A compiler-rt/test/sanitizer_common/TestCases/Darwin/atos-symbolized-recover.cpp
Log Message:
-----------
[Sanitizers][Atos] Remove null-ing of atos process pointer
Currently, when we send an address to atos to be symbolized, it is
expected that atos returns with more than it was sent, i.e. symbol
information for that address. In the case where only the address is
returned, we currently null the pointer to the atos process. Typically,
for modules where no symbolication is expected, we do not send the
address to atos.
However, in new simulators there is an early call that atos does not
return any symbol information for. And in this case, because we have
gotten rid of the pointer to the process, no subsequent frames are
symbolicated, even tho atos is still working/running.
This patch removes the nulling of the pointer to the process. This
allows subsequent calls to atos even after an unexpected result.
It also now Reports what has happened and the address this occurred.
This will improve symbolication in cases where we get an unepxected
result, and will make it easier to diagnose atos if it is not
symbolicating as expected.
Filed a radar about the change of behavior 107621524
rdar://107169715
Differential Revision: https://reviews.llvm.org/D147725
More information about the All-commits
mailing list