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

Issue 1824063002: Have dump_syms output the full symbol table. (Closed)

Created:
4 years, 9 months ago by David Yen
Modified:
4 years, 9 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Have dump_syms output the full symbol table. Some of the symbols in the stack trace are not found in the .dynsym section but were located in the full symbol table .symtab section instead. This was causing some of our stack traces to be incomplete or point to incorrect function names. Since we only output function names, there are actually not that many more symbols located in .symtab that aren't in .dynsym. It is better to simply output all symbols found so our stack traces are complete. R=mark@chromium.org, thestig@chromium.org BUG=561447 Committed: https://chromium.googlesource.com/breakpad/breakpad/+/512cac3a1b69721ab727f3079f4d29e4580467b1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed wrong section name #

Total comments: 2

Patch Set 3 : Moved code to function #

Patch Set 4 : Reverted to #2 plus SHT_DYNSYM fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -18 lines) Patch
M src/common/linux/dump_symbols.cc View 1 2 3 1 chunk +47 lines, -18 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
David Yen
4 years, 9 months ago (2016-03-22 18:20:07 UTC) #1
David Yen
On 2016/03/22 18:20:07, David Yen wrote: +mark@ since thestig@ is OOO.
4 years, 9 months ago (2016-03-22 18:20:54 UTC) #4
Mark Mentovai
I thought that .dynsym and .symtab didn’t duplicate each other, at least not fully, and ...
4 years, 9 months ago (2016-03-22 21:03:11 UTC) #5
David Yen
From my understanding .dynsym is a strict subset of .symtab. The .symtab section is the ...
4 years, 9 months ago (2016-03-22 21:14:08 UTC) #6
Mark Mentovai
In my experience, I see symbols with “nm -D” that I don’t see with just ...
4 years, 9 months ago (2016-03-22 22:03:14 UTC) #7
David Yen
On 2016/03/22 22:03:14, Mark Mentovai wrote: > In my experience, I see symbols with “nm ...
4 years, 9 months ago (2016-03-22 22:11:52 UTC) #8
Mark Mentovai
$ nm /lib/x86_64-linux-gnu/libc.so.6 | wc -l nm: /lib/x86_64-linux-gnu/libc.so.6: no symbols 0 $ nm -D /lib/x86_64-linux-gnu/libc.so.6 ...
4 years, 9 months ago (2016-03-22 22:38:35 UTC) #9
Mark Mentovai
Oh, but I guess there’s no .symtab at all in that case, so your approach ...
4 years, 9 months ago (2016-03-22 22:40:24 UTC) #10
David Yen
On 2016/03/22 22:40:24, Mark Mentovai wrote: > Oh, but I guess there’s no .symtab at ...
4 years, 9 months ago (2016-03-22 22:42:06 UTC) #11
Mark Mentovai
https://codereview.chromium.org/1824063002/diff/20001/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): https://codereview.chromium.org/1824063002/diff/20001/src/common/linux/dump_symbols.cc#newcode696 src/common/linux/dump_symbols.cc:696: info->LoadedSection(".symtab"); Can the boy of this conditional be factored ...
4 years, 9 months ago (2016-03-22 22:46:42 UTC) #12
David Yen
https://codereview.chromium.org/1824063002/diff/20001/src/common/linux/dump_symbols.cc File src/common/linux/dump_symbols.cc (right): https://codereview.chromium.org/1824063002/diff/20001/src/common/linux/dump_symbols.cc#newcode696 src/common/linux/dump_symbols.cc:696: info->LoadedSection(".symtab"); On 2016/03/22 22:46:42, Mark Mentovai wrote: > Can ...
4 years, 9 months ago (2016-03-23 00:01:05 UTC) #13
Mark Mentovai
Yuck, that is too many. LGTM to #2 then.
4 years, 9 months ago (2016-03-23 15:32:50 UTC) #14
David Yen
On 2016/03/23 15:32:50, Mark Mentovai wrote: > Yuck, that is too many. LGTM to #2 ...
4 years, 9 months ago (2016-03-23 16:51:37 UTC) #15
Mark Mentovai
4 years, 9 months ago (2016-03-23 17:17:48 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
512cac3a1b69721ab727f3079f4d29e4580467b1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698