From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,a9a0feb82c2fb6ad,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1995-01-20 11:18:13 PST Path: pad-thai.cam.ov.com!noc.near.net!chpc.chpc.org!bigboote.WPI.EDU!news.mathworks.com!news.alpha.net!uwm.edu!cs.utexas.edu!howland.reston.ans.net!news.sprintlink.net!pipex!sunic!news.funet.fi!cs.joensuu.fi!news.csc.fi!news.helsinki.fi!not-for-mail From: bruce@pixar.com (Bruce Perens) Newsgroups: comp.os.linux.announce Subject: Electric Fence: a different kind of malloc() debugger Followup-To: comp.os.linux.misc Date: 20 Jan 1995 15:54:46 +0200 Organization: ? Sender: wirzeniu@cc.Helsinki.FI Message-ID: <3fofb6$71b@kruuna.Helsinki.FI> NNTP-Posting-Host: kruuna.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Keywords: Malloc checker Electric Fence virtual memory overrun debugger Electric fence uses the virtual memory hardware of your system to detect read or write references beyond the end of a malloc() buffer. It also can detect references to memory that has been released with free(). Unlike Checker, Electric Fence will stop on the exact source code line (and the exact instruction) that contains a bad memory reference, even if that code doesn't call a library function. Electric Fence doesn't rely on special versions of libraries, and will debug pre-existing libraries and .o files. Electric Fence has thousands of devoted users on all flavors of Unix workstations. Electric Fence works by creating a special inaccessable memory page at the end (or the beginning) of each malloc buffer. When software attempts to read or write that inaccessable page, it gets an immediate segmentation fault. Use GDB to tell you the exact line upon which the fault happens. Freed pages can also be made inaccessable, so that a reference to freed memory can be detected. Kernel version 1.1.83 or higher is REQUIRED. The kernel VM implementation had some bugs up until then. There's one program that debugs malloc() overruns better than Electric Fence. That's "Purify", from Pure Systems. Unfortunately, Purify isn't available for Linux. Electric Fence is distributable under the GPL. Bruce Perens Begin3 Title: ElectricFence Version: 2.0.5 Entered-date: 20JAN95 Description: A malloc debugger that uses the virtual memory hardware. Keywords: Malloc checker Electric Fence virtual memory overrun debugger Author: Bruce@Pixar.com (Bruce Perens) Primary-site: ftp.pixar.com:pub/bruce 25k ElectricFence-2.0.5.tar.gz 1k ElectricFence.LSM Alternate-site: sunsite.unc.edu:pub/Linux/Incoming -> pub/Linux/devel/c Platforms: REQUIRES kernel 1.1.83 or above. Copying-policy: GPL End --