Carlo Alberto Ferraris
2011-Jun-24 16:36 UTC
[LLVMdev] Missing symbols in pass stack trace
> That's a weird one. Does addr2line work? > $ addr2line -e CGF.so <address>cafxx at ubuntu:~/Projects/llvm2/Debug+Asserts/bin$ objdump -t ../lib/CGF.so | grep flatten 0000000000005622 l F .text 0000000000000aa6 _ZN12_GLOBAL__N_111CGFFunction7flattenEv 00000000000041d6 l F .text 000000000000049c _ZN12_GLOBAL__N_111CGFCallSite7flattenEv 000000000001a600 l O .rodata 0000000000000026 _ZZN12_GLOBAL__N_111CGFCallSite7flattenEvE19__PRETTY_FUNCTION__ 0000000000019920 l O .rodata 0000000000000026 _ZZN12_GLOBAL__N_111CGFFunction7flattenEvE19__PRETTY_FUNCTION__ cafxx at ubuntu:~/Projects/llvm2/Debug+Asserts/bin$ addr2line -e ../lib/CGF.so 5622 /home/cafxx/Projects/llvm2/lib/Transforms/cgf/CGFFunction.cppi:27 the file name and line are correct... -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> website/blog <http://cafxx.strayorange.com> - +39 333 7643 235 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/465615ae/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: cafxx.vcf Type: text/x-vcard Size: 233 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/465615ae/attachment.vcf>
On Jun 24, 2011, at 12:36 PM, Carlo Alberto Ferraris wrote:> >> That's a weird one. Does addr2line work? >> $ addr2line -e CGF.so <address> > cafxx at ubuntu:~/Projects/llvm2/Debug+Asserts/bin$ objdump -t ../lib/CGF.so | grep flatten > 0000000000005622 l F .text 0000000000000aa6 _ZN12_GLOBAL__N_111CGFFunction7flattenEv > 00000000000041d6 l F .text 000000000000049c _ZN12_GLOBAL__N_111CGFCallSite7flattenEv > 000000000001a600 l O .rodata 0000000000000026 _ZZN12_GLOBAL__N_111CGFCallSite7flattenEvE19__PRETTY_FUNCTION__ > 0000000000019920 l O .rodata 0000000000000026 _ZZN12_GLOBAL__N_111CGFFunction7flattenEvE19__PRETTY_FUNCTION__ > cafxx at ubuntu:~/Projects/llvm2/Debug+Asserts/bin$ addr2line -e ../lib/CGF.so 5622 > /home/cafxx/Projects/llvm2/lib/Transforms/cgf/CGFFunction.cppi:27 > > the file name and line are correct…I meant on the stack trace, for your initial trace: $ addr2line -e CGF.so 0x00007f640b6a24fd> > -- > Carlo Alberto Ferraris <cafxx at strayorange.com> > website/blog - +39 333 7643 235 > <cafxx.vcf>_______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdevThanks, Justin Holewinski -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/e6e1d487/attachment.html>
On Jun 24, 2011, at 1:12 PM, Carlo Alberto Ferraris wrote:> >> I meant on the stack trace, for your initial trace: >> >> $ addr2line -e CGF.so 0x00007f640b6a24fd > It doesn't work (it prints ??:0) I guess because it's PIC code (in the address above the blue part changes at each invocation of opt)Seems to be some issue with gdb not being able to read all of the debug symbols. I'm not sure what else to try.> > -- > Carlo Alberto Ferraris <cafxx at strayorange.com> > website/blog - +39 333 7643 235 > <cafxx.vcf>Thanks, Justin Holewinski -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/355a2c63/attachment.html>
Carlo Alberto Ferraris
2011-Jun-24 18:15 UTC
[LLVMdev] Missing symbols in pass stack trace
> I meant on the stack trace, for your initial trace: > > $ addr2line -e CGF.so *0x00007f640b6a24fd*It doesn't work (it prints ??:0) I guess because it's PIC code (in the address above the blue part changes at each invocation of opt) -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> website/blog <http://cafxx.strayorange.com> - +39 333 7643 235 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/ed0e2da4/attachment.html>
Carlo Alberto Ferraris
2011-Jun-26 04:45 UTC
[LLVMdev] [Help needed!] Missing symbols in loadable pass
Il 24/06/2011 20:04, Justin Holewinski ha scritto:> Seems to be some issue with gdb not being able to read all of the > debug symbols. I'm not sure what else to try.Anybody else has any suggestions? Basically the problem is: how can I make stack traces in opt to show the symbols (function/line) of my modulepass (loadable module, PIC, based on the hello pass)? -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> website/blog <http://cafxx.strayorange.com> - +39 333 7643 235 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110626/69f202ba/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: cafxx.vcf Type: text/x-vcard Size: 233 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110626/69f202ba/attachment.vcf>