Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Issue 947073003: Improve symbol_extractor.CreateNameToSymbolInfo handling of duplicate symbols. (Closed)

Created:
5 years, 10 months ago by azarchs
Modified:
5 years, 10 months ago
Reviewers:
pasko, Benoit L
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve symbol_extractor.CreateNameToSymbolInfo handling of duplicate symbols. If a symbol appears more than once in the binary, return the lowest offset for that symbol, rather than the last one. Also warn about duplicated symbols. There are a couple hundred in libchrome.so. Further investigation is needed to determine why this is even possible, but in the mean time this should fix the orderfile bot redness. Committed: https://crrev.com/70f5220a69a64377fb9d27a72941941d7ea7fa2c Cr-Commit-Position: refs/heads/master@{#317592}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add a unit test and address comments. #

Patch Set 3 : Add a todo #

Total comments: 2

Patch Set 4 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -1 line) Patch
M tools/cygprofile/symbol_extractor.py View 1 2 3 4 chunks +36 lines, -1 line 0 comments Download
M tools/cygprofile/symbol_extractor_unittest.py View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
azarchs
5 years, 10 months ago (2015-02-23 13:43:41 UTC) #2
azarchs
In case one is curious, here's a sample of some of the duplicated symbols. They're ...
5 years, 10 months ago (2015-02-23 13:45:13 UTC) #3
Benoit L
https://codereview.chromium.org/947073003/diff/1/tools/cygprofile/symbol_extractor.py File tools/cygprofile/symbol_extractor.py (right): https://codereview.chromium.org/947073003/diff/1/tools/cygprofile/symbol_extractor.py#newcode120 tools/cygprofile/symbol_extractor.py:120: symbol_infos_by_name = {} This function no longer does what ...
5 years, 10 months ago (2015-02-23 14:09:49 UTC) #4
pasko
please put BUG=460906 to the description please also write a test, it will be OK ...
5 years, 10 months ago (2015-02-23 14:28:13 UTC) #5
azarchs
https://codereview.chromium.org/947073003/diff/1/tools/cygprofile/symbol_extractor.py File tools/cygprofile/symbol_extractor.py (right): https://codereview.chromium.org/947073003/diff/1/tools/cygprofile/symbol_extractor.py#newcode120 tools/cygprofile/symbol_extractor.py:120: symbol_infos_by_name = {} On 2015/02/23 14:09:49, lizeb wrote: > ...
5 years, 10 months ago (2015-02-23 15:39:38 UTC) #6
Benoit L
lgtm https://codereview.chromium.org/947073003/diff/40001/tools/cygprofile/symbol_extractor.py File tools/cygprofile/symbol_extractor.py (right): https://codereview.chromium.org/947073003/diff/40001/tools/cygprofile/symbol_extractor.py#newcode114 tools/cygprofile/symbol_extractor.py:114: A a symbol can have several offsets, this ...
5 years, 10 months ago (2015-02-23 16:02:48 UTC) #7
pasko
lgtm
5 years, 10 months ago (2015-02-23 16:08:04 UTC) #8
azarchs
https://codereview.chromium.org/947073003/diff/40001/tools/cygprofile/symbol_extractor.py File tools/cygprofile/symbol_extractor.py (right): https://codereview.chromium.org/947073003/diff/40001/tools/cygprofile/symbol_extractor.py#newcode114 tools/cygprofile/symbol_extractor.py:114: A a symbol can have several offsets, this is ...
5 years, 10 months ago (2015-02-23 16:10:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/947073003/60001
5 years, 10 months ago (2015-02-23 16:10:46 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61655)
5 years, 10 months ago (2015-02-23 16:13:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/947073003/60001
5 years, 10 months ago (2015-02-23 16:32:48 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-23 16:43:21 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/70f5220a69a64377fb9d27a72941941d7ea7fa2c Cr-Commit-Position: refs/heads/master@{#317592}
5 years, 10 months ago (2015-02-23 16:44:13 UTC) #18
pasko
5 years, 10 months ago (2015-02-24 10:26:22 UTC) #19
Message was sent while issue was closed.
nobody likes bugs :)
nevermind, I'll continue my reminders...

Powered by Google App Engine
This is Rietveld 408576698