Your message dated Mon, 18 Sep 2006 14:18:00 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#386641: fixed in nis 3.17-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: nis
Version: 3.16-2
Severity: normal
Tags: patch

When our NIS server becomes unavailable, all of our NIS clients die a few
minutes later.  I strace()d one on a deliberate outage and found that it died
with SIGPIPE.  Here's an extract from the strace output and a suggestion for a
patch.  Other programs in the nis package seem to ignore SIGPIPE (in different
ways).  I haven't contacted upstream.

accept(5, {sa_family=AF_INET, sin_port=htons(879), 
sin_addr=inet_addr("127.0.0.1")}, [16]) = 7
...
poll([{fd=4, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}, {fd=5, 
events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND, revents=POLLIN|POLLRDNORM}, {fd=7, 
events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND, revents=POLLIN|POLLRDNORM}, {fd=8, 
events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND, 
revents=POLLIN|POLLRDNORM|POLLERR|POLLHUP}, {fd=-1}], 5, -1) = 3
accept(5, {sa_family=AF_INET, sin_port=htons(880), 
sin_addr=inet_addr("127.0.0.1")}, [16]) = 9
poll([{fd=7, events=POLLIN, revents=POLLIN}], 1, 35000) = 1
read(7, "\200\0\0000%2\347\336\0\0\0\0\0\0\0\2\0\1\206\247\0\0\0"..., 4000) = 52
...
write(7, "\200\0\0 %2\347\336\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 36) = -1 
EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---

--- /tmp/ypbind-mt.c.orig       2006-09-08 18:01:28.000000000 -0700
+++ /tmp/ypbind-mt.c.new        2006-09-08 18:14:22.000000000 -0700
@@ -457,6 +457,10 @@
          if (ping_interval < 1)
            do_binding ();
          break;
+       case SIGPIPE:
+         if (debug_flag)
+           log_msg (LOG_DEBUG, _("Ignoring SIGPIPE."));
+         break;
        default:
          log_msg (LOG_ERR, _("Unknown signal: %d"), caught);
          break;
@@ -679,6 +683,7 @@
   sigaddset (&sigs_to_block, SIGQUIT);
   sigaddset (&sigs_to_block, SIGSEGV);
   sigaddset (&sigs_to_block, SIGHUP);
+  sigaddset (&sigs_to_block, SIGPIPE);
   if (pthread_sigmask (SIG_BLOCK, &sigs_to_block, NULL) != 0)
     {
       log_msg (LOG_ERR, _("Could not block signals."));

-- Package-specific info:

NIS domain: uk 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)

Versions of packages nis depends on:
ii  debconf [debconf-2.0]        1.5.3       Debian configuration management sy
ii  libc6                        2.3.6.ds1-2 GNU C Library: Shared libraries
ii  libgdbm3                     1.8.3-3     GNU dbm database routines (runtime
ii  libslp1                      1.2.1-5     OpenSLP libraries
ii  make                         3.81-2      The GNU version of the "make" util
ii  netbase                      4.26        Basic TCP/IP networking system
ii  portmap                      5-20        The RPC portmapper
ii  sysvinit                     2.86.ds1-15 System-V-like init utilities

nis recommends no packages.

-- debconf information:
* nis/not-yet-configured:
* nis/domain: uk


--- End Message ---
--- Begin Message ---
Source: nis
Source-Version: 3.17-1

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

nis_3.17-1.diff.gz
  to pool/main/n/nis/nis_3.17-1.diff.gz
nis_3.17-1.dsc
  to pool/main/n/nis/nis_3.17-1.dsc
nis_3.17-1_i386.deb
  to pool/main/n/nis/nis_3.17-1_i386.deb
nis_3.17-1_powerpc.deb
  to pool/main/n/nis/nis_3.17-1_powerpc.deb
nis_3.17.orig.tar.gz
  to pool/main/n/nis/nis_3.17.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.
Mark Brown <[EMAIL PROTECTED]> (supplier of updated nis 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.7
Date: Mon, 18 Sep 2006 19:57:01 +0100
Source: nis
Binary: nis
Architecture: source powerpc i386
Version: 3.17-1
Distribution: unstable
Urgency: low
Maintainer: Mark Brown <[EMAIL PROTECTED]>
Changed-By: Mark Brown <[EMAIL PROTECTED]>
Description: 
 nis        - Clients and daemons for the Network Information Services (NIS)
Closes: 386641
Changes: 
 nis (3.17-1) unstable; urgency=low
 .
   * New upstream release: ypbind-mt-1.20.1.
   * This release incldues a patch from Martin Dorey <[EMAIL PROTECTED]>
     adding handling of SIGPIPE to ypbind-mt (closes: #386641).
   * Enable upstream support for Network Manager in ypbind-mt.
Files: 
 fc51197f2991b674721f14f1c360dd0b 710 net extra nis_3.17-1.dsc
 e17605d338710a933bfa136759b079b9 688719 net extra nis_3.17.orig.tar.gz
 61b0a6790c899e44e3f4c4399d6b9b01 146090 net extra nis_3.17-1.diff.gz
 d7280598e83a2892e8233b4671f42b71 254292 net extra nis_3.17-1_powerpc.deb
 2b85186c8647fa745037efa13cf2f688 236636 net extra nis_3.17-1_i386.deb

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

iD8DBQFFDv9uJ2Vo11xhU60RAvIuAKCgNtuUOoGSa8XrZnrnPO4H/YmKNACglkzV
0SAijZHWCfp20tkFleP4FdA=
=0U5Y
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to