This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[vesuri@jormas.com] libc/1954: glibc 2.2 getpwuid segfaults on m68k when >1 entries in /etc/passwd



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



>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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]