Your message dated Mon, 06 Jun 2011 22:47:41 +0000
with message-id <[email protected]>
and subject line Bug#629147: fixed in binutils 2.21.52.20110606-1
has caused the Debian Bug report #629147,
regarding [RFC/PATCH] binutils: add a presubj file explaining how to make 
self-contained testcases
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
629147: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629147
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: binutils
Version: 2.21.51.20110601-1
Severity: wishlist

Hi,

It is very tempting for people to report toolchains in the terms of
their own experience, like "Building frobber makes ld segfault".
Which is good for us to know, so I wouldn't like to dissuade such
people, but it's not a good starting point for later investigation.

A more convenient report, as binutils/README in the source tree
explains, will include the immediate input files used to trigger the
problem and a command line explaining how to reproduce it.  That has
many benefits:

 - investigators don't have to track down where to find the
   source of frobber and binaries for its dependencies on the
   affected platform;

 - it makes the problem reproducible, without depending on details
   of the higher-level toolchain used to create the input;

 - it gives the reporter a chance to make a more minimal testcase
   and think of the problem in terms of what ld is doing.  Maybe
   someone will tweak the commandline and be able to find an
   even more well defined bug: "using -z foo causes ld to segfault".

On the other hand, receiving multi-megabyte files by email is never
fun, and the wording below could probably use some tweaking in other
ways.

What do you think?  It would also be nice to install binutils/README
(and similar files) verbatim under /usr/share/doc somewhere.  I'll
file another bug for that if a spare moment comes to write a patch
for it.
---
 debian/binutils.presubj |   25 +++++++++++++++++++++++++
 debian/changelog        |    8 ++++++++
 debian/rules            |   20 ++++++++++++++++++++
 3 files changed, 53 insertions(+), 0 deletions(-)
 create mode 100644 debian/binutils.presubj

diff --git a/debian/binutils.presubj b/debian/binutils.presubj
new file mode 100644
index 0000000..430e6e4
--- /dev/null
+++ b/debian/binutils.presubj
@@ -0,0 +1,25 @@
+When reporting binutils errors, please provide the actual input files
+and options given to the tool (gas, objcopy, ld, etc.) at run time.
+This can mean the difference between a pleasant debugging experience
+and a heisenbug that becomes unreproducible when gcc's code generation
+changes.
+
+For example, to create a testcase for an "ld" problem, first find the
+"gcc" command line that triggers the error:
+
+ $ make
+ ... output ending in an error ...
+ $ make V=1 VERBOSE=1 2>&1 | head -1
+
+Add "-v" after gcc and run it again.  One of the early output lines
+will be an invocation of collect2.  Replace collect2 with "ld" and
+it should reproduce the same error.  If you collect all the objects
+(including system libraries) mentioned on the "ld" command line in a
+tarball and send it along with the ld command line then that is a
+testcase.
+
+A possible step after that is to try omitting some objects from the
+ld command line and see if it still triggers the same error, but
+that's just icing on the cake.
+
+Happy debugging!
diff --git a/debian/changelog b/debian/changelog
index 1f9e994..761bf53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+binutils (2.21.51.20110601-1.1) local; urgency=low
+
+  * Add a /usr/share/bug/binutils/presubj file for reportbug (and symlinks
+    from the other /usr/share/bug/binutils-foo directories) explaining how
+    to make a self-contained testcase.
+
+ -- Jonathan Nieder <[email protected]>  Fri, 03 Jun 2011 16:41:38 -0500
+
 binutils (2.21.51.20110601-1) experimental; urgency=low
 
   * Snapshot, taken from the trunk 20110601.
diff --git a/debian/rules b/debian/rules
index 41ec64c..2d08cfb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -919,6 +919,26 @@ else
                $$i > $${i%*.in}; \
        done
 
+       : # install bug reporting information
+       $(install_file) -D debian/$(p_bin).presubj \
+               $(d_bin)/$(PF)/share/bug/$(p_bin)/presubj
+ifeq ($(with_multiarch),yes)
+       $(install_dir) $(d_mul)/$(PF)/share/bug
+       ln -sf $(p_bin) $(d_mul)/$(PF)/share/bug/$(p_mul)
+endif
+ifeq ($(with_gold),yes)
+       $(install_dir) $(d_gold)/$(PF)/share/bug
+       ln -sf $(p_bin) $(d_gold)/$(PF)/share/bug/$(p_gold)
+endif
+ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64))
+       $(install_dir) $(d_spu)/$(PF)/share/bug
+       ln -sf $(p_bin) $(d_spu)/$(PF)/share/bug/$(p_spu)
+endif
+ifeq ($(DEB_HOST_ARCH),hppa)
+       $(install_dir) $(d_hppa64)/$(PF)/share/bug
+       ln -sf $(p_bin) $(d_hppa64)/$(PF)/share/bug/$(p_hppa64)
+endif
+
        : # make lintian happy
        $(install_file) -D debian/$(p_bin).overrides \
                $(d_bin)/$(PF)/share/lintian/overrides/$(p_bin)
-- 
1.7.5.3




--- End Message ---
--- Begin Message ---
Source: binutils
Source-Version: 2.21.52.20110606-1

We believe that the bug you reported is fixed in the latest version of
binutils, which is due to be installed in the Debian FTP archive:

binutils-dev_2.21.52.20110606-1_amd64.deb
  to main/b/binutils/binutils-dev_2.21.52.20110606-1_amd64.deb
binutils-doc_2.21.52.20110606-1_all.deb
  to main/b/binutils/binutils-doc_2.21.52.20110606-1_all.deb
binutils-gold_2.21.52.20110606-1_amd64.deb
  to main/b/binutils/binutils-gold_2.21.52.20110606-1_amd64.deb
binutils-multiarch_2.21.52.20110606-1_amd64.deb
  to main/b/binutils/binutils-multiarch_2.21.52.20110606-1_amd64.deb
binutils-source_2.21.52.20110606-1_all.deb
  to main/b/binutils/binutils-source_2.21.52.20110606-1_all.deb
binutils_2.21.52.20110606-1.diff.gz
  to main/b/binutils/binutils_2.21.52.20110606-1.diff.gz
binutils_2.21.52.20110606-1.dsc
  to main/b/binutils/binutils_2.21.52.20110606-1.dsc
binutils_2.21.52.20110606-1_amd64.deb
  to main/b/binutils/binutils_2.21.52.20110606-1_amd64.deb
binutils_2.21.52.20110606.orig.tar.gz
  to main/b/binutils/binutils_2.21.52.20110606.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated binutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 07 Jun 2011 00:03:47 +0200
Source: binutils
Binary: binutils binutils-dev binutils-multiarch binutils-gold binutils-hppa64 
binutils-spu binutils-doc binutils-source
Architecture: source all amd64
Version: 2.21.52.20110606-1
Distribution: unstable
Urgency: low
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description: 
 binutils   - The GNU assembler, linker and binary utilities
 binutils-dev - The GNU binary utilities (BFD development files)
 binutils-doc - Documentation for the GNU assembler, linker and binary utilities
 binutils-gold - The (experimental) GNU gold linker utility
 binutils-hppa64 - The GNU assembler, linker and binary utilities targeted for 
hppa6
 binutils-multiarch - Binary utilities that support multi-arch targets
 binutils-source - The GNU assembler, linker and binary utilities (source)
 binutils-spu - The GNU assembler, linker and binary utilities targeted for 
spu-e
Closes: 604696 628770 628916 629147
Changes: 
 binutils (2.21.52.20110606-1) unstable; urgency=low
 .
   * Snapshot, taken from the trunk 20110606.
     - Fix PR ld/12833. Closes: #628770.
     - Fix spelling errors. Closes: #604696.
   * Let gold accept a dummy -z buildd-<random-string> option.
   * Add a /usr/share/bug/binutils/presubj file for reportbug (and symlinks
     from the other /usr/share/bug/binutils-foo directories) explaining how
     to make a self-contained testcase (Jonathan Nieder). Closes: #629147.
   * Fix ld crash cause of invalid pointer in munmap_chunk. Closes: #628916.
Checksums-Sha1: 
 6d1011e07bf7263d1eaba8244a750c8172d83983 1490 binutils_2.21.52.20110606-1.dsc
 f159177a78873cc135bc9d72de11b07dc771e29f 23398869 
binutils_2.21.52.20110606.orig.tar.gz
 783ae7c0b6fe55569ad18ec11f957df227eca5b4 67906 
binutils_2.21.52.20110606-1.diff.gz
 56295bb0cf9d4f500f09ce511417bda9c0256d3b 571466 
binutils-doc_2.21.52.20110606-1_all.deb
 dc462db6e2c67b2ad3b80ca6eff6c4a2b3542a82 13593046 
binutils-source_2.21.52.20110606-1_all.deb
 7f33ff0be43a782b6cb4462e55406ed2f80cf226 4770230 
binutils_2.21.52.20110606-1_amd64.deb
 040e7eb26641a58bd7310ffab3fdacb39d9979e7 4072940 
binutils-dev_2.21.52.20110606-1_amd64.deb
 c9351d0b174090ea56da1a7d1c13ac6735e7260b 2165002 
binutils-multiarch_2.21.52.20110606-1_amd64.deb
 f9b387fbe2b0b9f21a9f21f1265c122153660aa6 1488 
binutils-gold_2.21.52.20110606-1_amd64.deb
Checksums-Sha256: 
 05a88e15f41afe8aa0b4f6c055d2008eb346f560f98374c58949c1c56e84de3e 1490 
binutils_2.21.52.20110606-1.dsc
 8d227f5a8d7ececdc8451e7de427d71f9fd284ef7e2a27baf4d5a07f0a3a777c 23398869 
binutils_2.21.52.20110606.orig.tar.gz
 e3a03825ad9e66255ec4463545b9f5dab39a485cc1d85dfbd6b861fa1b4ed675 67906 
binutils_2.21.52.20110606-1.diff.gz
 d1799c1ebf587ad36999e6e4354cb8c4f1aabee4b66a146d3cfd7ba51623775f 571466 
binutils-doc_2.21.52.20110606-1_all.deb
 576c2a81fddb9e5f4b861d00da4a7429f6be35a631d22bdbcb3a07a95fec0afe 13593046 
binutils-source_2.21.52.20110606-1_all.deb
 46a6ef027ebae187e2735dfe0e6a71cc5a731d18af237ee4062661fb7f1ef2ec 4770230 
binutils_2.21.52.20110606-1_amd64.deb
 4673d00fff993a4f777b140a0648ebe111edbf43462ef0d135f3de4fad356c94 4072940 
binutils-dev_2.21.52.20110606-1_amd64.deb
 0972a01fca8ca106b26a469ad184169bbe8228c4469eb5e4daca60452f0f8cad 2165002 
binutils-multiarch_2.21.52.20110606-1_amd64.deb
 322c3afbf0ac583cb8970464f47b0d83d547658720432cde3ec7ab9a0e47acc8 1488 
binutils-gold_2.21.52.20110606-1_amd64.deb
Files: 
 cc44bb92b63fae189ca7c6751522b890 1490 devel optional 
binutils_2.21.52.20110606-1.dsc
 328282d0c0bdc8d44b28d25c39af8f98 23398869 devel optional 
binutils_2.21.52.20110606.orig.tar.gz
 64b226bc5c32e6e528672313728e1f17 67906 devel optional 
binutils_2.21.52.20110606-1.diff.gz
 2256260b6f2cf1b605b9537a57e9321e 571466 doc optional 
binutils-doc_2.21.52.20110606-1_all.deb
 b494115e2b647bbb52e3c8d5ee75b303 13593046 devel optional 
binutils-source_2.21.52.20110606-1_all.deb
 2288dc7b63a6d8f9a0de126c69d94f99 4770230 devel optional 
binutils_2.21.52.20110606-1_amd64.deb
 d6ecbb3e7d1eca49a43947108a0bdb00 4072940 devel extra 
binutils-dev_2.21.52.20110606-1_amd64.deb
 30f1e27e3eec2faf4406cc5841ae9e3b 2165002 devel extra 
binutils-multiarch_2.21.52.20110606-1_amd64.deb
 37f8dfd1903f2a3770547fcce8b86361 1488 devel extra 
binutils-gold_2.21.52.20110606-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3tVBwACgkQStlRaw+TLJwRuACgm3YFvO8U7xs/EFCKFgKUlVZN
w7QAoK/9Dv06dWdRofeTQOOarFl1qRKi
=4OBS
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to