Nis host resolution bug ?


I’ve just installed OpenSuse 11.1, and I’m facing a weird problem :

I’m using NIS as hostname resolution in my network, so I added, as I usually do with other versions of Suse, this line in nsswitch.conf :

hosts:  files nis mdns4_minimal [NOTFOUND=return] dns

As soon as there is the “nis” option for the hosts resolution I cannot use ssh/rsh anymore (from the host, or from another host).
I get this error when trying to ssh from another host :

** glibc detected *** in.rshd: free(): invalid pointer: 0x00007ff0f15a6af9 ***

And when trying to log from this host to another host, I get this :

*** glibc detected *** ssh: free(): invalid pointer: 0x00007f63a461f199 ***
======= Backtrace: =========
======= Memory map: ========


Any idea on how to solve this ?
Thanks a lot

I encounter similar problem as yours except I do not have any error.

The situation is this:
System A is openSUSE 11.1. Configured as NIS client. nsswitch.conf is set to:
hosts: files nis dns

System B is openSUSE 10.3. Configured as NIS client also.

The problem is, from System B, I cannot ssh to System A at all. It alway disconnect me after I enter password. I even try to enter nothing for password and it disconnect me right away (not like usual asking for password for 3 times).

Then, if I set System A (openSUSE 11.1) nsswitch.conf by removing “nis” from the hosts:
hosts: files dns

I can connect from System B to System A.



I think I solve my problem.

It turns out the glibc that comes with the openSUSE 11.1 that is causing it. The version is:

I upgrade/update it to:
glibc-2.9-2.11.1.x86_64.rpm { Yes, I’m using x86_64 version }

and now the problem solve! :slight_smile:

To get the update RPM for glibc:
Index of /update/11.1/rpm/x86_64
Index of /update/11.1/rpm/i586