Article View: comp.os.ms-windows.programmer.misc
Article #2972Re: Good memory debugger for Linux or Windows?
From: Andreas Dilger
Date: Wed, 17 Jul 1996 00:00
Date: Wed, 17 Jul 1996 00:00
27 lines
2291 bytes
2291 bytes
In article <4sf37a$j4q@engnews2.Eng.Sun.COM>, Ioi Lam <ioi@Sun.COM> wrote: >(1) On Linux, are there any useful memory debuggers? I don't mind > spending a hundred or so dollars as long as I can get something > that works smoothly like Purify. > >(2) On Windows, what are the best memory debuggers? Can they work with > VC++ 4.0/4.1? A memory debugger I use is called Fortify. I requires that you re-compile your software (although it doesn't necessarily require any changes to the code). It is free, and I got it from ftp://garbo.uwasa.fi/pc/c-lang. It was originally designed to work with DOS, but also works fine under Unix. It does things such as overwrite newly malloced memory to be non-zero, has buffers before and after malloced memory to test for overruns, checks for frees of memory not malloced, and overwrites memory when freed so it doesn't have 'almost' valid data if malloced again. It can force random failures of malloc to stress test your application. It also has a C++ interface that work with new and delete (I haven't tested this myself). Cheers, Andreas. -- Andreas Dilger University of Calgary \"If a man ate a pound of pasta and (403) 220-8792 Micronet Research Group \ a pound of antipasto, would they Dept of Electrical & Computer Engineering \ cancel out, leaving him still http://www-mddsp.enel.ucalgary.ca/People/adilger/ hungry?" -- Dogbert
Technical Details
Message-ID:
<4sjjt9$ikm@ds2.acs.ucalgary.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4sf37a$j4q@engnews2.Eng.Sun.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,43b04cb924b37d87,start X-Google-Attributes: gid11318c,public X-Google-Thread: 10c696,43b04cb924b37d87,start X-Google-Attributes: gid10c696,public X-Google-Thread: 1103af,43b04cb924b37d87,start X-Google-Attributes: gid1103af,public X-Google-Thread: 105df1,43b04cb924b37d87,start X-Google-Attributes: gid105df1,public From: adilger@enel.ucalgary.ca (Andreas Dilger) Subject: Re: Good memory debugger for Linux or Windows? Date: 1996/07/17 Message-ID: <4sjjt9$ikm@ds2.acs.ucalgary.ca> X-Deja-AN: 169392581 sender: adilger@enel.ucalgary.ca (Andreas Dilger) references: <4sf37a$j4q@engnews2.Eng.Sun.COM> organization: ECE Department, U. of Calgary, Calgary, Alberta, Canada newsgroups: comp.os.ms-windows.programmer.misc,comp.os.linux.development.apps,comp.os.linux.misc,gnu.gcc.help