From owner-freebsd-hackers Sun Jan 19 19:41:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA08619 for hackers-outgoing; Sun, 19 Jan 1997 19:41:36 -0800 (PST) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id TAA08613 for ; Sun, 19 Jan 1997 19:41:32 -0800 (PST) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id WAA02811; Sun, 19 Jan 1997 22:38:28 -0500 From: Bill Paul Message-Id: <199701200338.WAA02811@skynet.ctr.columbia.edu> Subject: Re: NIS breakage To: hench@cae.uwm.edu (Michael L. Hench) Date: Sun, 19 Jan 1997 22:38:27 -0500 (EST) Cc: hackers@freebsd.org In-Reply-To: from "Michael L. Hench" at Jan 19, 97 03:22:35 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Of all the gin joints in all the towns in all the world, Michael L. Hench had to walk into mine and say: > a quick note. 2.2. supped this morning, i cant seem to tfr a map > ~38k, > as measured by 'ypcat passwd.byname'. ypserv is local, doesnt seem to > matter WHICH 38k (not data dependent). > lots of wierdness trying a 98k map; ypserv cores (the child), sometimes > loops (sends same lines over and over) ill see if i can get a better idea > as to what/where/when. i did a make world 2x so i dont think anything is > inconsistent. Hm. Well, I did find a bug in ypserv/yp_dblookup.c:yp_next_record() which looks like it might be the cause of your trouble. I've committed the fix to the RELENG_2_2 and -current branches. Since it's small, here's a patch: *** yp_dblookup.c Mon Jan 13 23:20:26 1997 --- yp_dblookup.c.new Sun Jan 19 19:20:09 1997 *************** *** 600,607 **** rval = yp_first_record(dbp,key,data,allow); if (rval == YP_NOKEY) return(YP_NOMORE); ! else return(rval); } if (ypdb_debug) --- 600,612 ---- rval = yp_first_record(dbp,key,data,allow); if (rval == YP_NOKEY) return(YP_NOMORE); ! else { ! #ifdef DB_CACHE ! qhead.cqh_first->dbptr->key = key->data; ! qhead.cqh_first->dbptr->size = key->size; ! #endif return(rval); + } } if (ypdb_debug) Please let me know if this changes ypserv's behavior, one way or the other. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" =============================================================================