This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use libbacktrace as libsanitizer's symbolizer
- From: Alexey Samsonov <samsonov at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Konstantin Serebryany <kcc at gcc dot gnu dot org>, Ian Lance Taylor <iant at google dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Nov 2013 17:30:42 +0400
- Subject: Re: [PATCH] Use libbacktrace as libsanitizer's symbolizer
- Authentication-results: sourceware.org; auth=none
- References: <CAGSYnCPcGeYB7EEw=jAFf6h-gc2wJi0hqeZLDPEfmKOjq3FWAA at mail dot gmail dot com> <20131119153350 dot GW892 at tucnak dot redhat dot com> <20131119164221 dot GZ892 at tucnak dot redhat dot com> <CAGSYnCNYcAfhN6k-JFkBbnub2U6=x_VYCuH2K7VhSUf7HZ2FCQ at mail dot gmail dot com> <20131122183452 dot GI892 at tucnak dot redhat dot com> <CAGSYnCOqf4Yz0ji+tGnioAN1HF8iuHVLpq+sBRO9h6qYnwU=2A at mail dot gmail dot com> <20131125150203 dot GX892 at tucnak dot redhat dot com> <CAGSYnCM5KnwiC0s_ZNinWQ30FgazkqwEWHJF1oZMQO3vv1Qymg at mail dot gmail dot com> <20131127122016 dot GB892 at tucnak dot redhat dot com> <CAGSYnCO8vNH4+hwov7GcGcWKnbVjnjAj9bbQiNMD_9u9ENytZw at mail dot gmail dot com> <20131127125132 dot GC892 at tucnak dot redhat dot com>
On Wed, Nov 27, 2013 at 4:51 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Wed, Nov 27, 2013 at 04:31:48PM +0400, Alexey Samsonov wrote:
>> LLVM emits just a DW_AT_low_pc ("base address" of a compilation unit). The
>> standard tells that compilation unit entries "may have" attributes
>> specifying the
>> address range, but doesn't tell they are obligatory.
>> DWARF consumers probably shouldn't rely on their presence.
>
> DWARF is generally full of may have and almost no must have. If the
> DWARF consumer crashes on absence of some attribute/die etc., that would
> be of course a consumer's fault. But not being able to symbolize something
> because the provided DWARF info omits important stuff is not wrong.
Ok, I agree to call it "missing feature" instead of "bug" =)
> BTW, libbacktrace also uses symbol table (and for backtrace_syminfo
> uses that exclusively), so even if it can't symbolize using DWARF info,
> it should at least symbolize using symbol table (of course inlining info
> isn't available in that case, nor tail call frames (but libbacktrace doesn't
> support those yet, only GDB does so far)).
Yes, symbol table symbolization works for me (it has no file/line
info, of course).
--
Alexey Samsonov, MSK