Bug 448702

Summary: Strange bug in NIS hosts file
Product: [openSUSE] openSUSE 11.1 Reporter: Wim De Meester <wim.demeester>
Component: NetworkAssignee: Petr Baudis <pbaudis>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: koenig, loose
Version: Beta 5   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard: maint:released:11.1:22237
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: The output of strace telnet computername2
The output of ssh computername2 in opensuse 11.1 RC1
The /etc/hosts file
The /etc/resolv.conf file
The nsswitch.conf file
The coredump of ssh computername2
The output of rcsmartd start

Description Wim De Meester 2008-11-25 14:14:33 UTC
I have a NIS server, running opensuse 10.3 (i586). On this NIS server, I have a hosts file, where a lot of my hosts are defined. 

I have the following hosts defined : 

10.xx.xx.xx  computername.domain.be   computername
10.xx.xx.xx  computername2.domain.be  computername2.domain.ac.be  computername2

The following strange things happen :

ping computername    -> Works
ping computername2   -> Works
telnet computername  -> Works
telnet computername2 -> Does not work!!! The only thing I get is 'Aborted'
ssh computername     -> Works
ssh computername2    -> Does not work!!! The only thing I get is 'Aborted'

There is a disk exported on computername2 using NIS. This works fine.

When I change the line 

10.xx.xx.xx  computername2.domain.be  computername2.domain.ac.be  computername2

in my host file to

10.xx.xx.xx  computername2.domain.be  computername2

Everything works fine.
Comment 1 Petr Baudis 2008-11-26 10:41:27 UTC
I'm confused, so is this a bug in 11.1 or 10.3?

Can you strace telnet computername2 and attach the output here? Is nscd running? (Can you check if this happens with it off/on as well?)
Comment 2 Wim De Meester 2008-11-26 11:16:51 UTC
The client is running opensuse 11.1 beta 5. The problem does not occur with a client running opensuse 11.0. 

The problem occurs both when nscd is running and when nscd is not running. 

I attach the output of strace telnet computername2
Comment 3 Wim De Meester 2008-11-26 11:18:53 UTC
Created attachment 255659 [details]
The output of strace telnet computername2
Comment 4 Petr Baudis 2008-11-28 00:06:10 UTC
Ok, so this is not so simple. Please:

* Include your /etc/host.conf, /etc/resolv.conf and /etc/nsswitch.conf
* ulimit -c unlimited, then run the aborting application and attach the resulting coredump

Thanks!
Comment 5 Wim De Meester 2008-11-28 09:49:42 UTC
Meanwhile, I updated to 11.1 RC1 and have still the problem. However, now, I get a lot of information dumped. I'll attach it to this file.
Comment 6 Wim De Meester 2008-11-28 09:52:13 UTC
Created attachment 256457 [details]
The output of ssh computername2 in opensuse 11.1 RC1
Comment 7 Wim De Meester 2008-11-28 09:55:07 UTC
Created attachment 256460 [details]
The /etc/hosts file
Comment 8 Wim De Meester 2008-11-28 09:56:25 UTC
Created attachment 256461 [details]
The /etc/resolv.conf file
Comment 9 Wim De Meester 2008-11-28 09:56:53 UTC
Created attachment 256462 [details]
The nsswitch.conf file
Comment 10 Wim De Meester 2008-11-28 09:59:24 UTC
Created attachment 256467 [details]
The coredump of ssh computername2
Comment 11 Petr Baudis 2008-12-08 10:57:35 UTC
Can you try the glibc from http://www.suse.de/~pbaudis/bug-448702 (will appear within an hour)? It contains a patch that might fix your problem.
Comment 12 Wim De Meester 2008-12-08 12:21:48 UTC
This new version of glibc indeed fixes my problem! Thanks a lot. I also had problems to print, but that was probably the same problem, because it is also fixed. 
Will this glibc version make it to opensuse 11.1? Probably not...

For my part, this bug can be closed.
Comment 13 Petr Baudis 2008-12-08 12:45:56 UTC
Thanks for the confirmation. This glibc version will most probably not make it to opensuse 11.1 but we will release an online update containing this fix soon after the release.
Comment 14 Wim De Meester 2008-12-09 09:59:17 UTC
Will there also be a glibc-32bit version? I guess there is also a problem there, but I could not find the packages for the 32-bit version...
Comment 15 Wim De Meester 2008-12-09 10:10:58 UTC
I still have similar problems when starting smartd using the command 

rcsmartd

I attach the output. Is this the same problem or should I open a new bug for this?
Comment 16 Wim De Meester 2008-12-09 10:13:34 UTC
Created attachment 258858 [details]
The output of rcsmartd start
Comment 17 Petr Baudis 2008-12-09 10:52:18 UTC
I can build the 32bit glibc package for you. The rcsmartd problem is unrelated, please open a separate bug.
Comment 18 Wim De Meester 2008-12-09 11:08:02 UTC
Thanks for building the 32bit glibc package. I will open a new bug for the rcsmartd bug.
Comment 19 Petr Baudis 2008-12-11 00:39:08 UTC
Sorry, I forgot to copy it over - it'll be now at http://www.suse.de/~pbaudis/bug-448702-i586
Comment 20 Wim De Meester 2008-12-11 08:56:17 UTC
Thanks. Can I install one of these files on my 64 bit machine? On the cd of opensuse 11.1 rc1, I have the following file :
glibc-32bit-2.9-2.1.x86_64.rpm 
Comment 21 Petr Baudis 2008-12-11 10:08:23 UTC
Sorry, it seems building -32bit packages in 11.1 is broken for now. :(
Comment 22 Petr Baudis 2008-12-16 11:49:05 UTC
*** Bug 458737 has been marked as a duplicate of this bug. ***
Comment 23 Petr Baudis 2009-01-22 15:42:58 UTC
*** Bug 464181 has been marked as a duplicate of this bug. ***
Comment 24 Swamp Workflow Management 2009-02-05 14:44:55 UTC
Update released for: glibc, glibc-debuginfo, glibc-debugsource, glibc-devel, glibc-html, glibc-i18ndata, glibc-info, glibc-locale, glibc-obsolete, glibc-profile, nscd
Products:
openSUSE 11.1 (debug, i586, i686, ppc, ppc64, x86_64)