OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca27be7
)
Log the process memory maps on host SIGSEGV.
author
Hiroshi Yamauchi
<yamauchi@google.com>
Sat, 23 May 2015 01:15:10 +0000
(18:15 -0700)
committer
Hiroshi Yamauchi
<yamauchi@google.com>
Sat, 23 May 2015 01:15:10 +0000
(18:15 -0700)
Bug:
19894268
Change-Id: Ib35f858de2519e24422a2ed19c68cfbdfd4173b3
runtime/runtime_linux.cc
patch
|
blob
|
history
diff --git
a/runtime/runtime_linux.cc
b/runtime/runtime_linux.cc
index
d65e18e
..
f0b3c4e
100644
(file)
--- a/
runtime/runtime_linux.cc
+++ b/
runtime/runtime_linux.cc
@@
-340,6
+340,9
@@
void HandleUnexpectedSignal(int signal_number, siginfo_t* info, void* raw_contex
<< "Thread: " << tid << " \"" << thread_name << "\"\n"
<< "Registers:\n" << Dumpable<UContext>(thread_context) << "\n"
<< "Backtrace:\n" << Dumpable<Backtrace>(thread_backtrace);
+ if (kIsDebugBuild && signal_number == SIGSEGV) {
+ PrintFileToLog("/proc/self/maps", LogSeverity::INTERNAL_FATAL);
+ }
Runtime* runtime = Runtime::Current();
if (runtime != nullptr) {
if (IsTimeoutSignal(signal_number)) {