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

Issue 514002: Off by one error in EIP/RIP addresses on x86/x64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by bruce.dawson
Modified:
11 years, 1 month ago
Reviewers:
jimb, jimb
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Off by one error in EIP/RIP addresses on x86/x64

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changes tabs to spaces and now uses virtual functions to abstract details #

Total comments: 7

Patch Set 3 : Removing redundant comments and replacing checks with assert() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/google_breakpad/processor/stack_frame.h View 1 2 1 chunk +7 lines, -0 lines 1 comment Download
M src/google_breakpad/processor/stack_frame_cpu.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M src/processor/minidump_stackwalk.cc View 1 2 6 chunks +12 lines, -8 lines 0 comments Download
M src/processor/stackwalker_amd64.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M src/processor/stackwalker_x86.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M src/processor/testdata/minidump2.stackwalk.machine_readable.out View 1 chunk +3 lines, -3 lines 0 comments Download
M src/processor/testdata/minidump2.stackwalk.out View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9
bruce.dawson
In StackwalkerX86::GetCallerFrame() an offset of minus one is applied to EIP in order to make ...
11 years, 3 months ago #1
jimb
Thanks for catching this! I think your diagnosis of the problem is right on the ...
11 years, 3 months ago #2
bruce.dawson
Oops -- some tabs snuck in. I've fixed those in my copy. I'll look into ...
11 years, 3 months ago #3
bruce.dawson
I updated it to use a virtual function -- that does clean things up a ...
11 years, 3 months ago #4
jimb
This looks great! I had some thoughts about the comments, and a suggestion for the ...
11 years, 3 months ago #5
bruce.dawson
Yep, those all make sense and were inline with my inclinations. I just posted an ...
11 years, 3 months ago #6
jimb
"Looks Good To Me". http://breakpad.appspot.com/514002/diff/13001/src/google_breakpad/processor/stack_frame.h File src/google_breakpad/processor/stack_frame.h (right): http://breakpad.appspot.com/514002/diff/13001/src/google_breakpad/processor/stack_frame.h#newcode91 src/google_breakpad/processor/stack_frame.h:91: virtual u_int64_t ReturnAddress() const { ...
11 years, 3 months ago #7
jimb
Landed as r1105.
11 years, 3 months ago #8
bruce.dawson
11 years, 3 months ago #9
Thanks Jim.


On Tue, Jan 22, 2013 at 2:38 PM, <jimblandy@gmail.com> wrote:

> Landed as r1105.
>
> http://breakpad.appspot.com/**514002/<http://breakpad.appspot.com/514002/>
>
Sign in to reply to this message.

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