Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(117)

Issue 259001: Use a MinidumpCallback to force include memory around instruction pointer (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by Ted Mielczarek
Modified:
13 years, 10 months ago
Reviewers:
Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Visibility:
Public.

Description

We noticed that some of our Windows minidumps were missing the memory around the
faulting instruction pointer. We finally realized that it was only happening on
dumps from Windows XP. Some testing revealed that the older version of
DbgHelp.dll on WinXP doesn't appear to implement this correctly. (It includes a
memory window around the instruction pointer on the crashing thread, but it uses
the actual IP at the top of the stack, which is inside KiFastSystemCallRet,
instead of using the IP from the EXCEPTION_POINTERS context.) Using a
MinidumpCallback, this patch forces the correct window of memory to be included.
I tested that these tests pass both on Windows 7 (where they passed without my
changes anyway, but still pass with my changes) as well as on Windows XP.

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/windows/handler/exception_handler.cc View 3 chunks +97 lines, -1 line 5 comments Download
M src/client/windows/handler/exception_handler.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/client/windows/unittests/exception_handler_death_test.cc View 3 chunks +316 lines, -2 lines 2 comments Download

Messages

Total messages: 5
Ted Mielczarek
13 years, 10 months ago #1
Mark Mentovai
I didn’t really read the test, but I’m glad that you included it. http://breakpad.appspot.com/259001/diff/1/2 File ...
13 years, 10 months ago #2
Ted Mielczarek
Was this LGO? http://breakpad.appspot.com/259001/diff/1/2 File src/client/windows/handler/exception_handler.cc (right): http://breakpad.appspot.com/259001/diff/1/2#newcode774 Line 774: // callback will ensure that ...
13 years, 10 months ago #3
Mark Mentovai
Yes, this was LGO (although in the absence of a response from me, the prudent ...
13 years, 10 months ago #4
Ted Mielczarek
13 years, 10 months ago #5
On 2011/01/25 17:30:20, Mark Mentovai wrote:
> Yes, this was LGO (although in the absence of a response from me, the prudent
> thing would have been to upload a fresh snapshot and let me know it was ready
> for another look.)

Sorry, that would have been the sensible thing to do.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted