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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=NE0c+ISsvRtGgI+S3R/AJll9s5dNsoYRyveVay6QenL eYsso1aHSsEJWvczdW+S0xk1fJ2rr6wFnpuHXQ13gFgWOoivGSpYwKCRUOktrig4 tkaMfbRgSkNKN1zUZHieaw/0AJiFZ5ZCW2qnz64HQZ4wiE8uBxS451w4H8r4uRsk = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=JxRYiqs0l94qfRwdvb4rv3d9DtA=; b=LFzE4aecuG7OGqUM1 uKp6I8vcIcbeqfuvD5elEfoUynzRLv9OzElNNXUBmbwL4rgCdaIPRtGlgeSHCczH oe3d/Ti2IoZSB6IwKC9iEgU1Kx8/3S3RMBrEUblaI9TprRNB8wI7RMDL73vX+JYf /ZsIRp+4C4owwmBb48u8ko6AE8= 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=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: mail6.worldispnetwork.com Message-ID: <546DDA57.2050901@shaddybaddah.name> Date: Thu, 20 Nov 2014 23:11:03 +1100 From: Shaddy Baddah User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.7.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: addr2line not returning anything useful (maybe just for me?) References: <546D8BA7 DOT 5090400 AT shaddybaddah DOT name> <20141120101949 DOT GM3810 AT calimero DOT vinschen DOT de> In-Reply-To: <20141120101949.GM3810@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hi, On 20/11/14 21:19, Corinna Vinschen wrote: > On Nov 20 17:35, Shaddy Baddah wrote: >> Hi, >> >> I can't get addr2line to give me anything useful on any stackdump files. >> >> I haven't used it for a while, so perhaps the following snippet will >> show my incorrect use? >> >> >> $ 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 Yep. That does the trick at least on x86. Unfortunately, I'm getting no love on x86_64, but that's because the stackdump file actually contains no frame lines at all: Exception: STATUS_ACCESS_VIOLATION at rip=00000000000 rax=0000000000000000 rbx=000000000023AAF0 rcx=0000000000000001 rdx=0000000000000000 rsi=0000000600058EC0 rdi=000000000023AB32 r8 =00007FFAC1FE0000 r9 =00000000002325A0 r10=00007FFAC21152E0 r11=00000000002327F0 r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=000000000023AB32 rbp=000000000023AAA0 rsp=000000000023AA78 program=c:\Users\Public\Temp\cygwin64\foo2.exe, pid 15200, thread main cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B Stack trace: Frame Function Args End of stack trace It's not an urgent issue or anything, but I'd be grateful if someone confirm it happens to them too, bonus for why. -- Regards, Shaddy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple