mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-04 13:44:33 +01:00
Allow processing dumps with missing stack memory for some threads
r=mkrebs at https://breakpad.appspot.com/413002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1077 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
66a21aad61
commit
fc6f700bb5
16 changed files with 412 additions and 92 deletions
|
|
@ -1354,15 +1354,15 @@ bool MinidumpThread::Read() {
|
|||
if (thread_.stack.memory.data_size == 0 ||
|
||||
thread_.stack.memory.data_size > numeric_limits<u_int64_t>::max() -
|
||||
thread_.stack.start_of_memory_range) {
|
||||
// This is ok, but log an error anyway.
|
||||
BPLOG(ERROR) << "MinidumpThread has a memory region problem, " <<
|
||||
HexString(thread_.stack.start_of_memory_range) << "+" <<
|
||||
HexString(thread_.stack.memory.data_size);
|
||||
return false;
|
||||
} else {
|
||||
memory_ = new MinidumpMemoryRegion(minidump_);
|
||||
memory_->SetDescriptor(&thread_.stack);
|
||||
}
|
||||
|
||||
memory_ = new MinidumpMemoryRegion(minidump_);
|
||||
memory_->SetDescriptor(&thread_.stack);
|
||||
|
||||
valid_ = true;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue