Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 1360863006: win: Add more memory regions to gathering of PEB (Closed)

Created:
5 years, 3 months ago by scottmg
Modified:
5 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@save-peb
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: Add more memory regions to gathering of PEB Previously: 0:000> !peb PEB at 7f374000 InheritedAddressSpace: No ReadImageFileExecOptions: No BeingDebugged: No ImageBaseAddress: 01380000 Ldr 77ec8b40 *** unable to read Ldr table at 77ec8b40 SubSystemData: 00000000 ProcessHeap: 00740000 ProcessParameters: 007414e0 CurrentDirectory: '< Name not readable >' WindowTitle: '< Name not readable >' ImageFile: '< Name not readable >' CommandLine: '< Name not readable >' DllPath: '< Name not readable >' Environment: 00000000 Unable to read Environment string. Now: 0:000> !peb PEB at 7f494000 InheritedAddressSpace: No ReadImageFileExecOptions: No BeingDebugged: No ImageBaseAddress: 00ef0000 Ldr 77ec8b40 Ldr.Initialized: Yes Ldr.InInitializationOrderModuleList: 01042b68 . 01043c68 Ldr.InLoadOrderModuleList: 01042c38 . 01043c58 Ldr.InMemoryOrderModuleList: 01042c40 . 01043c60 Base TimeStamp Module ef0000 5609bd17 Sep 28 15:20:07 2015 d:\src\crashpad\crashpad\out\debug\crashy_program.exe 77dc0000 55c599e1 Aug 07 22:55:45 2015 C:\Windows\SYSTEM32\ntdll.dll 758e0000 559f3b21 Jul 09 20:25:21 2015 C:\Windows\SYSTEM32\KERNEL32.DLL 76850000 559f3b2a Jul 09 20:25:30 2015 C:\Windows\SYSTEM32\KERNELBASE.dll SubSystemData: 00000000 ProcessHeap: 01040000 ProcessParameters: 01041520 CurrentDirectory: 'd:\src\crashpad\crashpad\' WindowTitle: 'out\debug\crashy_program.exe \\.\pipe\stuff' ImageFile: 'd:\src\crashpad\crashpad\out\debug\crashy_program.exe' CommandLine: 'out\debug\crashy_program.exe \\.\pipe\stuff' DllPath: '< Name not readable >' Environment: 010405c8 =D:=d:\src\crashpad\crashpad =ExitCode=C0000005 ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\scott\AppData\Roaming CommonProgramFiles=C:\Program Files (x86)\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files ... R=mark@chromium.org BUG=crashpad:46 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/23ab86bc19d0b86d70ccb2a3051090177b90c89c

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Total comments: 12

Patch Set 4 : fixes #

Total comments: 4

Patch Set 5 : determine size of envblock #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : fancier peb reading #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 10

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : rebase #

Total comments: 15

Patch Set 15 : . #

Patch Set 16 : . #

Total comments: 2

Patch Set 17 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -6 lines) Patch
M snapshot/win/process_reader_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -0 lines 0 comments Download
M snapshot/win/process_reader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +39 lines, -0 lines 0 comments Download
M snapshot/win/process_snapshot_win.h View 1 2 3 4 5 6 2 chunks +24 lines, -1 line 0 comments Download
M snapshot/win/process_snapshot_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +175 lines, -5 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (0 generated)
scottmg
5 years, 2 months ago (2015-09-25 20:55:26 UTC) #1
Mark Mentovai
https://codereview.chromium.org/1360863006/diff/40001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/40001/snapshot/win/process_snapshot_win.cc#newcode245 snapshot/win/process_snapshot_win.cc:245: CreateMemorySnapshotForUNICODE_STRING(process_parameters.DllPath)); The “now” section of the CL description seems ...
5 years, 2 months ago (2015-09-25 21:10:17 UTC) #2
scottmg
Thanks https://codereview.chromium.org/1360863006/diff/40001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/40001/snapshot/win/process_snapshot_win.cc#newcode245 snapshot/win/process_snapshot_win.cc:245: CreateMemorySnapshotForUNICODE_STRING(process_parameters.DllPath)); On 2015/09/25 21:10:16, Mark Mentovai - August ...
5 years, 2 months ago (2015-09-25 22:52:25 UTC) #3
Mark Mentovai
LGTM. This is great! I don’t know if MiniDumpWriteDump() even collects all of this stuff ...
5 years, 2 months ago (2015-09-25 23:11:59 UTC) #4
scottmg
I added the environment end-probe, which made me realize that I was getting lucky on ...
5 years, 2 months ago (2015-09-26 00:07:38 UTC) #5
Mark Mentovai
We’ll definitely want to figure out coalescing. Something’s going to get upset if there are ...
5 years, 2 months ago (2015-09-26 01:46:49 UTC) #6
Mark Mentovai
I don’t mean to figure out coalescing now, just that we’ll need it soon as ...
5 years, 2 months ago (2015-09-26 01:47:21 UTC) #7
scottmg
Needs another look after adding the LDR reading. https://codereview.chromium.org/1360863006/diff/80001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/80001/snapshot/win/process_snapshot_win.cc#newcode286 snapshot/win/process_snapshot_win.cc:286: env_block_size ...
5 years, 2 months ago (2015-09-28 22:38:09 UTC) #8
Mark Mentovai
https://codereview.chromium.org/1360863006/diff/160001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/160001/snapshot/win/process_snapshot_win.cc#newcode240 snapshot/win/process_snapshot_win.cc:240: return; Don’t bail out here. You still might be ...
5 years, 2 months ago (2015-09-29 21:57:11 UTC) #9
scottmg
https://codereview.chromium.org/1360863006/diff/160001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/160001/snapshot/win/process_snapshot_win.cc#newcode240 snapshot/win/process_snapshot_win.cc:240: return; On 2015/09/29 21:57:11, Mark Mentovai - August is ...
5 years, 2 months ago (2015-09-30 18:19:41 UTC) #10
Mark Mentovai
The possible duplicate Ldr string data is the only truly concerning thing here. Otherwise, this ...
5 years, 2 months ago (2015-10-01 19:05:47 UTC) #11
scottmg
Thanks! (Requires regions fix in https://codereview.chromium.org/1370063005/) https://codereview.chromium.org/1360863006/diff/160001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/160001/snapshot/win/process_snapshot_win.cc#newcode243 snapshot/win/process_snapshot_win.cc:243: // Walk the ...
5 years, 2 months ago (2015-10-01 20:17:01 UTC) #12
Mark Mentovai
LGTM https://codereview.chromium.org/1360863006/diff/250001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1360863006/diff/250001/snapshot/win/process_reader_win.cc#newcode239 snapshot/win/process_reader_win.cc:239: return 0; scottmg wrote: > On 2015/10/01 19:05:47, ...
5 years, 2 months ago (2015-10-01 22:00:52 UTC) #13
scottmg
Thanks. https://codereview.chromium.org/1360863006/diff/280001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1360863006/diff/280001/snapshot/win/process_snapshot_win.cc#newcode317 snapshot/win/process_snapshot_win.cc:317: for (const auto& ms : *into) { On ...
5 years, 2 months ago (2015-10-01 22:05:57 UTC) #14
Mark Mentovai
Cool. You receive the coveted “unqualified LGTM” now!
5 years, 2 months ago (2015-10-01 22:23:28 UTC) #15
scottmg
5 years, 2 months ago (2015-10-01 22:24:18 UTC) #16
Message was sent while issue was closed.
Committed patchset #17 (id:300001) manually as
23ab86bc19d0b86d70ccb2a3051090177b90c89c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698