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 A21153F9D0 for ; Mon, 8 Jul 2002 12:31:35 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g68GVZ817874 for axp-list@listman.redhat.com; Mon, 8 Jul 2002 12:31:35 -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 g68GVZa17870 for ; Mon, 8 Jul 2002 12:31:35 -0400 Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g68GLE923823 for ; Mon, 8 Jul 2002 12:21:14 -0400 Received: from fwd09.sul.t-online.de by mailout04.sul.t-online.com with smtp id 17RbQC-0007Hu-0F; Mon, 08 Jul 2002 18:31:32 +0200 Received: from localhost (520046482682-0001@[80.131.74.47]) by fmrl09.sul.t-online.com with esmtp id 17RbQ7-0ZRvuqC; Mon, 8 Jul 2002 18:31:27 +0200 Received: from falk by localhost with local (Exim 3.35 #1 (Debian)) id 17RbQ3-0007Zo-00 for ; Mon, 08 Jul 2002 18:31:23 +0200 X-Face: >Q)4Pn.JVfRz{G(G_eIkykbZGG\)2mk8:5a"{^Mk07iC#F.t2L7h|]{*cFg$GEPDdun~+UTjG(^4z<_Ksw%L-\w0xDmUR~ From: Falk Hueffner Date: 08 Jul 2002 18:31:23 +0200 In-Reply-To: <3D29BA0B.3CDD662@iplink.net> Message-ID: <87it3qfag4.fsf@student.uni-tuebingen.de> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (anise) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: 520046482682-0001@t-dialin.net 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: alvin writes: > I believe there to be a bug in calloc. I have a couple of programs one > of which is a small disk space check program from netsaint. I have not > been yet able to create a small program that will recreate the error but > I keep getting a segfault in the chunck_alloc code. > > I have run up dmalloc to see if there is a problem with the actuall use > of calloc and the problem then goes away. I have run dmalloc on another > offending program and the problem that I have there also seems to go > away. > > Does anybody else know about this and possibly have a fix or am I going > to be spending a few days whakcing my head against the malloc code. It is is unlikely that this is a bug in malloc; malloc is very mature code. More likely, it is a bug in your code that destroys malloc's internal structures, the classical example being array overruns. We cannot decide that though without a test case. If you have an i386 with Linux, you might want to try valgrind, a memory debugger which can catch such errors. -- Falk