Debian Bug report logs - #226515
getgrouplist() segfaults for NIS groups; breaks sshd's AllowGroups feature in some situations

version graph

Package: libc6; Maintainer for libc6 is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6 is src:glibc (PTS, buildd, popcon).

Reported by: Alexander Bradley <abradley@vc.bc.ca>

Date: Wed, 7 Jan 2004 04:48:03 UTC

Severity: important

Merged with 246288, 305316, 314480, 316914, 347233

Found in versions 2.3.2.ds1-10, 2.3.2.ds1-22

Fixed in version 2.3.5-3

Done: Jonathan Nieder <jrnieder@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to Alexander Bradley <abradley@vc.bc.ca>:
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):

From: Alexander Bradley <abradley@vc.bc.ca>
To: submit@bugs.debian.org
Subject: getgrouplist() segfaults for NIS groups; breaks sshd's AllowGroups feature in some situations
Date: Tue, 6 Jan 2004 18:07:33 -0800 (PST)
Package: libc6
Version: 2.3.2.ds1-10
Severity: important

There appears to be a bug in the getgrouplist() function or a function
that it calls which causes a segmentation fault under the following
circumstances (as far as I can observe):

 - NIS maps must be used to find some or all of the user's group
   information.
 - The user is in one or more supplementary groups from the NIS "group"
   map.  (If the user has a primary group from the NIS map but no
   supplementary groups from the NIS map, the problem doesn't occur.)

I first noticed this bug when enabling sshd's AllowGroups feature caused
sshd to crash (before asking for a password) when users meeting the above
criteria connected.  When I recompiled sshd (with debug symbols) from the
Debian source packages (glibc_2.3.2.ds1-10), I got output like the
following when I ran it inside gdb (stuff in [[double square brackets]]
has been removed by me):

root@[[SERVER NAME]]:/usr/src/openssh-3.6.1p2# gdb sshd
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run -ddd -D -f /etc/ssh/sshd_config.experiment -p 8022
Starting program: /usr/src/openssh-3.6.1p2/sshd -ddd -D -f /etc/ssh/sshd_config.experiment -p 8022
debug2: read_server_config: filename /etc/ssh/sshd_config.experiment
debug1: sshd version OpenSSH_3.6.1p2
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
socket: Address family not supported by protocol
debug1: Bind to port 8022 on 0.0.0.0.
Server listening on 0.0.0.0 port 8022.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from [[SERVER IP ADDRESS]] port 39620
debug1: Client protocol version 1.5; client software version OpenSSH_3.6.1p2 Debian 1:3.6.1p2-10
debug1: match: OpenSSH_3.6.1p2 Debian 1:3.6.1p2-10 pat OpenSSH*
debug1: Local version string SSH-1.99-OpenSSH_3.6.1p2
debug2: Network child is on pid 29464
debug3: privsep user:group 102:65534
debug1: permanently_set_uid: 102/65534
debug1: Sent 768 bit server key and 1024 bit host key.
debug3: preauth child monitor started
debug3: mm_request_receive entering
debug1: Encryption type: 3des
debug3: mm_request_send entering: type 28
debug3: mm_request_receive_expect entering: type 29
debug3: mm_request_receive entering
debug3: monitor_read: checking request 28
debug3: mm_request_send entering: type 29
debug3: mm_ssh1_session_id entering
debug3: mm_request_send entering: type 30
debug2: cipher_init: set keylen (16 -> 32)
debug2: cipher_init: set keylen (16 -> 32)
debug1: Received session key; encryption turned on.
debug2: monitor_read: 28 used once, disabling now
debug3: mm_request_receive entering
debug3: monitor_read: checking request 30
debug3: mm_answer_sessid entering
debug2: monitor_read: 30 used once, disabling now
debug3: mm_request_receive entering
debug1: Installing crc compensation attack detector.
debug3: mm_getpwnamallow entering
debug3: mm_request_send entering: type 6
debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
debug3: mm_request_receive_expect entering: type 7
debug3: mm_request_receive entering
debug3: monitor_read: checking request 6
debug3: mm_answer_pwnamallow

Program received signal SIGSEGV, Segmentation fault.
0x401dd700 in strcmp () from /lib/libc.so.6
(gdb) backtrace
#0  0x401dd700 in strcmp () from /lib/libc.so.6
#1  0x402a4a24 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#2  0x402a4c90 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#3  0x402a4f48 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#4  0x402a5084 in _nss_compat_initgroups_dyn () from /lib/libnss_compat.so.2
#5  0x4020e124 in fgetgrent () from /lib/libc.so.6
#6  0x4020e263 in getgrouplist () from /lib/libc.so.6
#7  0x0805c46a in ga_init (user=0x8099f70 "abradley", base=550) at groupaccess.c:51
#8  0x08055525 in allowed_user (pw=0x40299628) at auth.c:173
#9  0x08055da4 in getpwnamallow (user=0x809b540 "abradley") at auth.c:506
#10 0x0805fb1d in mm_answer_pwnamallow (socket=11, m=0xbffff588) at monitor.c:534
#11 0x0805f663 in monitor_read (pmonitor=0x809b768, ent=0x8091cc8, pent=0xbffff5c4)
    at monitor.c:388
#12 0x0805f326 in monitor_child_preauth (pmonitor=0x809b768) at monitor.c:281
#13 0x0804cb41 in privsep_preauth () at sshd.c:600
#14 0x0804ea99 in main (ac=7, av=0xbffffbd4) at sshd.c:1511
(gdb) quit
A debugging session is active.
Do you still want to close the debugger?(y or n) y
debug1: Calling cleanup 0x8072344(0x0)

Testing sshd on other machines, I found that (1) on a machine with a
similar configuration (NIS client of same NIS master, same users tested)
with an older version of libc6, 2.3.2-4, the problem did not occur and (2)
even with libc6 2.3.2.ds1-10, the problem did not occur on the NIS master,
where a user's groups could be found directly from /etc/group.

I wrote the following C program to test getgrouplist alone:

#include <stdio.h>
#include <unistd.h>
#include <grp.h>
#include <stdlib.h>

#define NGROUPS_MAX 32

int main (int argc, char *argv[])
{
   if (argc > 2) {
      char * username = argv[1];
      gid_t gid = atoi(argv[2]);

      gid_t groups_bygid[NGROUPS_MAX];
      int ngroups = NGROUPS_MAX;
      int i;

      if (getgrouplist(username, gid, groups_bygid, &ngroups) == -1) {
	 printf("getgrouplist() returned -1\n");
      } else {
	 printf("getgrouplist() call successful.\n");
	 for (i = 0; i < ngroups; i++)
	   printf("%d ", groups_bygid[i]);
	 printf("\n");
      }
   }

   return 0;
}

This program segfaulted and had the following stack trace on the server on
which I first observed sshd to crash:

05:21 PM abradley@[[SERVER NAME]]:~/bin/c$ gdb grplist
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run abradley 550
Starting program: /home/abradley/bin/c/grplist abradley 550

Program received signal SIGSEGV, Segmentation fault.
0x40099700 in strcmp () from /lib/libc.so.6
(gdb) bt
#0  0x40099700 in strcmp () from /lib/libc.so.6
#1  0x4015ca24 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#2  0x4015cc90 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#3  0x4015cf48 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#4  0x4015d084 in _nss_compat_initgroups_dyn () from /lib/libnss_compat.so.2
#5  0x400ca124 in fgetgrent () from /lib/libc.so.6
#6  0x400ca263 in getgrouplist () from /lib/libc.so.6
#7  0x080484ca in main ()
#8  0x4003ada6 in __libc_start_main () from /lib/libc.so.6
(gdb) quit

A sample session from one of our lab machines shows that my program
works with libc6 2.3.2-4 but crashes when libc6 is upgraded to
2.3.2.ds1-10:

05:16 PM root@[[MACHINE NAME]]:~$ dpkg -s libc6 | grep ^Version:
Version: 2.3.2-4
05:17 PM root@[[MACHINE NAME]]:~$ ~abradley/bin/c/grplist abradley 550
getgrouplist() call successful.
550 [[LIST OF OTHER GIDS]]
05:17 PM root@[[MACHINE NAME]]:~$ apt-get install libc6
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libc6-dev linux-kernel-headers locales
Suggested packages:
  glibc-doc manpages-dev
The following NEW packages will be installed:
  linux-kernel-headers
3 packages upgraded, 1 newly installed, 0 to remove and 556 not upgraded.
Need to get 0B/12.6MB of archives.
After unpacking 6742kB of additional disk space will be used.
Do you want to continue? [Y/n] y


Preconfiguring packages ...
(Reading database ... 101691 files and directories currently installed.)
Preparing to replace libc6-dev 2.3.2-4 (using .../libc6-dev_2.3.2.ds1-10_i386.deb) ...
Unpacking replacement libc6-dev ...
Selecting previously deselected package linux-kernel-headers.
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.5.999-test7-bk-9_i386.deb) ...
Preparing to replace locales 2.3.2-4 (using .../locales_2.3.2.ds1-10_all.deb) ...
Unpacking replacement locales ...
Preparing to replace libc6 2.3.2-4 (using .../libc6_2.3.2.ds1-10_i386.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.3.2.ds1-10) ...
Current default timezone: 'Canada/Pacific'.
Local time is now:      Tue Jan  6 17:18:11 PST 2004.
Universal Time is now:  Wed Jan  7 01:18:11 UTC 2004.
Run 'tzconfig' if you wish to change it.

Setting up linux-kernel-headers (2.5.999-test7-bk-9) ...
Setting up libc6-dev (2.3.2.ds1-10) ...
Setting up locales (2.3.2.ds1-10) ...
Installing new version of config file /etc/locale.alias ...
Generating locales...
  en_US.ISO-8859-1... done
Generation complete.

05:18 PM root@[[MACHINE NAME]]:~$ ~abradley/bin/c/grplist abradley 550
Segmentation fault
05:18 PM root@[[MACHINE NAME]]:~$ gdb ~abradley/bin/c/grplist
GNU gdb 5.3-debian
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run abradley 550
Starting program: /home/abradley/bin/c/grplist abradley 550

Program received signal SIGSEGV, Segmentation fault.
0x4009a700 in strcmp () from /lib/libc.so.6
(gdb) backtrace
#0  0x4009a700 in strcmp () from /lib/libc.so.6
#1  0x4015da24 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#2  0x4015dc90 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#3  0x4015df48 in _nss_compat_getspnam_r () from /lib/libnss_compat.so.2
#4  0x4015e084 in _nss_compat_initgroups_dyn () from /lib/libnss_compat.so.2
#5  0x400cb124 in fgetgrent () from /lib/libc.so.6
#6  0x400cb263 in getgrouplist () from /lib/libc.so.6
#7  0x080484ca in main ()
#8  0x4003bda6 in __libc_start_main () from /lib/libc.so.6
(gdb) quit

The presence of _nss_compat_getspnam_r in the trace made me suspect that
shadow password configurations might have something to do with the
problem, but I have tried my test program on various machines with shadow
passwords on and off and I haven't found any evidence that the shadow
password configuration makes a difference.

FWIW, /etc/nsswitch.conf on the server on which I first found the problem
is as follows:

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
#

passwd:         compat
group:          compat
shadow:         compat

hosts:          nis files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
# end of nsswitch.conf

------------------------------------------------------------
Alex Bradley
Vancouver College IT Department



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to Miah Gregory <mace@darksilence.net>:
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 226515@bugs.debian.org (full text, mbox, reply):

From: Miah Gregory <mace@darksilence.net>
To: 226515@bugs.debian.org
Cc: joergland@debian.org, racke@linuxia.de, mace@darksilence.net
Subject: Progress
Date: Sun, 11 Jul 2004 02:25:49 +0100 (BST)
Hi,

Has there been any progress on finding a solution for this bug? It seems
to now be causing problems with courier-imap and fam (courier-imap only
recently started using fam).

Backtraces are as shown by the bug submitter, and I'm using NIS, with
a supplimentary group to the primary one.

If there's anything I can do to help track this down/fix the problem 
please let me know.

Thanks.

-- 
Miah Gregory





Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to Joerg Wendland <joergland@debian.org>:
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 226515@bugs.debian.org (full text, mbox, reply):

From: Joerg Wendland <joergland@debian.org>
To: Miah Gregory <mace@darksilence.net>
Cc: 226515@bugs.debian.org, racke@linuxia.de
Subject: Re: Progress
Date: Sun, 11 Jul 2004 16:44:08 +0200
[Message part 1 (text/plain, inline)]
Miah Gregory, on 2004-07-11, 02:25, you wrote:
> Has there been any progress on finding a solution for this bug? It seems
> to now be causing problems with courier-imap and fam (courier-imap only
> recently started using fam).

Jugding from you later(?) mail is this one obsolete now?

Joerg

-- 
Joerg "joergland" Wendland  |  http://www.wendlandnet.de/joerg/
GPG: 51CF8417 FP: 79C0 7671 AFC7 315E 657A  F318 57A3 7FBD 51CF 8417
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to Miah Gregory <mace@darksilence.net>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #20 received at 226515@bugs.debian.org (full text, mbox, reply):

From: Miah Gregory <mace@darksilence.net>
To: Joerg Wendland <joergland@debian.org>
Cc: 226515@bugs.debian.org, racke@linuxia.de
Subject: Re: Progress
Date: Sun, 11 Jul 2004 16:43:46 +0100
On Sun, 2004-07-11 at 15:44, Joerg Wendland wrote:
> Miah Gregory, on 2004-07-11, 02:25, you wrote:
> > Has there been any progress on finding a solution for this bug? It seems
> > to now be causing problems with courier-imap and fam (courier-imap only
> > recently started using fam).
> 
> Jugding from you later(?) mail is this one obsolete now?

Nope, this is definitely the problem that causes famd to segfault.

Thanks,

Miah





Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to GOTO Masanori <gotom@debian.or.jp>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #25 received at 226515@bugs.debian.org (full text, mbox, reply):

From: GOTO Masanori <gotom@debian.or.jp>
To: Miah Gregory <mace@darksilence.net>, 226515@bugs.debian.org
Cc: joergland@debian.org, racke@linuxia.de, abradley@vc.bc.ca
Subject: Re: Bug#226515: Progress
Date: Mon, 12 Jul 2004 10:08:03 +0900
At Sun, 11 Jul 2004 02:25:49 +0100 (BST),
Miah Gregory wrote:
> Has there been any progress on finding a solution for this bug? It seems
> to now be causing problems with courier-imap and fam (courier-imap only
> recently started using fam).
> 
> Backtraces are as shown by the bug submitter, and I'm using NIS, with
> a supplimentary group to the primary one.
> 
> If there's anything I can do to help track this down/fix the problem 
> please let me know.

It can be tracked more with: install libc6-dbg, set
LD_LIBRARY_PATH=/usr/lib/debug, execute gdb, and check backtrace.

Regards,
-- gotom



Merged 226515 246288. Request was from Sjoerd Simons <sjoerd@spring.luon.net> to control@bugs.debian.org. (full text, mbox, link).


Merged 226515 246288 305316. Request was from sjoerd@spring.luon.net (Sjoerd Simons) to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to Malte Cornils <malte@cornils.net>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #34 received at 226515@bugs.debian.org (full text, mbox, reply):

From: Malte Cornils <malte@cornils.net>
To: 226515@bugs.debian.org
Subject: NIS segfault
Date: Wed, 27 Apr 2005 03:01:00 +0200
Hello,

I'm hitting the FAM bug here, too. I've tried to follow your debugging guide. 
Maybe it helps...

-Malte

druckerei:~# gdb /usr/sbin/famd
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
 are
welcome to change it and/or distribute copies of it under certain condit
ions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for detai
ls.
This GDB was configured as "i386-linux"...(no debugging symbols found)
Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".

(gdb) run -T 0 -d
Starting program: /usr/sbin/famd -T 0 -d
(no debugging symbols found)
(no debugging symbols found)
famd[7138]: log level is LOG_DEBUG
famd[7138]: read /etc/fam.conf line 13: "insecure_compatibility" = "fals
e"
famd[7138]: read /etc/fam.conf line 20: "untrusted_user" = "nobody"
famd[7138]: read /etc/fam.conf line 28: "local_only" = "true"
famd[7138]: read /etc/fam.conf line 35: "xtab_verification" = "true"
famd[7138]: Setting untrusted-user to "nobody" (uid: 65534, gid: 65534)
famd[7138]: listening for clients on descriptor 6
famd[7138]: client fd 7 is local/untrusted.
famd[7138]: new connection from client 7
famd[7138]: client 7 said: client 7 is sockmeister, and wants a unix domain 
socket
famd[7138]: Setting groups to: (none)
famd[7138]: Setting egid to 0
famd[7138]: Skipping setting euid, because it's already 0
famd[7138]: client sockmeister said uid 1075; creating /tmp/.famDmdwB1
famd[7138]: listening for requests for uid 1075 on descriptor 8 
(/tmp/.famDmdwB1)
famd[7138]: client fd 9 is local/trusted (socket /tmp/.famDmdwB1, uid 1075).

Program received signal SIGSEGV, Segmentation fault.
0x40006b66 in getgrent_next_nss (ent=0xbffff840,
    buffer=0xbffff430 "+", buflen=1024, user=0x806e688 "mcornils",
    group=10, start=0xbffff89c, size=0xbffff8d4, groupsp=0xbffff8d8,
    limit=-1, errnop=0x401699a0) at nss_compat/compat-initgroups.c:266
266     nss_compat/compat-initgroups.c: Datei oder Verzeichnis nicht gefunden.
        in nss_compat/compat-initgroups.c
(gdb) bt
#0  0x40006b66 in getgrent_next_nss (ent=0xbffff840,
    buffer=0xbffff430 "+", buflen=1024, user=0x806e688 "mcornils",
    group=10, start=0xbffff89c, size=0xbffff8d4, groupsp=0xbffff8d8,
    limit=-1, errnop=0x401699a0) at nss_compat/compat-initgroups.c:266
#1  0x40006e96 in internal_getgrent_r (ent=0xbffff840,
    buffer=0xbffff430 "+", buflen=1024, user=0x806e688 "mcornils",
    group=10, start=0xbffff89c, size=0xbffff8d4, groupsp=0xbffff8d8,
    limit=-1, errnop=0x401699a0) at nss_compat/compat-initgroups.c:393
#2  0x40006fd4 in _nss_compat_initgroups_dyn (
    user=0x806e688 "mcornils", group=10, start=0xbffff89c,
    size=0xbffff8d4, groupsp=0xbffff8d8, limit=-1, errnop=0x401699a0)
    at nss_compat/compat-initgroups.c:422
#3  0x400df304 in internal_getgrouplist (user=0x806e688 "mcornils",
    group=10, size=0xbffff8d4, groupsp=0xbffff8d8, limit=-1)
    at initgroups.c:175
#4  0x400df443 in getgrouplist (
    user=0x388 <Address 0x388 out of bounds>, group=904,
    groups=0x8072868, ngroups=0xbffff908) at initgroups.c:210
#5  0x0804ad56 in ?? ()
#6  0x0805110d in ?? ()
#7  0x08059324 in __assert ()
#8  0x08059401 in __assert ()
#9  0x0805c45e in __assert ()
---Type <return> to continue, or q <return> to quit---  
#10 0x4004fdc6 in __libc_start_main (main=0x805c240 <__assert+37984>,
    argc=4, ubp_av=0xbffffc84, init=0x805dc10 <__assert+44592>,
    fini=0x805dc70 <__assert+44688>,
    rtld_fini=0x47e154a0 <_rtld_local>, stack_end=0x0)
    at ../sysdeps/generic/libc-start.c:242
#11 0x08049d51 in ?? ()



Merged 226515 246288 305316 314480. Request was from Sjoerd Simons <sjoerd@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to Todd H Goyen <todd.goyen@swri.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #41 received at 226515@bugs.debian.org (full text, mbox, reply):

From: Todd H Goyen <todd.goyen@swri.org>
To: Debian Bug Tracking System <226515@bugs.debian.org>
Subject: libc6: getgrouplist segfault seems to be 2.4.xx dependent
Date: Mon, 27 Jun 2005 09:55:23 -0500
Package: libc6
Version: 2.3.2.ds1-22
Followup-For: Bug #226515


I have a nis setup with both 2.6 and 2.4 machines and only the 2.4 machines are effected by this bug. Not much but maybe it will lead someone down the right path.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.26
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

libc6 recommends no packages.

-- no debconf information





Merged 226515 246288 305316 314480 316914. Request was from sjoerd@spring.luon.net (Sjoerd Simons) to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#226515; Package libc6. (full text, mbox, link).


Acknowledgement sent to GOTO Masanori <gotom@debian.or.jp>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #48 received at 226515@bugs.debian.org (full text, mbox, reply):

From: GOTO Masanori <gotom@debian.or.jp>
To: 226515@bugs.debian.org, 246288@bugs.debian.org, 305316@bugs.debian.org, 314480@bugs.debian.org, 316914@bugs.debian.org, 226515-submitter@bugs.debian.org, 246288-submitter@bugs.debian.org, 305316-submitter@bugs.debian.org, 314480-submitter@bugs.debian.org, 316914-submitter@bugs.debian.org, stef@inforealm.org, palfrey@tevp.net, mace@darksilence.net, malte@cornils.net, todd.goyen@swri.org, sjoerd@spring.luon.net
Subject: Re: dbus-1 does not start because of segmentation fault
Date: Wed, 17 Aug 2005 12:43:36 +0900
Hi,

These bugs are marked as important when glibc 2.3.2.ds1 is used in
sarge.  Nowadays we have new glibc 2.3.5-3 in unstable.  Could you
test dbus-1 with new glibc?  I guess this problem is already fixed.

Regards,
-- gotom




Message sent on to Alexander Bradley <abradley@vc.bc.ca>:
Bug#226515. (full text, mbox, link).


Merged 226515 246288 305316 314480 316914 347233. Request was from Sjoerd Simons <sjoerd@spring.luon.net> to control@bugs.debian.org. (full text, mbox, link).


Merged 226515 246288 305316 314480 316914 347233 369536. Request was from Pierre Habouzit <madcoder@debian.org> to control@bugs.debian.org. (full text, mbox, link).


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:20 GMT) (full text, mbox, link).


Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Sun, 08 May 2011 21:15:11 GMT) (full text, mbox, link).


Notification sent to Alexander Bradley <abradley@vc.bc.ca>:
Bug acknowledged by developer. (Sun, 08 May 2011 21:15:24 GMT) (full text, mbox, link).


Message #62 received at 226515-done@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: 226515-done@bugs.debian.org
Cc: GOTO Masanori <gotom@debian.or.jp>
Subject: Re: dbus-1 does not start because of segmentation fault
Date: Sun, 8 May 2011 16:13:09 -0500
Version: 2.3.5-3

GOTO Masanori wrote:

> These bugs are marked as important when glibc 2.3.2.ds1 is used in
> sarge.  Nowadays we have new glibc 2.3.5-3 in unstable.  Could you
> test dbus-1 with new glibc?  I guess this problem is already fixed.

This might have been fixed by

    2003-04-23  Ulrich Drepper  <drepper@redhat.com>

        * grp/initgroups.c (getgrouplist): Don't copy too much into the
        user buffer if more groups are found than fit into it.

        * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
        extend_alloca.

or

    2005-03-29  Thorsten Kukuk  <kukuk@suse.de>

        [BZ #661]
        * grp/initgroups.c (internal_getgrouplist): Check if we have
        enough space before adding the primary group to the list.

or

    2003-06-27  Thorsten Kukuk  <kukuk@suse.de>

        * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
        functions, dlopen corresponding NSS module instead.

After gotom's ping, no one responded except someone reporting the same
bug with 2.3.2, and I suspect this is the sort of bug that would make
people unhappy enough to report it when they see it.  Closing.

Please reopen if it happens again.




Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Sun, 08 May 2011 21:15:25 GMT) (full text, mbox, link).


Notification sent to Fabian Wenzel <f.wenzel@gmx.net>:
Bug acknowledged by developer. (Sun, 08 May 2011 21:15:25 GMT) (full text, mbox, link).


Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Sun, 08 May 2011 21:15:26 GMT) (full text, mbox, link).


Notification sent to Torsten Schmutzler <s6757418+debian@inf.tu-dresden.de>:
Bug acknowledged by developer. (Sun, 08 May 2011 21:15:27 GMT) (full text, mbox, link).


Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Sun, 08 May 2011 21:15:27 GMT) (full text, mbox, link).


Notification sent to christian dare <christian.dare@univ-brest.fr>:
Bug acknowledged by developer. (Sun, 08 May 2011 21:15:34 GMT) (full text, mbox, link).


Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Sun, 08 May 2011 21:15:43 GMT) (full text, mbox, link).


Notification sent to Marc Glisse <glisse@stedding.loria.fr>:
Bug acknowledged by developer. (Sun, 08 May 2011 21:15:45 GMT) (full text, mbox, link).


Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Sun, 08 May 2011 21:15:47 GMT) (full text, mbox, link).


Notification sent to Volker Sauer <vsauer@dvs1.informatik.tu-darmstadt.de>:
Bug acknowledged by developer. (Sun, 08 May 2011 21:15:47 GMT) (full text, mbox, link).


No longer marked as found in versions glibc/2.3.6-9. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:09 GMT) (full text, mbox, link).


No longer marked as found in versions glibc/2.3.6-15. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:11 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 29 Nov 2013 07:28:08 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: Wed Oct 11 00:25:33 2017; 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.