[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 Alan Modra changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |OBSOLETE --- Comment #11 from Alan Modra --- Yes, this must be an oprofile issue. -- You are receiving this mail because: You are on the CC list for the bug.
Re: [Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
Hi Marco, >> I doubt if this is the same as oprofile will produce, but both tools >> will be displaying processed DWARF line number information so they >> should be roughly equivalent. > > The objdump output looks fine. Does that mean the issue has to be in Oprofile? Not "has to", but it is definitely the current most likely suspect. I am not familiar with oprofile, so I cannot help debug it, but if someone else is able to delve into it that would be a great help. Cheers Nick ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 --- Comment #7 from Marco Leise --- I am actually using a git checkout past 2.30 right now and the issue is still present. What is the command line you use for objdump? I.e. is there a way to make it print source lines for symbols as oprofile would? -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 --- Comment #6 from Nick Clifton --- (In reply to Marco Leise from comment #5) Hi Marco, > Hope that helps! Sorry - I have not been able to get anywhere with this. :-( Are you able to test the newer release of the binutils (2.30) to see if the problem exists there too ? My gut feeling is that this is not a binutils bug at all, but that something is producing corrupt dwarf binaries instead. Of course I cannot prove this, which is why I would like to investigate. But so far I cannot reproduce the problem. :-( Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 --- Comment #5 from Marco Leise --- I use this for callgraphs: operf --vmlinux /usr/src/linux/vmlinux --callgraph ./app_to_be_profiled opreport -c%g -t=0.1% -p=/lib/modules/`uname -r`/kernel/,/lib/modules/`uname -r`/video/ And this for detailed samples: operf --vmlinux /usr/src/linux/vmlinux ./app_to_be_profiled opreport -gd%rl -t=1% -p=/lib/modules/`uname -r`/kernel/,/lib/modules/`uname -r`/video/ The app needs no instrumentation other than - of course - debug information and should dynamically link with libc. (OProfile also displays time spent in the kernel, so I added the path to the uncompressed vmlinux and modules.) Hope that helps! -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 --- Comment #4 from Nick Clifton --- Hi Marco, > I have a similar Gentoo setup with binutils 2.29.1 and see the same errors. This is surprising. > The instructions seem outdated, as neither binutils nor gdb currently offer > the "zlib" USE-flag. A USE-flag controls configuration options and > dependencies of a package about to be compiled and installed on Gentoo. > Maybe it is auto-detected now. Yes, it is. I ran the debug files in the tarball you uploaded through objdump (which uses the BFD library) and readelf (which does not) from the 2.29 binutils release, and they were able to display the debug information without any problems. (Admittedly this was using the Fedora 27 binutils, not Gentoo). I did not try using oprofile, but that is because I do not know how to use it. Do you have an example command line that I could try ? Detection of compressed sections relies upon a special bit in the ELF section header flags (SHF_COMPRESSED). Is it possible that oprofile is somehow stripping this bit out, before calling the BFD routines ? Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 --- Comment #3 from Marco Leise --- Created attachment 10938 --> https://sourceware.org/bugzilla/attachment.cgi?id=10938=edit Compressed glibc amd64 debug information from a Gentoo system. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with "BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information"
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 Marco Leise changed: What|Removed |Added CC||Marco.Leise at gmx dot de --- Comment #2 from Marco Leise --- I have a similar Gentoo setup with binutils 2.29.1 and see the same errors. Removing "compressdebug" from FEATURES during installation of glibc fixed the problem for me. >From the Gentoo documentation: compressdebug: Compress the debug sections in the split debug files with zlib to save space. Make sure you have built both binutils and gdb with USE=zlib support for this to work. See splitdebug for general split debug information (upon which this feature depends). The instructions seem outdated, as neither binutils nor gdb currently offer the "zlib" USE-flag. A USE-flag controls configuration options and dependencies of a package about to be compiled and installed on Gentoo. Maybe it is auto-detected now. In any case zlib is installed. This was the patch that introduced "compressdebug" in Gentoo: https://archives.gentoo.org/gentoo-portage-dev/message/fabff63fccb0bce10b4f93fcf4acf3e1 You can see the compiler/linker flags used to make it work. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/18616] oprofile fails with BFD: Dwarf Error: found dwarf version '64617', this reader only handles version 2, 3 and 4 information
https://sourceware.org/bugzilla/show_bug.cgi?id=18616 Nick Clifton nickc at redhat dot com changed: What|Removed |Added Status|NEW |WAITING CC||nickc at redhat dot com --- Comment #1 from Nick Clifton nickc at redhat dot com --- Hi Daniel, Please could you upload a test binary that demonstrates this problem, so that we can investigate further. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils