platform_system_core/debuggerd
Christopher Ferris 0c572d01af Fix race condition updating local map data.
If the underlying local map changes, it's possible for multiple
threads to try and modify the map data associated with the UnwindLocalMap
object. Add a lock when generating the local map to avoid this problem.

In addition, add a read lock whenever any caller gets the maps iterator.
Updated all iterator callers to make this lock.

Bug: 29387050
Bug: 31067025

(cherry picked from commit 3a14004c7f)

Change-Id: Id00116f156a24b36085c0d5dfc3dde4d2ac55194
2016-08-25 15:01:53 -07:00
..
arm Replace all _LOG error calls with ALOGE. 2015-07-01 13:23:19 -07:00
arm64 Replace all _LOG error calls with ALOGE. 2015-07-01 13:23:19 -07:00
mips Replace all _LOG error calls with ALOGE. 2015-07-01 13:23:19 -07:00
mips64 Replace all _LOG error calls with ALOGE. 2015-07-01 13:23:19 -07:00
test Fix problem with wait_for_gdb. 2016-05-04 17:42:30 -07:00
x86 Replace all _LOG error calls with ALOGE. 2015-07-01 13:23:19 -07:00
x86_64 Replace all _LOG error calls with ALOGE. 2015-07-01 13:23:19 -07:00
.clang-format debuggerd: add .clang-format. 2015-11-16 17:26:22 -08:00
Android.mk debuggerd: fork the signal sender once. 2016-03-17 13:11:05 -07:00
backtrace.cpp Fix problem with wait_for_gdb. 2016-05-04 17:42:30 -07:00
backtrace.h Fix problem with wait_for_gdb. 2016-05-04 17:42:30 -07:00
crasher.c Fix build break due to unknown pragma (on gcc). 2015-09-30 23:30:38 -07:00
debuggerd.cpp debuggerd: verify that traced threads belong to the right process. 2016-07-13 16:49:02 -07:00
debuggerd.rc Start debuggerd as soon as logd is up. 2016-02-02 13:03:41 -08:00
debuggerd64.rc Start debuggerd as soon as logd is up. 2016-02-02 13:03:41 -08:00
elf_utils.cpp Merge "Track rename of base/ to android-base/." am: 912ed3d8ca 2015-12-07 23:36:59 +00:00
elf_utils.h Print the build id of shared libraries if present. 2015-03-17 15:13:35 -07:00
getevent.cpp Next phase of the move, reformat use C++ features. 2014-01-13 14:21:52 -08:00
getevent.h Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -07:00
machine.h Refactor dump_memory function. 2015-05-28 11:45:34 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
signal_sender.cpp debuggerd: set the name of the signal sender. 2016-03-30 14:22:41 -07:00
signal_sender.h debuggerd: fork the signal sender once. 2016-03-17 13:11:05 -07:00
tombstone.cpp Fix race condition updating local map data. 2016-08-25 15:01:53 -07:00
tombstone.h Fix problem with wait_for_gdb. 2016-05-04 17:42:30 -07:00
utility.cpp Fix problem with wait_for_gdb. 2016-05-04 17:42:30 -07:00
utility.h Fix problem with wait_for_gdb. 2016-05-04 17:42:30 -07:00