Subject: bin/8064: YP server tools (mknetid, makedbm, yppush) not working OK
To: None <gnats-bugs@gnats.netbsd.org>
From: Paulo Alexandre Pinto Pires <pappires@ppires.org>
List: netbsd-bugs
Date: 07/24/1999 13:20:54
>Number:         8064
>Category:       bin
>Synopsis:       YP server tools (mknetid, makedbm, yppush) not working OK
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 24 13:20:00 1999
>Last-Modified:
>Originator:     Paulo Alexandre Pinto Pires
>Organization:
	Familia Pires
>Release:        1999/07/23
>Environment:
System: NetBSD mateus.ppires.org 1.4G NetBSD 1.4G (MATEUS-19990723) #0: Sat Jul 24 00:45:08 EST 1999 Pappires@mateus.ppires.org:/usr/src/sys/arch/i386/compile/MATEUS-19990723 i386


>Description:
	makedbm seems to be doing something wrong while trying to free()
	a pointer in create_database().

	yppush, on its turn, is refusing to push any map, returning error
	messages about invalid order numbers.

	Map creation, however, happens OK in the master servers when
	make is run in /var/yp.  Likewise, ypxfr runs fine in slave servers.

>How-To-Repeat:
	The example below shows problem just for netid map (amd and
	ethers actually don't exist, so I ignore them).  That's because
	other maps were already created.

	# cd /var/yp
	# make
	all ===> pires
	couldn't find /etc/amd/amd.home
	couldn't find /etc/ethers
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	mknetid in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	makedbm in free(): warning: modified (chunk-) pointer.
	updated netid
	yppush: invalid order number: check database with 'makedbm -u'
	pushed netid
	#

>Fix:
	A workaround is not to rely on master to push maps on rebuild,
	but instead login to every slave server and run ypxfr to get
	maps that changed, or run ypinit -s to transfer everything
	at once.
>Audit-Trail:
>Unformatted: