breakpad/src/client/linux
Tobias Sargeant 833cadc0a1 Add API to skip dump if crashing thread doesn't reference a given module
This CL makes it possible to skip a dump if the crashing thread doesn't
have any pointers to a given module. The concrete use case is WebView
where we would like to skip generating microdump output when webview
is unreferenced by the stack and thus cannot be responsible for the
crash in a way that would be debuggable.

The range of interesting addresses is chosen by examining the process
mappings to find the one that contains a pointer that is known to be in
the right shared object (i.e. an appropriately chosen function pointer)
passed from the client.

If the extracted stack does not contain a pointer in this range, then we
do not generate a microdump. If the stack extraction fails, we still
generate a microdump (without a stack).

BUG=664460

Change-Id: If19406a13168264f7751245fc39591bd6cdbf5df
Reviewed-on: https://chromium-review.googlesource.com/419476
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Primiano Tucci <primiano@chromium.org>
2017-01-18 15:41:07 +00:00
..
crash_generation crash_generation: fix bad call to close 2016-12-09 15:56:26 +00:00
data The symbol files necessary for the processor to walk stacks on Linux that have __kernel_vsyscall at innermost frame. Special symbol files ar eneeded because EBP does not point to the frame when a thread is inside a system call. 2009-06-25 21:36:39 +00:00
dump_writer_common Add API to skip dump if crashing thread doesn't reference a given module 2017-01-18 15:41:07 +00:00
handler Add API to skip dump if crashing thread doesn't reference a given module 2017-01-18 15:41:07 +00:00
log [microdump] Move microdump writes to the crash ring-buffer log 2015-08-17 10:32:26 +00:00
microdump_writer Add API to skip dump if crashing thread doesn't reference a given module 2017-01-18 15:41:07 +00:00
minidump_writer Add API to skip dump if crashing thread doesn't reference a given module 2017-01-18 15:41:07 +00:00
sender GoogleCrashdumpUploader: adds Upload(string*) API to get the HTTP response. 2014-09-18 16:48:49 +00:00