* Third Degree - malloc problem solved?
@ 1994-11-05 1:00 Jeremy Dion
0 siblings, 0 replies; only message in thread
From: Jeremy Dion @ 1994-11-05 1:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-11-05 1:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-05 1:00 Third Degree - malloc problem solved? Jeremy Dion
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox