Same problem here on 12.04, for libavformat53-dbgsym 4:0.8.5-0ubuntu0.12.04.1 . I don't quite understand how gdb looks up the debug library; but at least the .gnu_debuglink section in the installed lib is weird:
The section should contain the name of the debug lib, and its hash. In this case it specifies 4128c50fa8aa5600a0c2680aae85914e13fec4.debug as name (rather than libavformat.so.53.21.1 , which is the only file name installed by libavformat53-dbgsym).
Maybe this is the same problem as described in bug 1040645 which is reported and fixed for 12.10.
Same problem here on 12.04, for libavformat53- dbgsym 4:0.8.5- 0ubuntu0. 12.04.1 . I don't quite understand how gdb looks up the debug library; but at least the .gnu_debuglink section in the installed lib is weird:
$ objdump -s -j .gnu_debuglink /usr/lib/ i386-linux- gnu/i686/ cmov/libavforma t.so.53
/usr/lib/ i386-linux- gnu/i686/ cmov/libavforma t.so.53: file format elf32-i386
Contents of section .gnu_debuglink:
0000 34313238 63353066 61386161 35363030 4128c50fa8aa5600
0010 61306332 36383061 61653835 39313465 a0c2680aae85914e
0020 31336665 63342e64 65627567 00000000 13fec4.debug....
0030 3638cf88 68..
The section should contain the name of the debug lib, and its hash. In this case it specifies 4128c50fa8aa560 0a0c2680aae8591 4e13fec4. debug as name (rather than libavformat. so.53.21. 1 , which is the only file name installed by libavformat53- dbgsym) .
Maybe this is the same problem as described in bug 1040645 which is reported and fixed for 12.10.