Path: utzoo!utgpu!water!watmath!clyde!rutgers!sunybcs!boulder!hao!gatech!mcnc!decvax!decwrl!pyramid!prls!mips!roger From: roger@mips.UUCP (Roger March) Newsgroups: comp.sources.bugs Subject: EDIF 2.0.0, patch 1 ... Keywords: Allocation bug, dies horribly on SUNs Message-ID: <1167@obiwan.UUCP> Date: 17 Dec 87 17:06:50 GMT Lines: 27 The current string length is not reset in the 'FormString' function, and so each call causes larger and large allocations to occur. It is wrong, and for reasons unknown, cause SUNs to core dump. Anyway, here is a 'patch'-able 'diff' to fix up 'edif.y' so it works right. -- -your friendly neighborhood Rogue Monster roger@mips.com UUCP: {decvax,ucbvax,ihnp4,hplabs,sun,ames,prls}!decwrl!mips!roger USPS: MIPS Computer Systems, 930 Arques, Sunnyvale, CA 94086, (408) 991-0220 *** ../parser.post/edif.y Thu Dec 17 08:58:59 1987 --- edif.y Thu Dec 17 08:43:26 1987 *************** *** 3720,3725 **** --- 3720,3726 ---- } *cp-- = bck->Data[--bck->Index]; } + StringSize = 0; return (cp + 1); } /* -- -your friendly neighborhood Rogue Monster roger@mips.com UUCP: {decvax,ucbvax,ihnp4,hplabs,sun,ames,prls}!decwrl!mips!roger USPS: MIPS Computer Systems, 930 Arques, Sunnyvale, CA 94086, (408) 991-0220