From owner-freebsd-hackers Tue Nov 26 11:58:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 434BE37B401 for ; Tue, 26 Nov 2002 11:58:32 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64DB943EAF for ; Tue, 26 Nov 2002 11:58:31 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gAQJw976099291; Tue, 26 Nov 2002 20:58:09 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Daniel Lang Cc: freebsd-hackers@FreeBSD.ORG, chopin@sgh.waw.pl Subject: Re: strange coredump in malloc_bytes()/libc in 4.7p2 In-Reply-To: Your message of "Tue, 26 Nov 2002 14:14:38 +0100." <20021126131438.GC60278@atrbg11.informatik.tu-muenchen.de> Date: Tue, 26 Nov 2002 20:58:09 +0100 Message-ID: <99290.1038340689@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20021126131438.GC60278@atrbg11.informatik.tu-muenchen.de>, Daniel L ang writes: >Hi folks, > >before I send a PR, I though I'll ask about the opinion >of the people here. > >Background: > >We run an IRCnet ircd on a FreeBSD box here. This combination >lived very happy for a very long time. Recently I've updated >the box to 4.7-RELEASE-p2. After the update, the "ircd" >won't start any longer. > >Recompile of ircd did not help at all. > >ow, after many hours trying to debug the problem, I built >a world with CFLAGS=-g to get a libc with debugging symbols >and a useful backtrace: > >(gdb) bt >#0 0x2819244b in malloc_bytes (size=476) > at /usr/src/lib/libc/../libc/stdlib/malloc.c:673 >#1 0x28192581 in imalloc (size=476) > at /usr/src/lib/libc/../libc/stdlib/malloc.c:715 >#2 0x28192a44 in malloc (size=476) > at /usr/src/lib/libc/../libc/stdlib/malloc.c:1076 >#3 0x281885b5 in calloc (num=1, size=476) > at /usr/src/lib/libc/../libc/stdlib/calloc.c:49 I think we can more or less conclude that something has trashed your memory. I'd suggest you try to run your program with ElectricFence or similar. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message