From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,b325d8cb96e62473,start X-Google-Attributes: gid10d4db,public From: jbuchana@kopt0126.delcoelect.com Subject: mem_test -helps find memory leaks in C code Date: 1997/03/13 Message-ID: #1/1 X-Deja-AN: 225251725 X-Server-Date: 13 Mar 1997 18:24:05 GMT Followup-To: comp.os.linux.misc Old-Date: 12 Mar 1997 14:02:02 GMT Organization: Courts of Chaos Research Center X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce Newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- mem_test helps you find the memory leaks that can result in a C program when you allocate memory and don't free it (amazingly easy to do even when trying to be careful). It does not look for illegal memory access, for that I suggest Bruce Peren's Electric Fence, which may be used in conjunction with mem_test. mem_test consists of three basic components, a header file to include in the program being tested, a library to link with, and a program to analyze the log file that is created when the program is executed. Perhaps I should make a "yet another" joke, this is certainly not the only first ever written for this purpose. But it is the one I wrote for my own use, and I felt that it might be useful to others. mem_test is known to work under Linux (of course!), SunOS 4.1.2 and HPUX 9.05. You can get mem_test v0.10 at: http://www.iquest.net/~jbuchana/computer.html Jim Buchanan c22jrb@dawg.delcoelect.com jbuchana@iquest.net =================== http://www.iquest.net/~jbuchana ====================== "A women came up to me and said, I'd like to poison your mind with wrong ideas that appeal to you, though I am not unkind." -They Might be Giants ==================== http://hybiss.delcoelect.com ======================== - -- This article has been digitally signed by the moderator, using PGP. http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION. This group is archived at http://www.iki.fi/liw/linux/cola.html -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBMyhGP4QRll5MupLRAQF1NQP+M9qzjf4gZ+1IjxrmgCL7gRfaSArVY4vB fJDZTf+XZj1HfzE4kq9Cx6BDPAVtB4WFgYbAVYh03QS9sZffbJOpBhawqL9NFdgv ct8fIqVYpDHAvOFeEoKNQjBmuGCMVRA/WigoKOtmpqUOosV3IFmePDplw/8N7pfp 07zqOcmbli0= =juKx -----END PGP SIGNATURE-----