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

Issue 2857643002: Let google::Symbolize only print address offset in sanitizer builds. (Closed)

Created:
3 years, 7 months ago by Nico
Modified:
3 years, 7 months ago
Reviewers:
Lei Zhang, sky, dcheng
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Let google::Symbolize only print address offset in sanitizer builds. Sanitizer stacks are supposed to be run through tools/valgrind/asan/asan_symbolize.py anyhow, which calls llvm-symbolizer. llvm-symbolizer can do a better job at symbolizing than google::Symbolize if google::Symbolize doesn't throw away the data llvm-symbolizer needs. Stack before (both with and without filtering through asan_symbolize): BrowserTestBase received signal: Segmentation fault. Backtrace: #0 0x0000007ea911 __interceptor_backtrace #1 0x0000082e2afc base::debug::StackTrace::StackTrace() #2 0x00000979d5ce content::(anonymous namespace)::DumpStackTraceSignalHandler() #3 0x7f04d9814cb0 <unknown> #4 0x00000fbd5624 BrowserActionsContainer::Layout() #5 0x00000fbd3c3e BrowserActionsContainer::Redraw() #6 0x00000f91d38e ToolbarActionsBar::UndoPopOut() Stack after, not filtered through asan_symbolize: BrowserTestBase received signal: Segmentation fault. Backtrace: #0 0x0000007ea911 (/usr/local/google/home/thakis/src/chrome/src/out/asan/browser_tests+0x7ea910) #1 0x0000082e2afc (/usr/local/google/home/thakis/src/chrome/src/out/asan/browser_tests+0x82e2afb) #2 0x00000979d5ce (/usr/local/google/home/thakis/src/chrome/src/out/asan/browser_tests+0x979d5cd) #3 0x7fbcf8399cb0 (/lib/x86_64-linux-gnu/libc-2.19.so+0x36caf) #4 0x00000fbc96b4 (/usr/local/google/home/thakis/src/chrome/src/out/asan/browser_tests+0xfbc96b3) #5 0x00000fbc7cce (/usr/local/google/home/thakis/src/chrome/src/out/asan/browser_tests+0xfbc7ccd) #6 0x00000f91141e (/usr/local/google/home/thakis/src/chrome/src/out/asan/browser_tests+0xf91141d) Stack after, filtered through asan_symbolize: BrowserTestBase received signal: Segmentation fault. Backtrace: #0 0x0000007ea911 in __interceptor_backtrace ??:0:0 #1 0x0000082e2afc in base::debug::StackTrace::StackTrace(unsigned long) /usr/local/google/home/thakis/src/chrome/src/out/asan/../../base/debug/stack_trace_posix.cc:745:41 #2 0x00000979d5ce in content::(anonymous namespace)::DumpStackTraceSignalHandler(int) /usr/local/google/home/thakis/src/chrome/src/out/asan/../../content/public/test/browser_test_base.cc:80:5 #3 0x7fda947f5cb0 in killpg ??:? #4 0x7fda947f5cb0 in ?? ??:0 #5 0x00000fbc96b4 in BrowserActionsContainer::Layout() /usr/local/google/home/thakis/src/chrome/src/out/asan/../../chrome/browser/ui/views/toolbar/browser_actions_container.cc:364:13 #6 0x00000fbc7cce in BrowserActionsContainer::Redraw(bool) /usr/local/google/home/thakis/src/chrome/src/out/asan/../../chrome/browser/ui/views/toolbar/browser_actions_container.cc:214:3 #7 0x00000f91141e in ToolbarActionsBar::UndoPopOut() /usr/local/google/home/thakis/src/chrome/src/out/asan/../../chrome/browser/ui/toolbar/toolbar_actions_bar.cc:534:16 BUG=none Review-Url: https://codereview.chromium.org/2857643002 Cr-Commit-Position: refs/heads/master@{#469311} Committed: https://chromium.googlesource.com/chromium/src/+/ea46669e9b3d8c7a64e9c2280629a030a9e5e88b

Patch Set 1 #

Total comments: 2

Patch Set 2 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -15 lines) Patch
M base/third_party/symbolize/symbolize.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M content/test/content_browser_test_test.cc View 1 2 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
Nico
Not sure if this is a good change or not. Opinions?
3 years, 7 months ago (2017-05-02 15:16:18 UTC) #3
dcheng
lgtm
3 years, 7 months ago (2017-05-02 19:12:15 UTC) #4
dcheng
(I think it's strictly better)
3 years, 7 months ago (2017-05-02 19:12:24 UTC) #5
Lei Zhang
++lgtm
3 years, 7 months ago (2017-05-02 19:14:45 UTC) #6
Lei Zhang
https://codereview.chromium.org/2857643002/diff/1/base/third_party/symbolize/symbolize.cc File base/third_party/symbolize/symbolize.cc (right): https://codereview.chromium.org/2857643002/diff/1/base/third_party/symbolize/symbolize.cc#newcode776 base/third_party/symbolize/symbolize.cc:776: #if !defined(ADDRESS_SANITIZER) && !defined(LEAK_SANITIZER) && \ Alternatively, use the ...
3 years, 7 months ago (2017-05-02 19:18:41 UTC) #7
Nico
Thanks! https://codereview.chromium.org/2857643002/diff/1/base/third_party/symbolize/symbolize.cc File base/third_party/symbolize/symbolize.cc (right): https://codereview.chromium.org/2857643002/diff/1/base/third_party/symbolize/symbolize.cc#newcode776 base/third_party/symbolize/symbolize.cc:776: #if !defined(ADDRESS_SANITIZER) && !defined(LEAK_SANITIZER) && \ On 2017/05/02 ...
3 years, 7 months ago (2017-05-02 20:18:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2857643002/1
3 years, 7 months ago (2017-05-02 20:19:01 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/65483)
3 years, 7 months ago (2017-05-02 21:24:19 UTC) #12
Nico
I also had to disable two tests that check that stacks are symbolized. If you ...
3 years, 7 months ago (2017-05-03 19:03:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2857643002/20001
3 years, 7 months ago (2017-05-03 19:03:33 UTC) #18
commit-bot: I haz the power
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_presubmit/builds/426592)
3 years, 7 months ago (2017-05-03 19:12:56 UTC) #20
Nico
+sky for content/test/OWNERS
3 years, 7 months ago (2017-05-03 19:13:46 UTC) #22
sky
LGTM
3 years, 7 months ago (2017-05-04 03:46:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2857643002/20001
3 years, 7 months ago (2017-05-04 11:35:05 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 11:39:44 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ea46669e9b3d8c7a64e9c2280629...

Powered by Google App Engine
This is Rietveld 408576698