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

Issue 494002: Wrong %ebp after skipping a frame for which the instruction pointer is not in a known module. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by Ivan Penkov
Modified:
11 years, 5 months ago
CC:
google-breakpad_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

When the calculated return address is not in a known module (which can happen
for dynamically generated code or for certain types of crashes), Breakpad scans
the stack for a "better" return address and if such an address is found, the
frame with the "invalid" instruction pointer is skipped.  This usually results
in skipped frames.  The problem is that when such frames are skipped register
%ebp is not properly redirected which frequently results in truncated callstacks
after the skipped frame due to wrong %ebp.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixing a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M processor/stackwalker_x86.cc View 1 1 chunk +33 lines, -23 lines 0 comments Download
M processor/stackwalker_x86_unittest.cc View 1 1 chunk +234 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Ivan Penkov
.
11 years, 5 months ago #1
Mark Mentovai
LGTM
11 years, 5 months ago #2
Ted Mielczarek
LGTM. Would the x86-64 stackwalker benefit from a similar fix? (Probably not as useful since ...
11 years, 5 months ago #3
Ivan Penkov
On 2012/11/02 16:08:30, Ted Mielczarek wrote: > LGTM. Would the x86-64 stackwalker benefit from a ...
11 years, 5 months ago #4
Ivan Penkov
11 years, 5 months ago #5
The comment was fixed.

Thanks,
-Ivan

http://breakpad.appspot.com/494002/diff/1/processor/stackwalker_x86.cc
File processor/stackwalker_x86.cc (right):

http://breakpad.appspot.com/494002/diff/1/processor/stackwalker_x86.cc#newcod...
processor/stackwalker_x86.cc:395: // the lowest, because we expect that the
function's prolog would have
On 2012/11/02 16:08:30, Ted Mielczarek wrote:
> Fix the "we" in the comment while you're here?

Done.
Sign in to reply to this message.

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