Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 20:58:09 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Daniel Lang <dl@leo.org>
Cc:        freebsd-hackers@FreeBSD.ORG, chopin@sgh.waw.pl
Subject:   Re: strange coredump in malloc_bytes()/libc in 4.7p2 
Message-ID:  <99290.1038340689@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 26 Nov 2002 14:14:38 %2B0100." <20021126131438.GC60278@atrbg11.informatik.tu-muenchen.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99290.1038340689>