* addr2line not returning anything useful (maybe just for me?)
@ 2014-11-20 6:35 Shaddy Baddah
2014-11-20 10:19 ` Corinna Vinschen
0 siblings, 1 reply; 3+ messages in thread
From: Shaddy Baddah @ 2014-11-20 6:35 UTC (permalink / raw)
To: cygwin
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?
<snip>
$ 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
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
</snip>
This was the case x86 and x86_64.
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: addr2line not returning anything useful (maybe just for me?)
2014-11-20 6:35 addr2line not returning anything useful (maybe just for me?) Shaddy Baddah
@ 2014-11-20 10:19 ` Corinna Vinschen
2014-11-20 12:11 ` Shaddy Baddah
0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2014-11-20 10:19 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 820 bytes --]
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?
>
> <snip>
> $ 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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: addr2line not returning anything useful (maybe just for me?)
2014-11-20 10:19 ` Corinna Vinschen
@ 2014-11-20 12:11 ` Shaddy Baddah
0 siblings, 0 replies; 3+ messages in thread
From: Shaddy Baddah @ 2014-11-20 12:11 UTC (permalink / raw)
To: cygwin
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?
>>
>> <snip>
>> $ 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-20 12:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20 6:35 addr2line not returning anything useful (maybe just for me?) Shaddy Baddah
2014-11-20 10:19 ` Corinna Vinschen
2014-11-20 12:11 ` Shaddy Baddah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).