Relay-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: lsuc!dave From: dave@lsuc.UUCP (David Sherman) Newsgroups: pe.cust.bugs Subject: Re: uucp dumping core when many files - help! Message-ID: <449@lsuc.UUCP> Date: 27 Feb 85 15:57:11 GMT Date-Received: 27 Feb 85 15:57:11 GMT References: <404@lsuc.UUCP> Organization: Law Society of Upper Canada, Toronto Lines: 29 Summary: bug fix enclosed Well, since no-one else came up with the answer, I delved into the uucp source and fixed the bug which was causing core dumps. A memory fault was resulting from a call to prefix() with a second argument which was garbage. In anlwrk.c, the function iswrk(), the code static char **listp, *list[LLEN]; ... if (listp == NULL || *listp == NULL || listp > (list + LLEN) || !prefix(pre, *listp)) { obviously was checking one too far. Just change the > to >= so the test line reads: if (listp == NULL || *listp == NULL || listp >= (list + LLEN) Presto, problem solved. If you have source, you should fix it. If you don't, get your P-E office to fix it. Since LLEN is 20, the problem appears if you have >40 files to process for the same site at one time. (We had a backlog of 862 files in /usr/spool/uucp, which was what encouraged me to track down the bug!) Dave Sherman The Law Society of Upper Canada -- {utzoo pesnta nrcaero utcs hcr}!lsuc!dave {allegra decvax ihnp4 linus}!utcsri!lsuc!dave