From: v.ondruch@... Date: 2016-11-14T15:37:42+00:00 Subject: [ruby-core:78124] [Ruby trunk Bug#12934] Make compressed debug section optional Issue #12934 has been updated by Vit Ondruch. I am just extracting some bits of discussion in the RPM [1] ticket: ``` --- Additional comment from Mark Wielaard on 2016-11-14 13:36:50 CET --- --compress-debug-sections=zlib doesn't really make sense when using dwz. And various tools don't support it anyway. It causes slow startup of tracing, performance or debugging tools using more memory. elfutils 0.165+ does support compressed debug sections (both the new gabi zlib and gnu zlib styles) but dwz doesn't. On Fedora binutils compressed debug sections are disabled by default, so it shouldn't be an issue there. If you are seeing this issue on Fedora then it is a bug in the binutils package (or the package/build accidentally enabled it). In other cases it is probably best to just always make sure the sections are uncompressed running eu-elfcompress --type=none FILE. --- Additional comment from Mark Wielaard on 2016-11-14 16:21:15 CET --- (In reply to V��t Ondruch from comment #5) > > > > In other cases it is probably best to just always make sure the sections are > > > > uncompressed running eu-elfcompress --type=none FILE. > > > > > > Why this is not done by default, if the tooling discovers there is > > > compressed debug info? > > > > Because most tooling doesn't deal with compressed ELF sections. Compressed > > ELF sections and eu-elfcompress is relatively new (only a couple of months > > since the first stable release). So it never has been an issue. > > And if people do use compressed ELF sections it exposes issues like this. > > So my question is will you eventually support this (i.e. keep this RFE > open), or are you going to reject this based on the statement below? :) > > > Personally I would encourage people to disable and ignore it. The real "fix" would be to get all tools, like dwz in this case, to handle it. Adding an eu-elfcompress --type=none call for all files that rpm might feed to tools that manipulate ELF files is kind of a kludge IMHO. Better done at the package level if they have to deal with compressed ELF sections anyway. But maybe the rpm maintainers might decide that is a good thing. I won't close this RFE myself. ``` [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1394759 ---------------------------------------- Bug #12934: Make compressed debug section optional https://bugs.ruby-lang.org/issues/12934#change-61487 * Author: Vit Ondruch * Status: Open * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: ruby 2.4.0dev (2016-11-10 trunk 56693) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- r56445 introduces "--compress-debug-sections=zlib" flag to compress the debug section. Unfortunately, it seems that the compressed sections are not well handled by RPM. Ruby package build log now contains plenty of messages such as: ``` /usr/lib/rpm/debugedit: /builddir/build/BUILDROOT/ruby-2.4.0-0.1.r56693.fc26.x86_64/usr/lib64/libruby.so.2.4.0: DWARF version 0 unhandled ``` I am afraid, that the debug sections are not properly stripped of and moved into -debuginfo subpackages as the should. I opened discussion about this on Fedora devel ML [1], but the only suggestion I get so far was to revert this patch. Since I don't think carrying patches around is good idea, would it be possible to make this configurable? I am also asking RPM guys if they can add support for the compressed debug sections. [1]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/225MNNCTUXP22BOI3VAGH3RE6NWGT7PC/ [2]: https://bugzilla.redhat.com/show_bug.cgi?id=1394759 -- https://bugs.ruby-lang.org/ Unsubscribe: