Your message dated Wed, 21 Jan 2009 09:17:14 +0000
with message-id <e1lpzd0-0005la...@ries.debian.org>
and subject line Bug#512397: fixed in wide-dhcpv6 20080615-1lenny1
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-1lenny1

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-1lenny1_amd64.deb
  to pool/main/w/wide-dhcpv6/wide-dhcpv6-client_20080615-1lenny1_amd64.deb
wide-dhcpv6-relay_20080615-1lenny1_amd64.deb
  to pool/main/w/wide-dhcpv6/wide-dhcpv6-relay_20080615-1lenny1_amd64.deb
wide-dhcpv6-server_20080615-1lenny1_amd64.deb
  to pool/main/w/wide-dhcpv6/wide-dhcpv6-server_20080615-1lenny1_amd64.deb
wide-dhcpv6_20080615-1lenny1.diff.gz
  to pool/main/w/wide-dhcpv6/wide-dhcpv6_20080615-1lenny1.diff.gz
wide-dhcpv6_20080615-1lenny1.dsc
  to pool/main/w/wide-dhcpv6/wide-dhcpv6_20080615-1lenny1.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:12:45 +0100
Source: wide-dhcpv6
Binary: wide-dhcpv6-server wide-dhcpv6-client wide-dhcpv6-relay
Architecture: source amd64
Version: 20080615-1lenny1
Distribution: testing-proposed-updates
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-1lenny1) testing-proposed-updates; 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.
Checksums-Sha1: 
 141423fb588805e711b47074bcb119e02c03bd50 1328 wide-dhcpv6_20080615-1lenny1.dsc
 152d1424ab63bcf67e26941a5c662b226efbb89f 14186 
wide-dhcpv6_20080615-1lenny1.diff.gz
 b3c3af515d611d9a86bcd5d316002370b64aeef4 83890 
wide-dhcpv6-server_20080615-1lenny1_amd64.deb
 d12319e393a151de50621341593d4c66aa155d2f 100686 
wide-dhcpv6-client_20080615-1lenny1_amd64.deb
 63c1ae76bbd1d2c02fb7ff0b416a919c29bc7658 42626 
wide-dhcpv6-relay_20080615-1lenny1_amd64.deb
Checksums-Sha256: 
 4ae483df9627fd541aa8a8669948043dcd85249185024975b0cf67f4dfdad4a6 1328 
wide-dhcpv6_20080615-1lenny1.dsc
 165f94952c55e8a792ea83a652e4411969cbd1b452693c6dc3cddb252a16fc1d 14186 
wide-dhcpv6_20080615-1lenny1.diff.gz
 a017ee2ba7585966fbc78e935d610d175f3e6ca687c48b609b072e9201033fd6 83890 
wide-dhcpv6-server_20080615-1lenny1_amd64.deb
 59be8b839bd8cbfd53049078b25b4dc465937c2af5cd5f7e2acfa2f259f40d52 100686 
wide-dhcpv6-client_20080615-1lenny1_amd64.deb
 893318071b4f308127668ad6b7dbb2efc5e347fa79e9f1a44ccb2562f81cadf4 42626 
wide-dhcpv6-relay_20080615-1lenny1_amd64.deb
Files: 
 be49001eb1f45fc9f56baa63c466e167 1328 net optional 
wide-dhcpv6_20080615-1lenny1.dsc
 4af65a414bef0bd155d1e03e12160248 14186 net optional 
wide-dhcpv6_20080615-1lenny1.diff.gz
 e7e59fbac1a299c5a4f98b32ee746bfc 83890 net optional 
wide-dhcpv6-server_20080615-1lenny1_amd64.deb
 f06664c2e4fd431939dc562f634920db 100686 net optional 
wide-dhcpv6-client_20080615-1lenny1_amd64.deb
 55c3f8192e3a9b13303e2bf40e578435 42626 net optional 
wide-dhcpv6-relay_20080615-1lenny1_amd64.deb

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

iEYEARECAAYFAkl25gIACgkQeGfVPHR5Nd1oigCfTD154usNeufT4qx26IyHhNQ5
8C8An3TFq11eeh7sWjQ4662HtQwjrtq6
=0qoN
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to