New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find-debuginfo.sh: decompress DWARF compressed ELF sections #473
find-debuginfo.sh: decompress DWARF compressed ELF sections #473
Conversation
debugedit and dwz do not support DWARF compressed ELF sections, let's just decompress those before extracting debuginfo. Tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
This is causing test-suite failures on the following tests: |
|
@pmatilai update elfutils. |
|
Okay that helps, but requiring a bleeding-edge elfutils for normal operation is not that great... |
|
@pmatilai that's kinda 2-sided problem. On one side if you have your binary with compressed ELF sections, then find-debuginfo would not find anything and just fail your build... On the other side, just tests fail if you have old elfutils. |
|
On Tue, 2018-07-31 at 02:48 -0700, Igor Gnatenko wrote:
@pmatilai that's kinda 2-sided problem. On one side if you have your
binary with compressed ELF sections, then find-debuginfo would not
find anything and just fail your build... On the other side, just
tests fail if you have old elfutils.
Some of those tests are pretty important though.
It means that files will loose their suid bit.
Also note that this bug fix isn't in any released elfutils yet.
I wouldn't add this unconditionally. It tries to fix something that
isn't very common (go binaries using the very latest go toolchain).
|
|
Yeah, breaking common and previously cases to fix an esoteric one is not a good deal. We'll need something else here that doesn't wreak havoc with older, widely used elfutils versions. |
|
This is also breaking our CI at the moment, which is no good either. Can we easily detect compressed sections and only call eu-elfcompress in that case? Otherwise we'll probably need to revert this for the time being at least. Requiring an explicit %attr for suid/sgid might be a perfectly reasonable thing to do overall but a random elfutils bug can't really be the driver for such a change. |
|
Apparently nothing is going to happen if I just let it be (not that it's unexpected in a case like this). Reverted as of commit fb8eb1c:
|
|
@pmatilai With latest elfutils, is this commit still posing a problem? |
debugedit and dwz do not support DWARF compressed ELF sections, let's
just decompress those before extracting debuginfo.
Tested-by: Igor Gnatenko i.gnatenko.brain@gmail.com