From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8858e1a3649ea908,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-04 17:00:36 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!caen!crl.dec.com!crl.dec.com!pa.dec.com!dion From: dion@pa.dec.com (Jeremy Dion) Newsgroups: comp.unix.osf.osf1 Subject: Third Degree - malloc problem solved? Date: 5 Nov 1994 01:00:36 GMT Organization: DEC Western Research Lab Distribution: world Message-ID: <39elfk$69q$1@usenet.pa.dec.com> NNTP-Posting-Host: jdion.pa.dec.com davis@amy.tch.harvard.edu writes: > I might have solved my problem with malloc using the third degree > program. Aside from some memory leaks, the only problems reported by it > were memory reads outside of malloced blocks. I fixed these illegal memory > accesses and now the program works. However, I did not see any indication > of WRITING into any illegal blocks. I would think that malloc would fail > if I have trashed its data structures but this does not appear to be the > case. Comments? > > Here is the log file produced by this wonderful program. The illegal > memory accesses and ``super'' leaks have been fixed. But why was malloc > failing? We're the authors of Third Degree, and we're glad to see that it's finding more memory bugs for more OSF1 programmers. Malloc can fail for a number of reasons, not only because its data structures have been corrupted. You may have asked for too much memory as a result of the erroneous read, for instance. Third Degree DOES report all writes into unallocated memory, so the simplest explanation is that there weren't any. If you think that there must have been invalid writes, we'd like to see this code (but reply directly to us, not via the newsgroup). Jeremy Dion Louis Monier