From owner-freebsd-bugs Fri Nov 15 08:58:42 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA29336 for bugs-outgoing; Fri, 15 Nov 1996 08:58:42 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA29325; Fri, 15 Nov 1996 08:58:38 -0800 (PST) From: Bill Paul Message-Id: <199611151658.IAA29325@freefall.freebsd.org> Subject: Re: aieee!! nis gone to hell in 2.2... :-/ To: peter@spinner.DIALix.COM (Peter Wemm) Date: Fri, 15 Nov 1996 08:58:36 -0800 (PST) Cc: bugs@freebsd.org In-Reply-To: <199611151618.AAA10171@spinner.DIALix.COM> from "Peter Wemm" at Nov 16, 96 00:18:25 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [chop] > The debug code that printed this in yp_submit(): > /* Get NIS master server name */ > > warnx("pw_shell 1: '%s':%d", pw->pw_shell, strlen(pw->pw_shell)); > > master = get_yp_master(1); > > warnx("pw_shell 2: '%s':%d", pw->pw_shell, strlen(pw->pw_shell)); > > It's not looking real good for get_yp_master()... > > Cheers, > -Peter > Rrr... I'm in the same area. The problem is getrpcport() (that's buried inside get_yp_master()). getrpcport calls gethostname(), and I think it's gethostname that's clobbering memory somehow. This is something I stumbled onto a long time ago. I thought I had worked around it, but apparently I was wrong. I never did figure out why gethostname() was zonking my pw structs, so I avoided calling gethostname() until after I had copied it. The weird thing is: I just linked a static version of chpass for testing and _that_ executable works. This is damn strange. I'm starting to wonder if maybe there's a deeper problem somewhere. -Bill