Public bug reported:

Following on from my investigation into LP#415424 it seems even the
"correct" way of installing pkg-create-dbgsym doesn't allow the
generation of correct debug packages.

Although the packages are usable by the likes of GDB tools like oprofile
rightly complain when they discover the CRC embedded in the library
doesn't match it's debugging counterpart.

For my case I was trying to get symbols for libcairo but this may well
be affecting other packages. The fastest way to check is running
oprofile's opreport script with the -V bfd flag and you will see
something like:

opreport -V bfd -c /usr/lib/libcairo.so.2.17.3
<snip>
looking for debugging file libcairo.so.2.17.3 with crc32 = 9c4c254e
found /usr/lib/debug/usr/lib/libcairo.so.2.17.3 with crc32 = a7af9e7
now loading: /usr/lib/debug/usr/lib/libcairo.so.2.17.3
failed to process separate debug file /usr/lib/debug/usr/lib/libcairo.so.2.17.3
bfd_info::get_symbols() for /usr/lib/debug/usr/lib/libcairo.so.2.17.3
bfd_get_symtab_upper_bound: 0
number of symbols before filtering 1
number of symbols now 1
op_bfd ctor for /usr/lib/xulrunner-1.9.0.13/libxul.so
bfd_info::get_symbols() for /usr/lib/xulrunner-1.9.0.13/libxul.so
bfd_get_symtab_upper_bound: 8
bfd_canonicalize_symtab: 0
fetching .gnu_debuglink section
.gnu_debuglink section has size 10
.gnu_debuglink filename is libxul.so
looking for debugging file libxul.so with crc32 = a87d2111
found /usr/lib/xulrunner-1.9.0.13/libxul.so with crc32 = 13d1a5c5
now loading: /usr/lib/xulrunner-1.9.0.13/libxul.so
failed to process separate debug file /usr/lib/xulrunner-1.9.0.13/libxul.so
bfd_info::get_symbols() for /usr/lib/xulrunner-1.9.0.13/libxul.so


Steps to Reproduce:

1. Install Build Stuff

apt-get build-dep cairo
apt-get install pkg-create-dbgsym

2. Build the package

apt-get source libcairo2
cd cairo-1.6.0/
dpkg-buildpackage -rfakeroot

3. Install the new packages

 sudo dpkg -i libcairo2-dbgsym_1.6.0-0ubuntu2_amd64.ddeb
libcairo2_1.6.0-0ubuntu2_amd64.deb

** Affects: pkg-create-dbgsym (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: debug symbols

-- 
Unable to create valid debug packages from some packages
https://bugs.launchpad.net/bugs/423748
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to