From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 2E2BA3EEA7 for ; Mon, 8 Jul 2002 21:27:23 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g691RMp12573 for axp-list@listman.redhat.com; Mon, 8 Jul 2002 21:27:22 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g691RMa12569 for ; Mon, 8 Jul 2002 21:27:22 -0400 Received: from mailserver.iplink.net (IDENT:root@smtp.iplink.net [192.139.81.186]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g691H0900956 for ; Mon, 8 Jul 2002 21:17:00 -0400 Received: from romeo.iplink.net ([206.108.4.57]:9142 "EHLO iplink.net") by ml.comspec.com with ESMTP id ; Mon, 8 Jul 2002 21:27:01 -0400 Message-ID: <3D2A3BE4.6090907@iplink.net> Date: Mon, 08 Jul 2002 21:27:00 -0400 From: Alvin Starr User-Agent: Mozilla/5.0 (X11; U; Linux alpha; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Calloc bug(not). References: <3D29BA0B.3CDD662@iplink.net> <87it3qfag4.fsf@student.uni-tuebingen.de> <3D29F8F5.9DE1A3EC@iplink.net> <3D29FED5.9E1E8CB9@voicenet.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Uncle George wrote: > Maybe "Electricfence" is for you. It will crash your pgm if you try to > write out of the 'malloc`d' area ( as the boundary is write protected > from trespass.) Its not always convenient, as each little malloced area > eats up (at least a ) shared memory segment > > alvin wrote: > >>Is there any "sloppy" malloc out there that will leave room at the end >>of a block for those who have the +/-1 problem with programming loops? >> I tracked down the bug in netsaint to a silly bug(malloc'ing char sized itmes in stead of pointer sized items). dmalloc did catch the bug when all the checking was turned on. dmalloc did however let the bug go past when there was no debugging turned on. I will find out tonight if this fixes the problem I am seeing with Arkeia(this is the bakup client I am using and it worked with RH6.2 but not RH7.x). I think dmalloc will fit my requirement as a sloppy malloc when the debug tests are turned off. -- Alvin Starr || voice: (416)585-9971 Interlink Connectivity || fax: (416)585-9974 alvin@iplink.net ||