Home_greyopenFATE - openSUSE feature tracking > #305561
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Install Debuginfo Package by build-id

Feature state

openSUSE-11.2
Done

Description

Since SLE11 we embed build-ids into all binaries. This build-id can be used to match the corresponding debuginfo to a binary file, a running process or a core file. To make it easy for user to install the correct debuginfo, he should be able to run the following command to get the correct debuginfo package installed:

zypper install debuginfo-build-id-eb49eeaf82eff32cfbf44d94f9aa8e3cdcf0e461

Testcase

  • make sure you don't have the debuginfo
  • run gdb
  • gdb will output the command line for missing debug infos, e.g. zypper install -C "debuginfo(build-id)=41d4f203d690d7db47fbcc38c3f47a2cdcc6848f"

Discussion


icons/user_comment.png S. K. wrote: (5 years ago)

Not sure why agruen is set as engmgr, this is simply some rpm hackery.

Put a debuginfo.prov script in place, that checks the file list given and give it all /usr/lib/debug/.build-id files.

And it will transform /usr/lib/debug/.build-id/00/d9cff1044033b4781ab47388b422b07cb72708.debug into debuginfo(d9cff1044033b4781ab47388b422b07cb72708).

After that you can use zypper install -C "debuginfo(d9cff1044033b4781ab47388b422b07cb72708)" and you get kdepim4-debuginfo installed (11.1-x86_64 example).

This is an effort of half an hour without testing.

icons/user_comment.png A. G. wrote: (5 years ago)

This should work, and the debug info repository metadata should still remain reasonably small.

icons/user_comment.png S. K. wrote: (5 years ago)

the debuginfo meta data for 11.2 and sle11 contain the build ids. Zypper support is not implemented, but I don't think it's needed as it requires a 10 line shell script wrapper that can live very well in ptools

icons/user_comment.png S. K. wrote: (4 years ago)

state in factory: gdb will output the command line for missing debug infos, e.g.
zypper install -C "debuginfo(build-id)=41d4f203d690d7db47fbcc38c3f47a2cdcc6848f"

icons/user_comment.png A. O. wrote: (4 years ago)

Hi Stephan , can you add an example for missing debug infos?

icons/user_comment.png S. K. wrote: (4 years ago)

no, you can't use a generic example. you will have to try to debug something. gdb /bin/ls will do. It will output something like this (in 11.2):

Reading symbols from /bin/ls...Missing separate debuginfo for /bin/ls
Try: zypper install -C "debuginfo(build-id)=f2ec11f6e0cb0b5306e5f07fd763063747484bf6"
(no debugging symbols found)...done.

This zypper command should work.

icons/user_comment.png A. O. wrote: (4 years ago)

Stephan , this feature should work with enabled debug repo in control.xml?

Last change: 4 years ago
Voting
Score: 0
  • Negative: 0
  • Neutral: 1
  • Positive: 0
Tags
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint