From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90174 invoked by alias); 12 Feb 2019 06:47:55 -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 90061 invoked by uid 89); 12 Feb 2019 06:47:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:U*mark X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Feb 2019 06:47:53 +0000 Received: from librem.wildebeest.org (deer0x15.wildebeest.org [172.31.17.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id ED65C302BBFF; Tue, 12 Feb 2019 07:47:50 +0100 (CET) Received: by librem.wildebeest.org (Postfix, from userid 1000) id 90E6813F7E4; Tue, 12 Feb 2019 07:47:50 +0100 (CET) Date: Tue, 12 Feb 2019 06:47:00 -0000 From: Mark Wielaard To: Sasha Da Rocha Pinheiro Cc: "elfutils-devel@sourceware.org" , Ben Woodard Subject: Re: unknown error after dwarf_cfi_addrframe() Message-ID: <20190212064750.GE10699@wildebeest.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Flag: NO X-IsSubscribed: yes X-SW-Source: 2019-q1/txt/msg00128.txt.bz2 On Tue, Feb 12, 2019 at 01:15:45AM +0000, Sasha Da Rocha Pinheiro wrote: > I found that when libdw will try to get the base CFI from the ABI, the function ebl_abi_cfi() ends calling default_abi_cfi() which returns -1, when should be calling x86_64_abi_cfi(). > In addition, the symbol x86_64_abi_cfi in the file libdw.so is not present, but all the respective default_* ones are. > It seems that the library is being compiled using BACKEND as default and not catching the correct architecture (?). Maybe you are using an elfutils install in a non-default location? The backends are loaded dynamically and it looks like they aren't found. If you build and installed with e.g. --prefix=/opt/local/install/elfutils Try setting the environment variable LD_LIBRARY_PATH to: /opt/local/install/elfutils/lib:/opt/local/install/elfutils/lib/elfutils The first contains the elfutils libraries libelf.so, libdw.so, etc. The second contains the backends libebl_.so > I'm trying to read frame info from .eh_frame section. But I'm getting "unknown error". That is certainly an unhelpful error message. Sorry. Cheers, Mark