summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2015-12-08 18:14:44 -0800
committerTodd Poynor <toddpoynor@google.com>2015-12-09 13:32:37 -0800
commit2862a7843dbec433c78febaed5c4c6c64500078b (patch)
tree34603d1f3a971746802aafdf231b491246f363c2 /base/errors_unix.cpp
parentdf13f60ce0152bc9a38e18fcb9c7c839d8eba5e3 (diff)
metricsd binder: Abort if fail to register service
Assert abort metricsd if binder service registration fails. If the addService() call fails (for reasons that at least include an SELinux policy denial), the call to joinThreadPool() apparently processes a stale pending weak dereference that triggers an abort on a probable double-free: F libc : Invalid address 0xbe8bfa30 passed to free: value not allocated F libc : Fatal signal 6 (SIGABRT), code -6 in tid 609 (metricsd) Since metricsd is severely hobbled if registration fails, abort and see if things work better the next time. If not, the crash loop will hopefully attract attention to the problem. Change-Id: I520d0eafb9cb25ee225d589bfd87df4e51f6b181
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions