Bug 29977 - Debug-Symbole für bind9 unvollständig
Debug-Symbole für bind9 unvollständig
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: DNS
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 3.2-8-errata
Assigned To: Philipp Hahn
Stefan Gohmann
:
Depends on: 25868
Blocks: 28748
  Show dependency treegraph
 
Reported: 2013-01-09 16:25 CET by Philipp Hahn
Modified: 2017-02-06 12:04 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-01-09 16:25:23 CET
+++ This bug was initially created as a clone of Bug #25868 comment 12 +++

Um diese in Zukunft analysieren zu können wurde das Debian-Paket so gepatched,
daß dort nun auch in bind9-dbg-Paket mit den Debug-Symbolen gebaut wird. Neben
dem core-File selbst wäre hier zukünftige auch die Information hilfreich,
welche abhängigen Bibliotheken in welchen Versionen verwendet werden bzw. beim
bauen verwendet wurden.


Die Änderung war ungenügent: Zwar wird ein bind9-dbg-Paket gebaut, jedoch enthält dies nicht die vollständigen Debug-Informationen, so daß eine Analyse von core-Dupms weiterhin nicht möglich ist.
Dazu muß DEB_BUILD_OPTIONS=debug aktiviert werden.

patches/bind9/3.1-0-0-ucs/1:9.8.0.P4-1/020_25868_bind9-dbg.patch:

diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -11,9 +11,9 @@ binary-arch: build install
 endif
 export arch = $(DEB_HOST_ARCH)
 
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+#ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 DEBUG = -g
-endif
+//endif
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 OPT =
@@ -168,7 +168,7 @@ binary-arch: build install
 	    install -m 644 -D debian/bind9.apport debian/bind9/usr/share/apport/package-hooks/bind9.py; \
 	fi
 	dh_link -a
-	dh_strip -a
+	dh_strip -a --dbg-package=bind9-dbg
 	dh_compress -a
 	dh_fixperms -a
 	dh_makeshlibs -a
Comment 1 Philipp Hahn univentionstaff 2016-05-18 11:46:25 CEST
Needed for Ticket #2016050421000441
Comment 2 Philipp Hahn univentionstaff 2016-07-01 12:16:57 CEST
Ticket#2016061421000591

r16606 | Bug #29977 bind9: Fix debug symbol generation
r16607 | Bug #29977 bind9: Fix debug symbol generation
r16608 | Bug #29977 bind9: Fix debug symbol generation

Package: bind9
Version: 1:9.8.4.dfsg.P1-6+nmu2.120.201607011019
Branch: ucs_3.2-0
Scope: errata3.2-8

r70758 | Bug #39544, Bug #29977: bind9 YAML 3.2-8
 bind9.yaml


QA: kill -SEGV $(</etc/runit/univention-bind/supervise/pid)
FYI: The gdb in 3.2-8 is still too old to debug PIE executables
Comment 3 Stefan Gohmann univentionstaff 2016-07-06 17:15:09 CEST
YAML: OK

Tests: OK

Old version:
root@master321:~# gdb /usr/sbin/named | grep -i '^(no debugging symbols found)'
(no debugging symbols found)...done.
root@master321:~# 

New version:
root@master391:~# gdb /usr/sbin/named | grep -i '^(no debugging symbols found)'
root@master391:~#
Comment 4 Janek Walkenhorst univentionstaff 2016-07-07 13:45:55 CEST
<http://errata.software-univention.de/ucs/3.2/440.html>