From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57833 invoked by alias); 4 Apr 2017 07:40:10 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 57820 invoked by uid 89); 4 Apr 2017 07:40:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=excel, H*F:U*mail, mile, HCc:U*mark X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: dd17628.kasserver.com From: Milian Wolff To: elfutils-devel@sourceware.org Cc: Jan Kratochvil , Mark Wielaard , Ulf Hermann Subject: Re: frame unwinding patches Date: Tue, 04 Apr 2017 07:40:00 -0000 Message-ID: <2050042.dvQtNuZMzI@milian-kdab2> In-Reply-To: <20170403212325.GA21599@host1.jankratochvil.net> References: <1487201610-8381-1-git-send-email-mark@klomp.org> <3915502.JGE1jdPxOT@milian-kdab2> <20170403212325.GA21599@host1.jankratochvil.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2017-q2/txt/msg00019.txt.bz2 On Monday, April 3, 2017 11:23:25 PM CEST Jan Kratochvil wrote: > On Mon, 03 Apr 2017 11:00:03 +0200, Milian Wolff wrote: > > I just got a report from a colleague. As-is, elfutils would fail to unwind > > from the following location in his application: > > > > 0x1137ca4 > > > With the x86_64 patch applied, he got a proper backtrace: > > S/he has something wrong with the compiler. With > -fasynchronous-unwind-tables frame pointer unwinding is never needed > and gcc defaults to -fasynchronous-unwind-tables on x86_64. > > This is why I haven't implemented it originally as it only paper overs the > real problem and it leads to unreliable backtraces in longterm. Please reconsider: - In the example above, the address points into libnvidia-glcore.so and as such not compiled by my colleague but rather provided by NVidia as a binary blob. When you only got a binary blob and have to make do with it, you cannot tell people to "just fix the compiler invocation". - Some JIT compilers, like QV4, actually embed frame pointers into their dynamic code, but do not go the extra mile for generating DWARF data or asynchronous unwind tables. That is another case where the patches by Ulf excel and make elfutils much more useful. Please, as a user of elfutils I strongly hope that this patch set gets accepted. In general, similar patches that make it more resilient in the face of broken setups should also at least get considered instead of right-out rejected because "something is broken". Things break all the time, but developers often have to live with the brokenness. Cheers -- Milian Wolff mail@milianw.de http://milianw.de