Path: utzoo!attcan!uunet!mcvax!unido!altger!fkk From: fkk@altger.UUCP (Frank Kurt Kaefer) Newsgroups: comp.sources.d Subject: Re: gnu egrep - realloc of 0 bytes caused failure: Memory exhausted Message-ID: <1390@altger.UUCP> Date: 17 Feb 89 08:38:44 GMT References: <1114@rlgvax.UUCP> Reply-To: fkk@altger.UUCP (Frank Kurt Kaefer) Organization: Altos Computer Systems Munich Lines: 19 In article <1114@rlgvax.UUCP> dennis@rlgvax.UUCP (Dennis.Bednar) writes: ~The GNU version of egrep failed to work on a CCI 6/32 ~running Unix SV. The bug was traced to the fact that ~realloc(p, n) was being called with n==0, given the ~command line "grep abc". I did not have time to track ~down the gory details as to why realloc was being called ~with 0, nor why it supposedly works on other machines ~(assuming that realloc is called with 0 on other machines). ~ ~-dennis ~-- Hiya! I have the same problem under OS-9/68000. I think the fix by dennis can only be a tenmporarily solution but it is nevertheless useful. Some comments from the authors ? Frank (fkk@stasys.UUCP ...!pyramid!tmpmbx!doitcr!stasys!fkk)