This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[vesuri@jormas.com] libc/1954: glibc 2.2 getpwuid segfaults on m68k when >1 entries in /etc/passwd
- To: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>
- Subject: [vesuri@jormas.com] libc/1954: glibc 2.2 getpwuid segfaults on m68k when >1 entries in /etc/passwd
- From: Andreas Jaeger <aj at suse dot de>
- Date: 13 Dec 2000 08:45:59 +0100
- Cc: vesuri at jormas dot com
I do suspect a compiler bug here since it works on all other systems.
Has anybody other ideas?
Vesuri, which compiler are you using?
Andreas
Subject: Topics
Topics:
libc/1954: glibc 2.2 getpwuid segfaults on m68k when >1 entries in /etc/passwd
- To: libc-gnats at gnu dot org, gnats-admin at gnu dot org
- Subject: libc/1954: glibc 2.2 getpwuid segfaults on m68k when >1 entries in /etc/passwd
- From: vesuri at jormas dot com
- Date: Tue, 12 Dec 2000 20:10:07 -0500
>Number: 1954
>Category: libc
>Synopsis: glibc 2.2 getpwuid segfaults on m68k when >1 entries in /etc/passwd
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: libc-gnats
>State: open
>Quarter: 4
>Keywords:
>Class: sw-bug
>Submitter-Id: gnatsweb
>Arrival-Date: Tue Dec 12 20:10:07 -0500 2000
>Cases:
>Originator: ?
>Release: 2.2
>Organization:
dA JoRMaS
>Environment:
m68k-amiga-linux-gnu
Linux kernel 2.2.17
glibc 2.2
Motorola 68040
>Description:
If there are multiple entries in the /etc/passwd file (like
there usually are), getpwuid causes a segmentation fault
while resolving the user names.
A stack trace from /usr/bin/w follows:
Starting program: /usr/bin/w
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0xc0109002 in internal_getpwuid_r () from /lib/libnss_compat.so.2
(gdb) bt
#0 0xc0109002 in internal_getpwuid_r () from /lib/libnss_compat.so.2
#1 0xc0109348 in _nss_compat_getpwuid_r () from /lib/libnss_compat.so.2
#2 0xc00ac31c in getpwuid_r@@GLIBC_2.1.2 () from /lib/libc.so.6
#3 0xc00abd58 in getpwuid () from /lib/libc.so.6
#4 0xc001d852 in user_from_uid () from /lib/libproc.so.2.0.7
#5 0xc001e160 in readproc () from /lib/libproc.so.2.0.7
#6 0xc001e9b6 in readproctab () from /lib/libproc.so.2.0.7
#7 0x800016f8 in strncpy ()
#8 0xc004aeca in __libc_start_main () from /lib/libc.so.6
If I only have ONE entry in /etc/passwd (root) everything
works fine but I only need to add one line (it may even be
empty) and this happens. It happens with all programs
(ls -l for example), not only 'w'.
>How-To-Repeat:
Run /usr/bin/w
>Fix:
Unknown
>Unformatted:
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj