Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ncar!gatech!udel!burdvax!Grumpy!wgh From: wgh@Grumpy.UUCP (William G. Hutchison) Newsgroups: comp.sources.bugs Subject: Re: Bug in Conf 2.0 Summary: shouldn't malloc(0) ! Keywords: conf bugs 2.0 Message-ID: <359@Grumpy.UUCP> Date: 28 Sep 88 20:31:50 GMT References: <2@elgar.UUCP> Organization: UNISYS CS, Blue Bell, PA Lines: 19 In article <2@elgar.UUCP>, ag@elgar.UUCP (Keith Gabryelski) writes: > Date: 15 Sep 88 10:32:05 EDT (Thu) > From: ucsd!rutgers!bpa.bell-atl.com!lehi3b15!flash (Stephen Corbesero) > I just received Conf across the net, and compiled it. However, I get > a "Memory Fault -- core dumped" almost immediately. I compiled conf on a Unisys 7000/52 (CCI Tahoe) running SysV rel 2. I found that malloc was being called to allocate zero bytes: I did not have time to find out why. I changed the source so that malloc was only called to allocate a positive number of bytes (1 or more). With that fix, conf works fine. Perhaps the author can find the "root" cause (pun intended). Yr friendly neighborhood hacker: -- Bill Hutchison, DP Consultant rutgers!cbmvax!burdvax!Grumpy!wgh Unisys UNIX Portation Center "What one fool can do, another can!" P.O. Box 500, M.S. B121 Ancient Simian Proverb, quoted by Blue Bell, PA 19424 Sylvanus P. Thompson, in _Calculus Made Easy_