Interestingly, xorg-server tries this:
dh_strip -pxserver-xorg-core --dbg-package=xserver-xorg-core-dbg
dh_strip -s --remaining-packages

Unfortunately that is wishful thinking, because dh_strip does not have
any --remaining-packages option.

I have tested that my fix works on the mesa packages. See the attachment
for details on what happens at which steps in the stripping processes.


** Attachment added: "mesa-build-dbgsym-analysis.txt"
   http://launchpadlibrarian.net/44982364/mesa-build-dbgsym-analysis.txt

** Description changed:

+ Update: Probably affects all packages which happen to run dh_strip twice
+ on the same binary package.
+ 
  Binary package hint: xserver-xorg-core-dbg
- 
  
  After upgrading to Lucid, I get the following error when trying
  to debug xorg:
  
  $ gdb /usr/bin/Xorg
  GNU gdb (GDB) 7.1-ubuntu
  Copyright (C) 2010 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "x86_64-linux-gnu".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  Reading symbols from /usr/bin/Xorg...
  warning: the debug information found in "/usr/lib/debug//usr/bin/Xorg" does 
not match "/usr/bin/Xorg" (CRC mismatch).
  
- 
- warning: the debug information found in "/usr/lib/debug/usr/bin/Xorg" does 
not match "/usr/bin/Xorg" (CRC mismatch).
+ warning: the debug information found in "/usr/lib/debug/usr/bin/Xorg"
+ does not match "/usr/bin/Xorg" (CRC mismatch).
  
  (no debugging symbols found)...done.
- (gdb) 
- 
+ (gdb)
  
  It worked just fine on 9.10.
  
  I've version 2:1.7.6-2ubuntu3 installed, on amd64.
  
  If you need more information, please let me know.
  
  Thanks,
-      Alberto
+      Alberto

-- 
many -dbg packages have debug symbols mismatch
https://bugs.launchpad.net/bugs/562418
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to