Fuchsia: stack trace symbolization cannot resolve line numbers for binaries build with symbol_level=2 |
||||
Issue description
On Fuchsia builds with symbol_level=2, addr2line is unable to resolve line numbers for stack trace entries. Instead it outputs outputting "??" instead, like this:
"testing::UnitTest::Run() at ??:?"
Rebuilding the binary with symbol_level=1 fixes the problem. thakis@ said that symbol level 2 should contain a superset of level 1's debug information, so any fidelity loss should be treated as a bug.
Repro steps:
1. Add a simple unit test to a suite which outputs a stack trace to the console.
TEST_F(StackTraceTest, PrintTrace) {
base::debug::StackTrace().Print();
}
2. Set up an output dir to build with Fuchsia.
target_os = "fuchsia"
is_debug = true
dcheck_always_on = true
is_component_build = false
use_goma = true
symbol_level = 2
3. Build the unit test binary.
4. Run the unit test with --single-process-test , so that you can see the test's output on stdio.
Expected: a symbolized stack trace with line numbers, like this:
#00: StackTrace at base/debug/stack_trace_fuchsia.cc:173
Actual: unsymbolized entries like this (the script is set up to pass through output as-is, if symbolization contains questionmarks):
#00: pc 0x16fb5f4c510 (app:./base_unittests,0x2523510)
,
Aug 3
,
Aug 10
,
Aug 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1f273ccbde526a7402e715821163d8349627bf56 commit 1f273ccbde526a7402e715821163d8349627bf56 Author: Wez <wez@chromium.org> Date: Fri Aug 10 21:39:19 2018 Disable debug fission under Fuchsia. The symbolization in the Fuchsia runner scripts is not set up to work with debug information partly split from the binary. Bug: 777008 Change-Id: Iedaf4fe56cc8092af21acfd0d244304982a6035c Reviewed-on: https://chromium-review.googlesource.com/1170440 Reviewed-by: Dirk Pranke <dpranke@chromium.org> Commit-Queue: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#582344} [modify] https://crrev.com/1f273ccbde526a7402e715821163d8349627bf56/build/config/compiler/BUILD.gn
,
Aug 10
|
||||
►
Sign in to add a comment |
||||
Comment 1 by w...@chromium.org
, Aug 3Labels: -Pri-2 M-70 Pri-1
Owner: w...@chromium.org
Status: Assigned (was: Untriaged)