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

Issue 6446107: [ASan] share code at the beginning/end of error reports (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by samsonov
Modified:
11 years, 9 months ago
Reviewers:
glider1
Base URL:
https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/
Visibility:
Public.

Patch Set 1 : z #

Total comments: 10

Patch Set 2 : z #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -82 lines) Patch
M asan_report.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M asan_report.cc View 1 5 chunks +104 lines, -81 lines 0 comments Download

Messages

Total messages: 3
glider1
https://codereview.appspot.com/6446107/diff/4001/asan_report.cc File asan_report.cc (right): https://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode48 asan_report.cc:48: for (uptr i = 0; i < byte_num; i++) ...
11 years, 9 months ago (2012-08-10 12:03:50 UTC) #1
samsonov
http://codereview.appspot.com/6446107/diff/4001/asan_report.cc File asan_report.cc (right): http://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode48 asan_report.cc:48: for (uptr i = 0; i < byte_num; i++) ...
11 years, 9 months ago (2012-08-10 14:34:58 UTC) #2
samsonov
11 years, 9 months ago (2012-08-10 15:14:25 UTC) #3
On 2012/08/10 14:34:58, samsonov wrote:
> http://codereview.appspot.com/6446107/diff/4001/asan_report.cc
> File asan_report.cc (right):
> 
> http://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode48
> asan_report.cc:48: for (uptr i = 0; i < byte_num; i++) {
> On 2012/08/10 12:03:50, glider1 wrote:
> > ++i is more stylistically preferable, but looks like we're not using it at
all
> > in ASan codebase.
> 
> Yeah, "i++" vs. "++i" = 27:0. I'll leave it as is for consistency.
> 
> http://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode63
> asan_report.cc:63: PrintBytes("  ", (uptr*)(aligned_shadow-4*kWordSize));
> On 2012/08/10 12:03:50, glider1 wrote:
> > Please also fix the spacing between the operators.
> 
> Done.
> 
> http://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode63
> asan_report.cc:63: PrintBytes("  ", (uptr*)(aligned_shadow-4*kWordSize));
> On 2012/08/10 12:03:50, glider1 wrote:
> > How about writing a loop here?
> 
> Done.
> 
> http://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode218
> asan_report.cc:218: AsanPrintf("AddressSanitizer: while reporting a bug found
> another one."
> On 2012/08/10 12:03:50, glider1 wrote:
> > It's better to use AsanReport() here.
> 
> Done.
> 
> http://codereview.appspot.com/6446107/diff/4001/asan_report.cc#newcode220
> asan_report.cc:220: SleepForSeconds(5);
> On 2012/08/10 12:03:50, glider1 wrote:
> > I think we should sleep for |sleep_before_dying| seconds here.
> > Keep in mind that Clang may replace the current while(1) loop with a call to
> > _exit(1), so we should either enforce it or let the user to control the
sleep
> > time.
> 
> Done.

r161666
Sign in to reply to this message.

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