[Bug 481963] New: App fails in _nss_nis_getpwnam_r when auto.home has a short host name
https://bugzilla.novell.com/show_bug.cgi?id=481963 User roger@atchoo.org added comment https://bugzilla.novell.com/show_bug.cgi?id=481963#c441947 Summary: App fails in _nss_nis_getpwnam_r when auto.home has a short host name Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: roger@atchoo.org QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1.2 Firefox/3.0.6 This is very similar to the bugs #441947 and #448702. My client machine mounts an nfs home directory with autofs/nfs, coupled with nis. If the user entry in auto.home (retrieved via nis) is a short name "foo", instead of a FQDN "foo.example.com" then a proprietary app I use fails. Using the FQDN in auto.home means it succeeds. A (slightly sanitised) gdb backtrace is as follows: #0 0x00007ffff689fc43 in free () from /lib64/libc.so.6 #1 0x00007ffff641c381 in _nss_nis_getpwnam_r () from /lib64/libnss_nis.so.2 #2 0x00007ffff662516b in getpwnam_plususer (name=0x7fffffffecdf "ral", result=0x7ffff6b7f8c0, ent=0x7fffffff68c0, buffer=0x21d14e8 "ral:SANITISED:17410:Roger Light:/home/ral:/bin/bash", buflen=1024, errnop=0x7ffff7fd1698) at nss_compat/compat-pwd.c:505 #3 0x00007ffff6625437 in _nss_compat_getpwnam_r (name=0x7fffffffecdf "ral", pwd=0x7ffff6b7f8c0, buffer=0x21d14e8 "ral:SANITISED:17410:17410:Roger Light:/home/ral:/bin/bash", buflen=1024, errnop=0x7ffff7fd1698) at nss_compat/compat-pwd.c:839 #4 0x00007ffff68caa7d in getpwnam_r () from /lib64/libc.so.6 #5 0x00007ffff68ca3f0 in getpwnam () from /lib64/libc.so.6 #6 0x0000000000b054d5 in voGetUserInfo () #7 0x0000000000b05667 in voInit4 () #8 0x000000000049c125 in main () valgrind says much the same thing, I can post that output as well if you want. The same app works fine on 11.0. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481963 User roger@atchoo.org added comment https://bugzilla.novell.com/show_bug.cgi?id=481963#c1 --- Comment #1 from Roger Light <roger@atchoo.org> 2009-03-06 07:48:00 MST --- I just got this problem again, even using a FQDN in auto.home. Restarting nscd fixed it, so I guess changing the host name was an incorrect "fix" as I restarted nscd at the same time. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481963 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |pbaudis@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481963 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481963#c2 --- Comment #2 from Petr Baudis <pbaudis@novell.com> 2009-03-17 10:01:07 MST --- Are you using latest glibc updates? Have you restarted nscd since the glibc update? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481963 User roger@atchoo.org added comment https://bugzilla.novell.com/show_bug.cgi?id=481963#c3 --- Comment #3 from Roger Light <roger@atchoo.org> 2009-03-17 12:52:16 MST --- Sorry, should've added that in the initial report. This is glibc-2.9-2.11.1. nscd has been restarted a number of times since the glibc updates. I should also add that it's extremely intermittent - I've not been able to get a reliable way of reproducing the problem at all. In fact, it's very hard to reproduce recently. I guess this isn't a very useful report... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com