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

Issue 5643047: [ASan] Replace AsanProcMaps::GetObjectNameAndOffset with a simpler AsanProcMaps::DescribeAddress (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by timurrrr_at_google_com
Modified:
12 years, 1 month ago
CC:
llvm-commits_cs.uiuc.edu
Visibility:
Public.

Patch Set 1 #

Total comments: 19
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -29 lines) Patch
M lib/asan/asan_internal.h View 1 chunk +1 line, -1 line 2 comments Download
M lib/asan/asan_linux.cc View 2 chunks +19 lines, -12 lines 7 comments Download
M lib/asan/asan_mac.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M lib/asan/asan_procmaps.h View 1 chunk +7 lines, -4 lines 7 comments Download
M lib/asan/asan_stack.cc View 1 chunk +3 lines, -8 lines 3 comments Download

Messages

Total messages: 7
timurrrr_at_google_com
Hi, Can you please review this patch? Rationale: on Windows, it's much easier to get ...
12 years, 2 months ago (2012-02-07 17:41:15 UTC) #1
kcc1
Ok in general. Please define "const int kAsanMaxPath = 4096;" in asan_internal.h and use it ...
12 years, 2 months ago (2012-02-07 18:20:47 UTC) #2
samsonov
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h File lib/asan/asan_procmaps.h (right): http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h#newcode30 lib/asan/asan_procmaps.h:30: // and puts it into the given buffer with ...
12 years, 2 months ago (2012-02-08 07:11:02 UTC) #3
timurrrr_at_google_com
Alexander, Can you please take a look about the refactoring idea? http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h File lib/asan/asan_procmaps.h (right): ...
12 years, 2 months ago (2012-02-08 09:43:32 UTC) #4
glider
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_internal.h File lib/asan/asan_internal.h (left): http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_internal.h#oldcode145 lib/asan/asan_internal.h:145: int SNPrint(char *buffer, size_t length, const char *format, ...); ...
12 years, 2 months ago (2012-02-08 10:12:40 UTC) #5
samsonov
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h File lib/asan/asan_procmaps.h (right): http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h#newcode32 lib/asan/asan_procmaps.h:32: void DescribeAddress(uintptr_t addr, char out_buffer[], size_t buffer_size); On 2012/02/08 ...
12 years, 2 months ago (2012-02-08 10:51:36 UTC) #6
timurrrr_at_google_com
12 years, 2 months ago (2012-02-08 14:50:43 UTC) #7
After thinking for a while and studying the code better I've decided to leave
the AsanProcMaps as-is.
See http://codereview.appspot.com/5647052/diff/4001/lib/asan/asan_internal.h
instead.

http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_linux.cc
File lib/asan/asan_linux.cc (right):

http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_linux.cc#newcode265
lib/asan/asan_linux.cc:265: if (dl_iterate_phdr(dl_iterate_phdr_callback,
&data)) {
I meant Mac and Android.

On 2012/02/08 10:12:40, glider wrote:
> On 2012/02/07 17:41:15, timurrrr_at_google_com wrote:
> > Alternative suggestion:
> > I can extract this code to IterateForObjectNameAndOffset
> > and move the common AsanProcMaps::DescribeAddress code to asan_posix.cc
> > (we have the same symbolization capabilities on Linux and Mac, right?)
> > 
> > WDYT?
> 
> We do not have dl_iterate_phdr on Mac.
Sign in to reply to this message.

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