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

Re: login failure (was: Re: List of Uncompilable Sparc Packages)



Eric Delaunay wrote:
> PS: my getty (1.0-5 for libc5) does not work anymore with libc6 linked init
>    (sysvinit 2.73-1) & login (970616-1).  Therefore I cannot login anymore
>    from console (hopefully rlogin still works !).
>    The following error occures:
> 
>    kernel: Fault: login[112]: segfaults at 00000000 pc=00000000
> 
>    /bin/login works via "exec" from inside an xterm or "open" on a new tty, so
>    this program seems to be ok.  I also replaced getty with a new mingetty
>    linked with libc6 with no success.
> 
>    Any pointer?

Well, I investigated a bit further and found that login segfaults because
/etc/nsswitch.conf is not on my system.  Below is the end of the strace on
/bin/login:

prof()                                  = 28
close(3)                                = 0
open("/lib/libnss_nisplus.so.1", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x50021000
munmap(0x50021000, 4096)                = 0
mmap(0, 111620, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x501d8000
mprotect(0x501e3000, 66564, PROT_NONE)  = 0
mmap(0x501e8000, 49152, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x501e8000
close(3)                                = 0
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

I added the default /etc/nsswitch.conf coming with glibc sources and now it
works fine.
Juan, don't forget to provide this file in your next libc package.

For the sake of completeness, I put its contents below, just in case anybody
want to upgrade the login package.

Hope this help.
Bye.

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

passwd:         db files
group:          db files
shadow:         db files

hosts:          files dns
networks:       files dns

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

netgroup:       db files
------------cut hrere--------------

-- 
 Eric Delaunay                 | "La guerre justifie l'existence des militaires.
 delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-sparc-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: