Your message dated Tue, 20 Jan 2009 18:17:03 +0000
with message-id <e1lpl9r-0007kr...@ries.debian.org>
and subject line Bug#512397: fixed in wide-dhcpv6 20080615-4
has caused the Debian Bug report #512397,
regarding wide-dhcpv6-server: fails to disconnect from debconf, hanging postinst
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 ow...@bugs.debian.org
immediately.)


-- 
512397: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512397
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: wide-dhcpv6-server
Version: 20080615-1
Severity: grave
Justification: breaks upgrades

On startup, dhcp6s does not close any stray file descriptors it may have
inherited. When called from wide-dhcpv6-server.postinst, this includes
fd 3, which is a pipe to debconf. The result of this is a hang on
upgrade, with a process tree looking like this:

   1511 pts/8    Ss+    0:30                          \_ /usr/bin/dpkg 
--admindir=/var/lib/dpkg --status-fd 20 --configure libiw29 wireless-tools 
imagemagick libmagick++10 libplot2c2 libpstoedit0c2a ldap-utils li
  22001 pts/8    S+     0:04                              \_ /usr/bin/perl -w 
/usr/share/debconf/frontend /var/lib/dpkg/info/wide-dhcpv6-server.postinst 
configure 20061016-2
  22009 pts/8    Z+     0:00                                  \_ 
[wide-dhcpv6-ser] <defunct>
  22031 ?        Ss     0:00 /usr/sbin/dhcp6s -k /dev/null -P 
/var/run/dhcp6s.eth1.pid eth1

I can tell that the pipe to debconf is still open:

  $ sudo lsof -p 22001 | grep 'pipe$'
  frontend 22001 root    7w  FIFO    0,6         29433263 pipe
  frontend 22001 root    8r  FIFO    0,6         29433264 pipe
  $ sudo lsof -p 22031 | grep 'pipe$'
  dhcp6s  22031 root    3w  FIFO        0,6         29433264 pipe

wide-dhcpv6-server's postinst attempts to work around this problem by
calling db_stop to let debconf know that it's finished. However, it only
calls it if /etc/default/wide-dhcpv6-server does not exist, whereas it
sources the confmodule unconditionally (usually a good idea anyway since
sourcing the confmodule has weird semantics, re-execing the sourcing
script), so unless I'm much mistaken it seems that it will always fail
to upgrade.

Calling db_stop is at best an ugly workaround anyway. Rather than
calling db_stop, I would recommend that you make dhcp6s close all its
inherited file descriptors on startup. The usual idiom for this is
something like this (and no, as far as I know there is nothing neater):

  int fd;
  for (fd = 3; fd < 1024; ++fd)
    close(fd);

The daemon(0, 0) call that dhcp6s already makes will take care of file
descriptors 0, 1, and 2.

For anyone affected by this, a workaround to allow the upgrade to
proceed without inconvenient dpkg errors is to run
'/etc/init.d/wide-dhcpv6-server restart' from a separate shell.

Thanks,

-- 
Colin Watson                                       [cjwat...@debian.org]



--- End Message ---
--- Begin Message ---
Source: wide-dhcpv6
Source-Version: 20080615-4

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

wide-dhcpv6-client_20080615-4_amd64.deb
  to pool/main/w/wide-dhcpv6/wide-dhcpv6-client_20080615-4_amd64.deb
wide-dhcpv6-relay_20080615-4_amd64.deb
  to pool/main/w/wide-dhcpv6/wide-dhcpv6-relay_20080615-4_amd64.deb
wide-dhcpv6-server_20080615-4_amd64.deb
  to pool/main/w/wide-dhcpv6/wide-dhcpv6-server_20080615-4_amd64.deb
wide-dhcpv6_20080615-4.diff.gz
  to pool/main/w/wide-dhcpv6/wide-dhcpv6_20080615-4.diff.gz
wide-dhcpv6_20080615-4.dsc
  to pool/main/w/wide-dhcpv6/wide-dhcpv6_20080615-4.dsc



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 512...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremie Corbier <jeremie.corb...@resel.enst-bretagne.fr> (supplier of updated 
wide-dhcpv6 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 ftpmas...@debian.org)


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

Format: 1.8
Date: Tue, 20 Jan 2009 15:33:37 +0100
Source: wide-dhcpv6
Binary: wide-dhcpv6-server wide-dhcpv6-client wide-dhcpv6-relay
Architecture: source amd64
Version: 20080615-4
Distribution: unstable
Urgency: medium
Maintainer: Jeremie Corbier <jeremie.corb...@resel.enst-bretagne.fr>
Changed-By: Jeremie Corbier <jeremie.corb...@resel.enst-bretagne.fr>
Description: 
 wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration
 wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration
 wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration
Closes: 512397
Changes: 
 wide-dhcpv6 (20080615-4) unstable; urgency=medium
 .
   * debian/patches: added 200_close-fds.diff so wide-dhcpv6 binaries close
     inherited file descriptors, from debconf, for instance (Closes: #512397).
     Thanks to Colin Watson for noticing and providing a fix.
   * debian/wide-dhcpv6-client.config: don't show Debconf note saying that one
     should configure dhcp6c manually right after its installation.  This should
     not be needed anymore thanks to profiles/default configuration.
   * debian/watch: use qa.debian.org SourceForge redirector.
Checksums-Sha1: 
 aeb691098ba936b90bf771c05406242d0d744bcf 1304 wide-dhcpv6_20080615-4.dsc
 6a0d8ef45e7a25cb2bbfdfc05674fa1d97a402c9 18997 wide-dhcpv6_20080615-4.diff.gz
 4ce48fd03391f5392da120f18a98fa640cf1bc65 85878 
wide-dhcpv6-server_20080615-4_amd64.deb
 e10a7e64e5f65e89b3e4ba3f9b08dcdc7837fa6d 103360 
wide-dhcpv6-client_20080615-4_amd64.deb
 edf53b81c9e5d9982cd22d3c8a19c76b4631d228 43062 
wide-dhcpv6-relay_20080615-4_amd64.deb
Checksums-Sha256: 
 ba1a4fd6db70883200fd721b4f2377989bb92cf195e18c18d9f3b386dcd16b87 1304 
wide-dhcpv6_20080615-4.dsc
 d9517237e77a8e2b60a6c8cbbca0338853a30bc4e199d76ae6ae8eb76037945d 18997 
wide-dhcpv6_20080615-4.diff.gz
 69efe866dc996a871181d7e120db289c1cca0cb47adbf3fd9afcf1788d87a9b6 85878 
wide-dhcpv6-server_20080615-4_amd64.deb
 b6dfff4bf46426212aaf7fc90220cb0e3c434c9e5d298355371d689edb4a57a9 103360 
wide-dhcpv6-client_20080615-4_amd64.deb
 64a9404ef0b5f7cfb185f5524401f668ae3912522161e21b59e880eabc0e85f7 43062 
wide-dhcpv6-relay_20080615-4_amd64.deb
Files: 
 ffda22ca9bfa4f4d000bdafffc605fc4 1304 net optional wide-dhcpv6_20080615-4.dsc
 04cd4a7b4337c068d60415f7726aa45f 18997 net optional 
wide-dhcpv6_20080615-4.diff.gz
 41df717da6933268bb6da19f58b9b00a 85878 net optional 
wide-dhcpv6-server_20080615-4_amd64.deb
 04b994c03a64b84d5b2fa0bad529c701 103360 net optional 
wide-dhcpv6-client_20080615-4_amd64.deb
 e3537c14b13b3bd56b140009d6c6233e 43062 net optional 
wide-dhcpv6-relay_20080615-4_amd64.deb

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

iEYEARECAAYFAkl2FFoACgkQeGfVPHR5Nd0f3QCgpxBNkBhwrZVNYQc54l8KKx7a
DAAAn09SpBVQ9sPck0+xNgDakAolisv8
=roP9
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to