home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6378 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!mips!decwrl!pa.dec.com!decuac!hussar.dco.dec.com!mjr
  3. From: mjr@hussar.dco.dec.com (Marcus J. Ranum)
  4. Subject: Re: malloc
  5. Message-ID: <1992Aug21.021610.11129@decuac.dec.com>
  6. Sender: news@decuac.dec.com (USENET News System)
  7. Nntp-Posting-Host: hussar.dco.dec.com
  8. Organization: Digital Equipment Corporation, Washington ULTRIX Resource Center
  9. References: <1992Aug20.153542.1417@bmw.mayo.edu>
  10. Date: Fri, 21 Aug 1992 02:16:10 GMT
  11. Lines: 22
  12.  
  13. staniszewski@mayo.edu writes:
  14.  
  15. >I am having trouble finding a problem with dynamicly allocated memory.
  16. >Specificlly I will get unexplicable bus errors inside malloc after LOTS of
  17. >dynamic memory manipulation. I put a layer of tracking software between my
  18. >program and malloc, which should have cought such things as freeing memory that
  19. >wasn't malloced, writing beyond the block of allocated memory and some other
  20. >stuff. I just ended up crashing inside molloc in a differn't place. 
  21. >Does anyone have source for malloc that I could use to build a debug version
  22. >and look at the internal structures and try to figure out what is happening??
  23.  
  24.     You could try using the mprof code from (as usual) decuac.dec.com,
  25. in /pub/sources/mprof-3.0.tar.Z
  26.  
  27.     Mprof's pretty cool. It has a version of malloc that keeps memory
  28. allocation related statistics, including some Very Cool stack unrolling
  29. code that is wizard for helping find memory leaks. There is some rudimentary
  30. checking in there for dup free()s and whatnot, and I'd dearly love for
  31. some hero of the revolution to add tombstones and all that, but it isn't
  32. going to be me. :)
  33.  
  34. mjr.
  35.