|
|
DescriptionFix ASAN default suppression symbol mangling on windows
I'm working on a patch to fix asan_options on windows and I faced this
two incompatibles symbols:
00D 00000000 SECT2 notype External | ?kASanDefaultSuppressions@@3PADA (char * kASanDefaultSuppressions)
01F 00000000 UNDEF notype External | _kASanDefaultSuppressions
This is caused by the way the symbols are defined (i.e. extern "C").
src/build/sanitizers/asan_suppressions.cc
char kASanDefaultSuppressions[] =
src/build/sanitizers/sanitizer_options.cc
extern "C" char kASanDefaultSuppressions[];
BUG=681027
R=eugenis@chromium.org, chrisha@chromium.com, rnk@chromium.org
Review-Url: https://codereview.chromium.org/2631753002
Cr-Commit-Position: refs/heads/master@{#444764}
Committed: https://chromium.googlesource.com/chromium/src/+/c9e8aae171ee0999ed1ad766089d76cf40159fee
Patch Set 1 #
Total comments: 4
Patch Set 2 : Moar cases #Patch Set 3 : fix extern #Messages
Total messages: 28 (15 generated)
Description was changed from ========== Fix ASAN default suppression symbol mangling on windows I'm working on a patch to fix asan_options on windows and I faced this two incompatibles symbols: 00D 00000000 SECT2 notype External | ?kASanDefaultSuppressions@@3PADA (char * kASanDefaultSuppressions) 01F 00000000 UNDEF notype External | _kASanDefaultSuppressions This is caused by the way the symbol is exported (extern "C"). BUG=681027 R=eugenis@chromium.org, chrisha@chromium.com, rnk@chromium.org ========== to ========== Fix ASAN default suppression symbol mangling on windows I'm working on a patch to fix asan_options on windows and I faced this two incompatibles symbols: 00D 00000000 SECT2 notype External | ?kASanDefaultSuppressions@@3PADA (char * kASanDefaultSuppressions) 01F 00000000 UNDEF notype External | _kASanDefaultSuppressions This is caused by the way the symbols are defined (i.e. extern "C"). src/build/sanitizers/asan_suppressions.cc char kASanDefaultSuppressions[] = src/build/sanitizers/sanitizer_options.cc extern "C" char kASanDefaultSuppressions[]; BUG=681027 R=eugenis@chromium.org, chrisha@chromium.com, rnk@chromium.org ==========
PTAL.
https://codereview.chromium.org/2631753002/diff/1/build/sanitizers/sanitizer_... File build/sanitizers/sanitizer_options.cc (left): https://codereview.chromium.org/2631753002/diff/1/build/sanitizers/sanitizer_... build/sanitizers/sanitizer_options.cc:134: extern "C" char kTSanDefaultSuppressions[]; This has the same issue, it just isn't a problem on Linux because global variables aren't mangled. https://codereview.chromium.org/2631753002/diff/1/build/sanitizers/sanitizer_... build/sanitizers/sanitizer_options.cc:169: extern "C" char kLSanDefaultSuppressions[]; Ditto
etienneb@chromium.org changed reviewers: + chrisha@chromium.org - chrisha@chromium.com
Thanks rnk@, fixed the other cases. PTAL. https://codereview.chromium.org/2631753002/diff/1/build/sanitizers/sanitizer_... File build/sanitizers/sanitizer_options.cc (left): https://codereview.chromium.org/2631753002/diff/1/build/sanitizers/sanitizer_... build/sanitizers/sanitizer_options.cc:134: extern "C" char kTSanDefaultSuppressions[]; On 2017/01/13 20:52:43, Reid Kleckner wrote: > This has the same issue, it just isn't a problem on Linux because global > variables aren't mangled. Done. https://codereview.chromium.org/2631753002/diff/1/build/sanitizers/sanitizer_... build/sanitizers/sanitizer_options.cc:169: extern "C" char kLSanDefaultSuppressions[]; On 2017/01/13 20:52:43, Reid Kleckner wrote: > Ditto Done.
etienneb@chromium.org changed reviewers: + glider@chromium.org
PTAL
The CQ bit was checked by rnk@chromium.org
lgtm
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
This patch needs an owner approval.
lgtm
The CQ bit was checked by etienneb@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by etienneb@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by etienneb@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rnk@chromium.org, eugenis@chromium.org Link to the patchset: https://codereview.chromium.org/2631753002/#ps40001 (title: "fix extern")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1484839729319960, "parent_rev": "4105bfeb59cd108955521f923dc7731939f07de8", "commit_rev": "c9e8aae171ee0999ed1ad766089d76cf40159fee"}
Message was sent while issue was closed.
Description was changed from ========== Fix ASAN default suppression symbol mangling on windows I'm working on a patch to fix asan_options on windows and I faced this two incompatibles symbols: 00D 00000000 SECT2 notype External | ?kASanDefaultSuppressions@@3PADA (char * kASanDefaultSuppressions) 01F 00000000 UNDEF notype External | _kASanDefaultSuppressions This is caused by the way the symbols are defined (i.e. extern "C"). src/build/sanitizers/asan_suppressions.cc char kASanDefaultSuppressions[] = src/build/sanitizers/sanitizer_options.cc extern "C" char kASanDefaultSuppressions[]; BUG=681027 R=eugenis@chromium.org, chrisha@chromium.com, rnk@chromium.org ========== to ========== Fix ASAN default suppression symbol mangling on windows I'm working on a patch to fix asan_options on windows and I faced this two incompatibles symbols: 00D 00000000 SECT2 notype External | ?kASanDefaultSuppressions@@3PADA (char * kASanDefaultSuppressions) 01F 00000000 UNDEF notype External | _kASanDefaultSuppressions This is caused by the way the symbols are defined (i.e. extern "C"). src/build/sanitizers/asan_suppressions.cc char kASanDefaultSuppressions[] = src/build/sanitizers/sanitizer_options.cc extern "C" char kASanDefaultSuppressions[]; BUG=681027 R=eugenis@chromium.org, chrisha@chromium.com, rnk@chromium.org Review-Url: https://codereview.chromium.org/2631753002 Cr-Commit-Position: refs/heads/master@{#444764} Committed: https://chromium.googlesource.com/chromium/src/+/c9e8aae171ee0999ed1ad766089d... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/c9e8aae171ee0999ed1ad766089d... |