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

Issue 1364803004: win: Save contents of TEBs allowing !teb and !gle to work in windbg (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@dump-without-crashing
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: Save contents of TEBs allowing !teb and !gle to work in windbg crashy_program's log looks something like this now: 0:000> .ecxr eax=00000007 ebx=7f24e000 ecx=7f24d000 edx=00000000 esi=00497ec8 edi=00d39ca0 eip=00cf5d12 esp=001ffcd8 ebp=001ffcdc iopl=0 nv up ei ng nz ac po cy cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010293 crashy_program+0x5d12: 00cf5d12 ?? ??? 0:000> !teb TEB at 7f24d000 ExceptionList: 001ff548 StackBase: 00200000 StackLimit: 001fd000 SubSystemTib: 00000000 FiberData: 00001e00 ArbitraryUserPointer: 00000000 Self: 7f24d000 EnvironmentPointer: 00000000 ClientId: 00003658 . 00004630 RpcHandle: 00000000 Tls Storage: 7f24d02c PEB Address: 7f24e000 LastErrorValue: 2 LastStatusValue: c000000f Count Owned Locks: 0 HardErrorMode: 0 0:000> !gle LastErrorValue: (Win32) 0x2 (2) - The system cannot find the file specified. LastStatusValue: (NTSTATUS) 0xc000000f - {File Not Found} The file %hs does not exist. R=mark@chromium.org BUG=crashpad:46 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/ecf3b37863367acfca2dcbae14a26e965d713e84

Patch Set 1 #

Patch Set 2 : induce gle #

Patch Set 3 : test #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 12

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : rebase #

Total comments: 10

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -16 lines) Patch
M handler/win/crashy_test_program.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -1 line 0 comments Download
M minidump/minidump_thread_writer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M minidump/minidump_thread_writer_test.cc View 1 2 3 4 5 6 7 9 chunks +31 lines, -2 lines 0 comments Download
M snapshot/test/test_process_snapshot.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M snapshot/test/test_thread_snapshot.h View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M snapshot/test/test_thread_snapshot.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M snapshot/thread_snapshot.h View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M snapshot/win/process_reader_win.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M snapshot/win/process_reader_win.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -5 lines 0 comments Download
M snapshot/win/thread_snapshot_win.h View 1 2 3 4 4 chunks +5 lines, -0 lines 0 comments Download
M snapshot/win/thread_snapshot_win.cc View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -2 lines 0 comments Download
M util/win/process_structs.h View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scottmg
5 years, 2 months ago (2015-09-29 18:42:56 UTC) #2
Mark Mentovai
Busted pointers and unreadable pages in the map are as much of a concern here ...
5 years, 2 months ago (2015-09-29 22:14:04 UTC) #3
scottmg
Thanks. I didn't take any action on the "busted pointers" problem here -- a process ...
5 years, 2 months ago (2015-09-30 18:54:11 UTC) #4
Mark Mentovai
LGTM https://codereview.chromium.org/1364803004/diff/180001/handler/win/crashy_test_program.cc File handler/win/crashy_test_program.cc (right): https://codereview.chromium.org/1364803004/diff/180001/handler/win/crashy_test_program.cc#newcode20 handler/win/crashy_test_program.cc:20: #define STATUS_NO_SUCH_FILE 0xC000000F <ntstatus.h> uses ((NTSTATUS)0xC000000FL). We should ...
5 years, 2 months ago (2015-10-01 20:28:06 UTC) #5
scottmg
https://codereview.chromium.org/1364803004/diff/180001/handler/win/crashy_test_program.cc File handler/win/crashy_test_program.cc (right): https://codereview.chromium.org/1364803004/diff/180001/handler/win/crashy_test_program.cc#newcode20 handler/win/crashy_test_program.cc:20: #define STATUS_NO_SUCH_FILE 0xC000000F On 2015/10/01 20:28:05, Mark Mentovai wrote: ...
5 years, 2 months ago (2015-10-01 21:01:07 UTC) #6
scottmg
5 years, 2 months ago (2015-10-01 21:04:55 UTC) #7
Message was sent while issue was closed.
Committed patchset #10 (id:200001) manually as
ecf3b37863367acfca2dcbae14a26e965d713e84 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698