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

Issue 6419070: ASan Initialization order checking - compiler-rt

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by reidw
Modified:
12 years, 3 months ago
Reviewers:
kcc1, glider1, samsonov
Base URL:
http://llvm.org/svn/llvm-project/compiler-rt/trunk/
Visibility:
Public.

Description

Initialization order checking for ASan - compilerrt half.

Patch Set 1 #

Total comments: 19

Patch Set 2 : Second Version #

Patch Set 3 : Version 3: fairly minor changes #

Total comments: 6

Patch Set 4 : More minor changes #

Total comments: 4

Patch Set 5 : More changes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -7 lines) Patch
lib/asan/asan_flags.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
lib/asan/asan_globals.cc View 1 2 3 4 6 chunks +67 lines, -3 lines 0 comments Download
lib/asan/asan_interface.h View 1 2 3 4 2 chunks +12 lines, -0 lines 1 comment Download
lib/asan/asan_internal.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
lib/asan/asan_report.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
lib/asan/asan_rtl.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
lib/asan/output_tests/initialization-bug-logging.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
lib/asan/output_tests/initialization-bug-logging-extra.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
lib/asan/output_tests/initialization-nobug.cc View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
lib/asan/output_tests/initialization-nobug-extra.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
lib/asan/output_tests/memcmp_test.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
lib/asan/output_tests/test_output.sh View 1 2 3 4 2 chunks +13 lines, -2 lines 2 comments Download

Messages

Total messages: 13
samsonov
http://codereview.appspot.com/6419070/diff/1/lib/asan/asan_flags.h File lib/asan/asan_flags.h (right): http://codereview.appspot.com/6419070/diff/1/lib/asan/asan_flags.h#newcode53 lib/asan/asan_flags.h:53: bool initialization_order; I'd prefer "check_initialization_order" http://codereview.appspot.com/6419070/diff/1/lib/asan/asan_globals.cc File lib/asan/asan_globals.cc (right): ...
12 years, 4 months ago (2012-07-24 07:04:47 UTC) #1
kcc1
http://codereview.appspot.com/6419070/diff/1/lib/asan/asan_globals.cc File lib/asan/asan_globals.cc (right): http://codereview.appspot.com/6419070/diff/1/lib/asan/asan_globals.cc#newcode189 lib/asan/asan_globals.cc:189: if (!has_dynamic_init && globals[i].has_dynamic_initializer) { This could be written ...
12 years, 4 months ago (2012-07-24 08:38:53 UTC) #2
reidw
Second Version
12 years, 4 months ago (2012-07-26 23:43:08 UTC) #3
reidw
Thanks again for reviewing this. You've given me great feedback, and I really appreciate it. ...
12 years, 4 months ago (2012-07-26 23:51:18 UTC) #4
kcc1
On Fri, Jul 27, 2012 at 3:51 AM, <reidw@google.com> wrote: > Thanks again for reviewing ...
12 years, 4 months ago (2012-07-27 08:46:39 UTC) #5
reidw
Version 3: fairly minor changes
12 years, 3 months ago (2012-07-31 01:31:28 UTC) #6
samsonov
http://codereview.appspot.com/6419070/diff/14001/lib/asan/asan_globals.cc File lib/asan/asan_globals.cc (right): http://codereview.appspot.com/6419070/diff/14001/lib/asan/asan_globals.cc#newcode106 lib/asan/asan_globals.cc:106: // so we store the globals in a map. ...
12 years, 3 months ago (2012-08-01 16:09:30 UTC) #7
reidw
I've responded to all of the suggested changes, and I'll be uploading the patch corresponding ...
12 years, 3 months ago (2012-08-01 19:29:35 UTC) #8
reidw
More minor changes
12 years, 3 months ago (2012-08-02 17:45:03 UTC) #9
samsonov
LGTM (modulo comments below). http://codereview.appspot.com/6419070/diff/17005/lib/asan/asan_globals.cc File lib/asan/asan_globals.cc (right): http://codereview.appspot.com/6419070/diff/17005/lib/asan/asan_globals.cc#newcode29 lib/asan/asan_globals.cc:29: struct ListOfGlobals { Please write ...
12 years, 3 months ago (2012-08-03 07:55:29 UTC) #10
kcc1
Looks almost good. Please fix the minor issues and commit the code. Please commit tests ...
12 years, 3 months ago (2012-08-16 07:35:00 UTC) #11
glider1
I was unable to comment on asan_rtl.cc and asan_flags.h since Rietveld couldn't apply your patch. ...
12 years, 3 months ago (2012-08-16 09:09:31 UTC) #12
samsonov
12 years, 3 months ago (2012-08-16 15:17:05 UTC) #13
http://codereview.appspot.com/6419070/diff/23001/lib/asan/output_tests/test_o...
File lib/asan/output_tests/test_output.sh (right):

http://codereview.appspot.com/6419070/diff/23001/lib/asan/output_tests/test_o...
lib/asan/output_tests/test_output.sh:1: #!/bin/bash
On 2012/08/16 07:35:00, kcc1 wrote:
> This file is going to be deprecated. 
> Please coordinate with samsonov@

Yeah, we're in process of converting our tests to llvm-lit runner. You may take
a look at asan/lit_tests folder (you'll probably need to use same test layout as
used for shared libraries tests). Yes, it looks pretty ugly :( Anyway, feel free
to commit the code and/or old-style tests.
Sign in to reply to this message.

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