Public bug reported:

In Kubuntu 6.10 amd64,

touch testfile
chgrp devel testfile
Segmentation fault

Group "devel" does not exist in local /etc/group file.  The host is
configured for NIS, and:

ypmatch -k devel group.byname
devel devel::101:someuser,anotheruser,...

Considering sources for chgrp:

cd /usr/local/src
mkdir coreutils
apt-get build-dep coreutils
apt-get source coreutils
cd coreutils-5.96
make -f debian/rules binary
cd build-tree
cd coreutils-5.96
cd src
touch testfile
./chgrp devel testfile
Segmentation fault

gdb chgrp
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "x86_64-linux-gnu"...Using host libthread_db library 
"/lib/libthread_db.so.1".

(gdb) set args devel testfile
(gdb)   run
Starting program: 
/usr/src/coreutils/coreutils-5.96/build-tree/coreutils-5.96/src/chgrp devel 
testfile

Program received signal SIGSEGV, Segmentation fault.
0x00002ace156b39c0 in _nss_files_getgrnam_r () from /lib/libnss_files.so.2
(gdb) bt
#0  0x00002ace156b39c0 in _nss_files_getgrnam_r () from /lib/libnss_files.so.2
#1  0x00002ace154ff915 in getgrnam_r@@GLIBC_2.2.5 () from /lib/libc.so.6
#2  0x00002ace154fef70 in getgrnam () from /lib/libc.so.6
#3  0x0000000000401cdd in main (argc=<value optimized out>, argv=0x7fffffc94118)
    at chgrp.c:83

Could this be related to 72882 which I submitted earlier today?

It looks like related macros within glibc-2.4/nss/nss_files/

may be involved.

This is on the same host 72882 was submitted against.  It's up-to-date
with respect to us.archive.ubuntu.com and security.ubuntu.com as of
a few hours prior to submission time for this bug.

After adding "devel" to /etc/group:

tail -1 /etc/group
devel:x:115:
touch testfile
chgrp devel testfile

(all OK)

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
segfault in getgrnam() on amd64
https://launchpad.net/bugs/72923

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to