X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Z4PEcZySk6mYmgukzf4+4X2WVOnKxCk5CIk6kU9CZctQWp42JYg9C qKBXFWT0v1JUf++MvCtsNWndOTeawGn1SOMhGO1295JvvZzZ6ihATadhqFcBKqw6 iFr/tgr2Om2Ipjrn3wD7vzPNxckotS+z6hEbR7NmFEXIbyeyFRFMVQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=D1tUywe+AtaEIa5lrZQ3aEBs9BU=; b=UsS5bfFIclVEO4AF2yNoueQ3ZFdQ Rd2cbqXTQ8w8l/8pk1WRUS/Af80vPwTQE/eJ7g3wavA7Mojw8Aa28kSoXEbxA89j v+HRto1XNEVmwQ9UimWUNOwqeCz28LBg+ZNE2O0wLSxNLBSMvBLMTybJIXUQkkVK Do20nr1p/bw8xvs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00,TVD_SUBJ_NUM_OBFU_MINFP autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Thu, 20 Nov 2014 11:19:49 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: addr2line not returning anything useful (maybe just for me?) Message-ID: <20141120101949.GM3810@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <546D8BA7 DOT 5090400 AT shaddybaddah DOT name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vTUhhhdwRI43FzeR" Content-Disposition: inline In-Reply-To: <546D8BA7.5090400@shaddybaddah.name> User-Agent: Mutt/1.5.23 (2014-03-12) --vTUhhhdwRI43FzeR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 20 17:35, Shaddy Baddah wrote: > Hi, >=20 > I can't get addr2line to give me anything useful on any stackdump files. >=20 > I haven't used it for a while, so perhaps the following snippet will > show my incorrect use? >=20 > > $ cat > /tmp/foo.c << EOF > > int main() { ((void (*)(void))0)(); } > > EOF > $ gcc -g -o /tmp/foo2 /tmp/foo2.c > $ /tmp/foo2 > Segmentation fault (core dumped) > $ addr2line -f -e /tmp/foo2.exe < foo2.exe.stackdump > ?? > ??:0 That doesn't work. Did you inspect the stackdump file with an editor? Try something like $ awk '/^[0-9]/{print $2;}' foo2.exe.stackdump | addr2line -f -e /tmp/foo2.= exe Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --vTUhhhdwRI43FzeR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUbcBFAAoJEPU2Bp2uRE+gEOQP/3wwj81t602UfSVc5I7TkXrP PlpEde2SC0MDXR41jC14hdAQjHtxYnQWWinX7IjFSzeflrAW1Pyd3CRuTyVYUY0O tI9uuwHHtTtaWBpd4umkZjy0Hs40fg1paGRhiU6K0lPnSFItSKpDSItv7/Xat96n qujNoDJpFyWWazcZFmVFPBvU8VWOxcsLcOQra2vbIaZDtBxuaKgpUDBPoQO7gnrR CdEAVOI9HcbdMQOaLqYrcsqTBqoXNWxl52JxUas4rhYdbWPFDmXYQAqE4VqNge02 pgfLLnqI1Tu1Ad/8vERevnPCkrevpIsFxvQXuR1wmvkiM/1B4sgDGH6O+OJmV2eE +H/s8z5SPY5sOD+1KtLXtt0XzMdF65M7h06x6ROcILfIGdn08lmsG8A6YU0ON+Pw fICdn/IHaR0ajd4mu2fy8sk7eQ9i9JA6Nvtn/f5XuqICgnbl1XGKPARxXFNSBwqj q24QFYuahfMFM4bGbn1j/X35ETQzhtr9y79a51mSmzD1xr+E6AyqR/nupg0XYOj5 jMo6azfLyZaSXpOgj0Xr6tNy9hNI/Rr1nV33AeJM+LKm3fT5NTfc+2QLu7sTi4QC A074KAx4pnu/LKZxDPyoGe8cIBO80nlMXRt80pTyVaQMrl4iM0Dqp0C2y/w0Ah5G QrQHjVjxtLuJOmCEionS =tVB4 -----END PGP SIGNATURE----- --vTUhhhdwRI43FzeR--