bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Illegal instruction" in __getgrnam_r


From: try
Subject: "Illegal instruction" in __getgrnam_r
Date: Fri, 24 Aug 2001 15:46:23 -0700
User-agent: Mutt/1.2.5i

Hi,

I am having problem running chgrp (and chown) in
a chrooted limited environment (only
very basic tools like bash, filetuils, etc.)
and they are all statically linked).
chgrp dumps core for any group other than root.
Interestingly this error happens on i586 but not on i686.
Attached please find gdb backtrace output and /etc/root
and /etc/group. glibc used for generating exectables
is 2.2-9 (from redhat rpm) and fileutils is 4.1
Any help will be greatly appreciated.

-T.

------------- gdb --------------
address@hidden root]#  gdb ../bin/chgrp core
GNU gdb 5.0
Copyright 2000 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-redhat-linux"...
Core was generated by `../bin/chgrp sys 1'.
Program terminated with signal 4, Illegal instruction.
#0  0x400991b2 in ?? ()
(gdb) bt
#0  0x400991b2 in ?? ()
#1  0x40003cc6 in ?? ()
#2  0x8058bfa in __getgrnam_r (name=0xbfffff21 "sys", resbuf=0x80a5e7c, 
    buffer=0x80a6ff8 "root", buflen=1024, result=0xbffffd18)
    at ../nss/getXXbyYY_r.c:191
#3  0x80587ab in getgrnam (name=0xbfffff21 "sys") at ../nss/getXXbyYY.c:127
#4  0x804820e in parse_group (name=0xbfffff21 "sys", g=0xbffffd7c)
    at chgrp.c:96
#5  0x804856d in main (argc=3, argv=0xbffffe84) at chgrp.c:223
#6  0x8049b25 in __libc_start_main (main=0x8048338 <main>, argc=3, 
    ubp_av=0xbffffe84, init=0x80480b4 <_init>, fini=0x80949a0 <_fini>, 
    rtld_fini=0, stack_end=0xbffffe7c) at ../sysdeps/generic/libc-start.c:118
(gdb) 

--------------------passwd and group---------------------
address@hidden root]# more ../etc/passwd 
root:x:0:0:root:/root:/bin/bash
address@hidden root]# more ../etc/group  
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]