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

Issue 6817056: Augment SyzyASAN crash reports with stack traces on alloc/free. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by Sébastien Marchand
Modified:
11 years, 6 months ago
CC:
sawbuck-changes_googlegroups.com
Base URL:
http://sawbuck.googlecode.com/svn/trunk
Visibility:
Public.

Description

Augment SyzyASAN crash reports with stack traces on alloc/free. BUG= Committed: https://code.google.com/p/sawbuck/source/detail?r=1211

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Address Roger's comments. #

Total comments: 4

Patch Set 3 : Address Roger's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -9 lines) Patch
M syzygy/agent/asan/asan.gyp View 2 chunks +3 lines, -3 lines 0 comments Download
M syzygy/agent/asan/asan_heap.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M syzygy/agent/asan/asan_heap.cc View 1 2 8 chunks +51 lines, -4 lines 0 comments Download

Messages

Total messages: 7
Sébastien Marchand
PTAL.
11 years, 6 months ago (2012-10-30 19:59:50 UTC) #1
Roger McFarlane
Nice! One nit, one suggestion. https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc File syzygy/agent/asan/asan_heap.cc (right): https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc#newcode57 syzygy/agent/asan/asan_heap.cc:57: void CaptureStackTrace(void** stack_trace, size_t* ...
11 years, 6 months ago (2012-10-30 20:08:32 UTC) #2
sebmarchand - Google Account
Some comments on Roger's comments. https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc File syzygy/agent/asan/asan_heap.cc (right): https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc#newcode57 syzygy/agent/asan/asan_heap.cc:57: void CaptureStackTrace(void** stack_trace, size_t* ...
11 years, 6 months ago (2012-10-30 22:53:26 UTC) #3
Roger McFarlane
https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc File syzygy/agent/asan/asan_heap.cc (right): https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc#newcode57 syzygy/agent/asan/asan_heap.cc:57: void CaptureStackTrace(void** stack_trace, size_t* trace_size) { On 2012/10/30 22:53:26, ...
11 years, 6 months ago (2012-10-31 14:16:24 UTC) #4
Sébastien Marchand
Thanks, PTAnL. https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc File syzygy/agent/asan/asan_heap.cc (right): https://codereview.appspot.com/6817056/diff/3004/syzygy/agent/asan/asan_heap.cc#newcode57 syzygy/agent/asan/asan_heap.cc:57: void CaptureStackTrace(void** stack_trace, size_t* trace_size) { On ...
11 years, 6 months ago (2012-10-31 14:33:42 UTC) #5
Roger McFarlane
lgtm with nits https://codereview.appspot.com/6817056/diff/7001/syzygy/agent/asan/asan_heap.cc File syzygy/agent/asan/asan_heap.cc (right): https://codereview.appspot.com/6817056/diff/7001/syzygy/agent/asan/asan_heap.cc#newcode286 syzygy/agent/asan/asan_heap.cc:286: free_block->alloc_stack_trace = NULL; reset the stack ...
11 years, 6 months ago (2012-10-31 15:08:46 UTC) #6
Sébastien Marchand
11 years, 6 months ago (2012-10-31 15:16:44 UTC) #7
Thanks, committing.

https://codereview.appspot.com/6817056/diff/7001/syzygy/agent/asan/asan_heap.cc
File syzygy/agent/asan/asan_heap.cc (right):

https://codereview.appspot.com/6817056/diff/7001/syzygy/agent/asan/asan_heap....
syzygy/agent/asan/asan_heap.cc:286: free_block->alloc_stack_trace = NULL;
On 2012/10/31 15:08:46, Roger McFarlane wrote:
> reset the stack trace sizes here and below

Done.

https://codereview.appspot.com/6817056/diff/7001/syzygy/agent/asan/asan_heap.h
File syzygy/agent/asan/asan_heap.h (right):

https://codereview.appspot.com/6817056/diff/7001/syzygy/agent/asan/asan_heap....
syzygy/agent/asan/asan_heap.h:107: uint8 free_stack_trace_size;
On 2012/10/31 15:08:46, Roger McFarlane wrote:
> change the order of these members, put the byte sized members at the end
> (otherwise the compiler will pad).
> 
> Also, somewhere in the C++ file, COMPILE_ASSERT that the size is as you
expect.

Done. There's already a COMPILE_ASSERT for the size in HeapProxy::Create.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b