Package: wireshark
Version: 1.2.6-5
Severity: wishlist
Tags: patch

When investigating #574086 which I reported yesterday, I first tried
adding a -dbg to the locally built package. However, I found that gdb is
quite useless for the executables built from the wireshark source
package:

,----
| warning: The current binary is a PIE (Position Independent Executable), which
| GDB does NOT currently support.  Most debugger features will fail if used
| in this session.
`----

gdb isn't even able to resolve the debug symbols for printing a
backtrace...

After a lot of wasted time looking at the build system's output, it
finally dawned on me that usage of hardening-wrapper was the cause for
these "weird" executables.

Apparently, patches for gdb have existed for a while that enable it to
deal with position-independent executables, and they may even end up in
version 7.1 of gdb which might even be released before squeeze is
frozen.

Shipping debugging symbols and building wireshark in a way that makes it
possible or easier to use those would greatly benefit users. (I am
certain that this would have saved me a _lot_ of time.)

Please consider shipping a -dbg package 

Please consider disabling PIEs until we (Debian) have a debugger that
can handle those.

Thanks,
-Hilko

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wireshark depends on:
ii  libatk1.0-0          1.28.0-1            The ATK accessibility toolkit
ii  libc-ares2           1.7.0-1             library for asyncronous name resol
ii  libc6                2.10.2-6            Embedded GNU C Library: Shared lib
ii  libcairo2            1.8.10-3            The Cairo 2D vector graphics libra
ii  libcomerr2           1.41.10-1           common error description library
ii  libfontconfig1       2.8.0-2             generic font configuration library
ii  libfreetype6         2.3.11-1            FreeType 2 font engine, shared lib
ii  libgcrypt11          1.4.5-2             LGPL Crypto library - runtime libr
ii  libglib2.0-0         2.22.4-1            The GLib library of C routines
ii  libgnutls26          2.8.5-2             the GNU TLS library - runtime libr
ii  libgtk2.0-0          2.18.7-1            The GTK+ graphical user interface 
ii  libk5crypto3         1.8+dfsg~alpha1-7   MIT Kerberos runtime libraries - C
ii  libkrb5-3            1.8+dfsg~alpha1-7   MIT Kerberos runtime libraries
ii  libpango1.0-0        1.26.2-1            Layout and rendering of internatio
ii  libpcap0.8           1.0.0-6             system interface for user-level pa
ii  libpcre3             7.8-3               Perl 5 Compatible Regular Expressi
ii  libportaudio2        19+svn20071022-3+b1 Portable audio I/O - shared librar
ii  libsmi2ldbl          0.4.8+dfsg2-2       library to access SMI MIB informat
ii  wireshark-common     1.2.6-5             network traffic analyzer - common 
ii  zlib1g               1:1.2.3.4.dfsg-3    compression library - runtime

wireshark recommends no packages.

wireshark suggests no packages.

-- no debconf information
--- wireshark-1.2.6/debian/control	2010-02-15 19:45:02.000000000 +0100
+++ wireshark/debian/control	2010-03-17 11:37:54.000000000 +0100
@@ -64,3 +64,16 @@
  .
  This package provides idl2wrs and other files necessary for developing
  new packet dissectors.
+
+Package: wireshark-dbg
+Priority: extra
+Architecture: any
+Section: debug
+Depends: wireshark-common (= ${binary:Version})
+Description: network traffic analyzer - debug symbols
+ Wireshark is a network "sniffer" - a tool that captures and analyzes
+ packets off the wire. Wireshark can decode too many protocols to list
+ here.
+ .
+ This package contains stripped debugging symbols for all Wireshark
+ programs and libraries.
--- wireshark-1.2.6/debian/rules	2010-02-15 18:49:34.000000000 +0100
+++ wireshark/debian/rules	2010-03-17 11:38:17.000000000 +0100
@@ -6,6 +6,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 export DEB_BUILD_HARDENING=1
+export DEB_BUILD_HARDENING_PIE=0
 
 DB2MAN=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
 
@@ -119,7 +120,7 @@
 
 # Build architecture-dependent files here.
 binary-arch: install check
-	dh_strip
+	dh_strip --dbg-package=wireshark-dbg
 	dh_compress
 	dh_fixperms

Reply via email to