Debian Bug report logs -
#369536
_nss_nis_setnetgrent: Assertion `len > 0' failed
Reported by: Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>
Date: Tue, 30 May 2006 13:35:07 UTC
Severity: important
Tags: fixed-upstream
Found in versions 2.3.2.ds1-10, 2.3.2.ds1-22, glibc/2.3.6-15, glibc/2.3.6-9, glibc/2.3.6.ds1-13
Fixed in versions 2.5, 2.5-1, glibc/2.3.6.ds1-13etch1
Done: Aurelien Jarno <aurel32@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#369536; Package libc6.
(full text, mbox, link).
Acknowledgement sent to Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>:
New Bug report received and forwarded. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libc6
Version: 2.3.6-9
Severity: important
if in /etc/nsswitch.conf:
netgroup: nis
then e.g. sudo fails:
vsauer@gelnhausen: ~ > sudo bash
sudo: nss_nis/nis-netgrp.c:78: _nss_nis_setnetgrent: Assertion `len > 0' failed
and rpc.mountd fails with the same error.
If I set
netgroup: files
everything runs okay.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (990, 'stable'), (800, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.9-686-dvs1-1
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages libc6 depends on:
ii tzdata 2006c-2 Time Zone and Daylight Saving Time
libc6 recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#369536; Package libc6.
(full text, mbox, link).
Acknowledgement sent to Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(full text, mbox, link).
Message #10 received at 369536@bugs.debian.org (full text, mbox, reply):
Package: libc6
Version: 2.3.6-15
Followup-For: Bug #369536
Kubuntu Dapper Drake is affected, too.
They are using libc6 version: 2.3.6-0ubuntu20
And: Hey guys!! This is a severe bug for those who use debian clients in a network of NIS-computers!! This is very common and therefore this bug needs to be fixed!!!!!
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (990, 'stable'), (800, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.9-686-dvs1-1
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages libc6 depends on:
ii tzdata 2006g-2 Time Zone and Daylight Saving Time
libc6 recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#369536; Package libc6.
(full text, mbox, link).
Acknowledgement sent to Ray Frush <frush@ftc.avagotech.com>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(full text, mbox, link).
Message #15 received at 369536@bugs.debian.org (full text, mbox, reply):
I found another command that triggers this bug.
Running the command: "CFINPUTS=/usr/config/cfinputs
/opt/cfengine/sbin/cfengine --dry-run --no-splay -DHr20 -v"
Results: program aborts midway when the netgroup is delivered by NIS.
(netgroup: nis is set in nsswitch.conf)
As mentioned above, if "netgroup: files" is set in nsswitch.conf
the problem isn't triggered.
Key Error Message: " cfengine: nss_nis/nis-netgrp.c:78:
_nss_nis_setnetgrent: Assertion `len > 0' failed. "
Full Output:
#ROOT abode $ CFINPUTS=/usr/config/cfinputs /opt/cfengine/sbin/cfengine
--dry-run --no-splay -DHr20 -v
Setting cfengine new port to 48148
Setting cfengine old port to 5308
Reference time set to Thu Nov 30 16:09:19 2006
GNU Configuration Engine -
2.1.20
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, Norway
------------------------------------------------------------------------
Host name is: abode
Operating System Type is linux
Operating System Release is 2.6.17-2-686
Architecture = i686
Using internal soft-class linux for host linux
The time is now Thu Nov 30 16:09:19 2006
------------------------------------------------------------------------
Additional hard class defined as: 32_bit
Additional hard class defined as: linux_2_6_17_2_686
Additional hard class defined as: linux_i686
Additional hard class defined as: linux_i686_2_6_17_2_686
Additional hard class defined as:
linux_i686_2_6_17_2_686__1_SMP_Wed_Sep_13_16_34_10_UTC_2006
GNU autoconf class from compile time: compiled_on_linux_gnu
Address given by nameserver: 10.10.10.54
Interface 1: lo
Interface 2: eth0
Trying to locate my IPv6 address
Found IPv6 address addr:
Found IPv6 address fe80::230:48ff:fe2c:94a9
Found IPv6 address addr:
Looking for environment from cfenvd...
Unable to detect environment from cfenvd
cfengine:abode: No preconfiguration file
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
* (Changing context state to: update) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Looking for an input file /usr/config/cfinputs/update.conf
(No file /usr/config/cfinputs/update.conf)
Finished with /usr/config/cfinputs/update.conf
Skipping update.conf (-F=0)
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
* (Changing context state to: main) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
---------------------------------------------------------------------
Loading persistent classes
---------------------------------------------------------------------
---------------------------------------------------------------------
Loaded persistent memory
---------------------------------------------------------------------
Looking for environment from cfenvd...
Unable to detect environment from cfenvd
Looking for an input file /usr/config/cfinputs/cfagent.conf
cfengine: nss_nis/nis-netgrp.c:78: _nss_nis_setnetgrent: Assertion `len
> 0' failed.
Aborted
--
Ray Frush "Either you are part of the solution
T:970.288.6223 or part of the precipitate."
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Avago Technologies, Inc. | Technical Computing | IT Engineer
Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#369536; Package libc6.
(full text, mbox, link).
Acknowledgement sent to Sergio Gelato <Sergio.Gelato@astro.su.se>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(full text, mbox, link).
Message #22 received at 369536@bugs.debian.org (full text, mbox, reply):
unmerge 369536
retitle 369536 _nss_nis_setnetgrent: Assertion `len > 0' failed
found 369536 2.3.6.ds1-13
tags 369536 + fixed-upstream
thanks
This bug is about the NIS netgroup map, the others are about the
group map. Unmerging.
This particular bug is a duplicate of
http://bugs.gentoo.org/show_bug.cgi?id=96370
which was resolved (upstream) long ago. Basically, the assert(len > 0)
on line 78 of nss_nis/nis-netgrp.c should read assert(len >= 0).
A real shame that this made it into etch.
Disconnected #369536 from all other report(s).
Request was from Sergio Gelato <Sergio.Gelato@astro.su.se>
to control@bugs.debian.org.
(Fri, 13 Apr 2007 08:39:19 GMT) (full text, mbox, link).
Changed Bug title to _nss_nis_setnetgrent: Assertion `len > 0' failed from netgroup: nis in nsswitch.conf causes libc6 to fail and programs like sudo or rpc.mountd to crash.
Request was from Sergio Gelato <Sergio.Gelato@astro.su.se>
to control@bugs.debian.org.
(Fri, 13 Apr 2007 08:39:24 GMT) (full text, mbox, link).
Bug marked as found in version 2.3.6.ds1-13.
Request was from Sergio Gelato <Sergio.Gelato@astro.su.se>
to control@bugs.debian.org.
(Fri, 13 Apr 2007 08:39:25 GMT) (full text, mbox, link).
Tags added: fixed-upstream
Request was from Sergio Gelato <Sergio.Gelato@astro.su.se>
to control@bugs.debian.org.
(Fri, 13 Apr 2007 08:39:26 GMT) (full text, mbox, link).
Reply sent to Pierre Habouzit <madcoder@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #35 received at 369536-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Version: 2.5
On Fri, Apr 13, 2007 at 10:38:37AM +0200, Sergio Gelato wrote:
> unmerge 369536
> retitle 369536 _nss_nis_setnetgrent: Assertion `len > 0' failed
> found 369536 2.3.6.ds1-13
> tags 369536 + fixed-upstream
> thanks
>
> This bug is about the NIS netgroup map, the others are about the
> group map. Unmerging.
>
> This particular bug is a duplicate of
> http://bugs.gentoo.org/show_bug.cgi?id=96370
> which was resolved (upstream) long ago. Basically, the assert(len > 0)
> on line 78 of nss_nis/nis-netgrp.c should read assert(len >= 0).
Indeed this is fixed in glibc2.5
> A real shame that this made it into etch.
This remark is greatly appreciated.
A real shame you hibernated until now.
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]
Reply sent to Aurelien Jarno <aurelien@aurel32.net>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #40 received at 369536-done@bugs.debian.org (full text, mbox, reply):
Version: 2.5-1
Sergio Gelato a écrit :
> unmerge 369536
> retitle 369536 _nss_nis_setnetgrent: Assertion `len > 0' failed
> found 369536 2.3.6.ds1-13
> tags 369536 + fixed-upstream
> thanks
>
> This bug is about the NIS netgroup map, the others are about the
> group map. Unmerging.
>
> This particular bug is a duplicate of
> http://bugs.gentoo.org/show_bug.cgi?id=96370
> which was resolved (upstream) long ago. Basically, the assert(len > 0)
> on line 78 of nss_nis/nis-netgrp.c should read assert(len >= 0).
> A real shame that this made it into etch.
I confirm that the bug has been fixed in glibc 2.5, I am therefore
marking the bug closed by this new version.
I will try to get this patch in the next stable update.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
Message #41 received at 369536-done@bugs.debian.org (full text, mbox, reply):
* Aurelien Jarno [2007-04-13 11:08:12 +0200]:
> I will try to get this patch in the next stable update.
Thank you. For those who can't wait, it should perhaps be mentioned
that the bug can be worked around by not having empty netgroups in
one's map.
Reply sent to Aurelien Jarno <aurel32@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #46 received at 369536-close@bugs.debian.org (full text, mbox, reply):
Source: glibc
Source-Version: 2.3.6.ds1-13etch1
We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive:
glibc-doc_2.3.6.ds1-13etch1_all.deb
to pool/main/g/glibc/glibc-doc_2.3.6.ds1-13etch1_all.deb
glibc_2.3.6.ds1-13etch1.diff.gz
to pool/main/g/glibc/glibc_2.3.6.ds1-13etch1.diff.gz
glibc_2.3.6.ds1-13etch1.dsc
to pool/main/g/glibc/glibc_2.3.6.ds1-13etch1.dsc
libc6-dbg_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6-dbg_2.3.6.ds1-13etch1_amd64.deb
libc6-dev-i386_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6-dev-i386_2.3.6.ds1-13etch1_amd64.deb
libc6-dev_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6-dev_2.3.6.ds1-13etch1_amd64.deb
libc6-i386_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6-i386_2.3.6.ds1-13etch1_amd64.deb
libc6-pic_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6-pic_2.3.6.ds1-13etch1_amd64.deb
libc6-prof_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6-prof_2.3.6.ds1-13etch1_amd64.deb
libc6-udeb_2.3.6.ds1-13etch1_amd64.udeb
to pool/main/g/glibc/libc6-udeb_2.3.6.ds1-13etch1_amd64.udeb
libc6_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/libc6_2.3.6.ds1-13etch1_amd64.deb
libnss-dns-udeb_2.3.6.ds1-13etch1_amd64.udeb
to pool/main/g/glibc/libnss-dns-udeb_2.3.6.ds1-13etch1_amd64.udeb
libnss-files-udeb_2.3.6.ds1-13etch1_amd64.udeb
to pool/main/g/glibc/libnss-files-udeb_2.3.6.ds1-13etch1_amd64.udeb
locales-all_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/locales-all_2.3.6.ds1-13etch1_amd64.deb
locales_2.3.6.ds1-13etch1_all.deb
to pool/main/g/glibc/locales_2.3.6.ds1-13etch1_all.deb
nscd_2.3.6.ds1-13etch1_amd64.deb
to pool/main/g/glibc/nscd_2.3.6.ds1-13etch1_amd64.deb
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 369536@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated glibc 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 20 Apr 2007 00:09:51 +0200
Source: glibc
Binary: libc0.1-prof libc6-dev-amd64 locales-all libc6-i686 libc6-dev-ppc64 libc0.3-pic glibc-doc libc0.3 libc0.1-i686 libc0.1-i386 libc6.1-dev libc6-s390x libnss-files-udeb libc0.1-dev-i386 libc6-dev-sparc64 libc6-i386 libc0.3-dev libc6-udeb libc6-dbg libc6.1-pic libc6-dev libc0.3-prof libc6-sparcv9 libc0.1-udeb libc6-dev-i386 libc6.1-prof libc0.1-dev locales libc6-pic libc0.3-udeb libc6-dev-powerpc libc0.1-pic libc6-ppc64 libc0.3-dbg libc0.1-dbg libc6-amd64 libc0.1 libc6-prof libc6-xen libc6-powerpc libc6 libc6-sparcv9b libc6.1-udeb libc6.1-dbg nscd libc6-sparc64 libnss-dns-udeb libc6.1 libc6-dev-s390x
Architecture: source amd64 all
Version: 2.3.6.ds1-13etch1
Distribution: stable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description:
glibc-doc - GNU C Library: Documentation
libc6 - GNU C Library: Shared libraries
libc6-dbg - GNU C Library: Libraries with debugging symbols
libc6-dev - GNU C Library: Development Libraries and Header Files
libc6-dev-i386 - GNU C Library: 32bit development libraries for AMD64
libc6-i386 - GNU C Library: 32bit shared libraries for AMD64
libc6-pic - GNU C Library: PIC archive library
libc6-prof - GNU C Library: Profiling Libraries
libc6-udeb - GNU C Library: Shared libraries - udeb (udeb)
libnss-dns-udeb - GNU C Library: NSS helper for DNS - udeb (udeb)
libnss-files-udeb - GNU C Library: NSS helper for files - udeb (udeb)
locales - GNU C Library: National Language (locale) data [support]
locales-all - GNU C Library: Precompiled locale data
nscd - GNU C Library: Name Service Cache Daemon
Closes: 325600 369536 409288 412562 413450 419459
Changes:
glibc (2.3.6.ds1-13etch1) stable; urgency=low
.
[ Pierre Habouzit ]
* any/cvs-sunrpc-64bits-svc_getreqset.diff: fix 64bits issue for 64bits
machines (affects mount, causes CPU hog if triggered). Closes: #413450.
* control.in/main, rules.d/debhelper.mk: Backport fix from Aurélien in the
glibc-2.5 branch: use dh_shlibdeps to set the dependencies of nscd.
Closes: #409288, #412562.
.
[ Aurelien Jarno ]
* patches/any/cvs-nss_nis_setnetgrent.diff: new patch from upstream (fix
a wrong assertion in nss_nis_setnetgrent. Closes: #369536.
* patches/any/submitted-gethostbyname_r.diff: new patch to fix unaligned
memory access in gethostbyname_r.diff(). Closes: #419459.
* debian/patches/alpha/local-waitpid-not-cancel.diff: new patch (fix defunct
threads on alpha) from Uwe Schindler. Closes: #325600.
Files:
b4acc0c53fee8d526dd18f824f98ebaa 2192 libs required glibc_2.3.6.ds1-13etch1.dsc
aa3d63af727cc9b1e01f7f2742797ddc 913913 libs required glibc_2.3.6.ds1-13etch1.diff.gz
358142ab7d7eb163f54ac96d0f1dc715 1479762 doc optional glibc-doc_2.3.6.ds1-13etch1_all.deb
f1b468e6b50956ef98e9ea2ba237a247 3956900 libs standard locales_2.3.6.ds1-13etch1_all.deb
8665a24349e73f4c168475afb94bd58a 4076954 libs required libc6_2.3.6.ds1-13etch1_amd64.deb
ca249eef7387cb7275e9bd3399e4912b 2108708 libdevel optional libc6-dev_2.3.6.ds1-13etch1_amd64.deb
5e7c6051df68a4e22e754778ed661741 1577656 libdevel extra libc6-prof_2.3.6.ds1-13etch1_amd64.deb
22c68e5b3b564bbde512309b7cd9fc17 1404732 libdevel optional libc6-pic_2.3.6.ds1-13etch1_amd64.deb
dea808c3b13ad43a3ab952dad4d1414e 6092844 libs extra locales-all_2.3.6.ds1-13etch1_amd64.deb
5c6586e8b16598308b00cd0adfe7f06a 2974606 libs optional libc6-i386_2.3.6.ds1-13etch1_amd64.deb
7bc76477b1fa1756881d73b7b331a93c 1570408 libdevel optional libc6-dev-i386_2.3.6.ds1-13etch1_amd64.deb
340bbb6f2a45bdb8d4dc7187bf9537e2 146012 admin optional nscd_2.3.6.ds1-13etch1_amd64.deb
4115691020dc86287c9387723246905e 2269012 libdevel extra libc6-dbg_2.3.6.ds1-13etch1_amd64.deb
174ab7fdb647402bf2da681266af22eb 1042590 debian-installer extra libc6-udeb_2.3.6.ds1-13etch1_amd64.udeb
510c9ee6a2ed4d7c469d4defa70d106e 9572 debian-installer extra libnss-dns-udeb_2.3.6.ds1-13etch1_amd64.udeb
50690ece25db20c2bf8801a414c6f1d7 17196 debian-installer extra libnss-files-udeb_2.3.6.ds1-13etch1_amd64.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGKoJ9w3ao2vG823MRAgZHAJ4iHUuZ/IeZlnJmrB2vQpDHFm92dQCghxB1
ugxIqmj9FrXWPzIHEwO0l2Y=
=1/N1
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 25 Jun 2007 05:45:44 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Fri Jan 5 17:57:48 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.