From owner-freebsd-current@FreeBSD.ORG Sun Apr 13 08:09:46 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F30B37B401 for ; Sun, 13 Apr 2003 08:09:46 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A6B843FA3 for ; Sun, 13 Apr 2003 08:09:45 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h3DF9gSA000940; Sun, 13 Apr 2003 17:09:42 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: "Christoph P. Kukulies" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 13 Apr 2003 16:06:47 +0200." <20030413140647.GA18474@gilberto.physik.rwth-aachen.de> Date: Sun, 13 Apr 2003 17:09:42 +0200 Message-ID: <939.1050246582@critter.freebsd.dk> cc: freebsd-current@freebsd.org Subject: Re: kernel: bad malloc : 4 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2003 15:09:46 -0000 In message <20030413140647.GA18474@gilberto.physik.rwth-aachen.de>, "Christoph P. Kukulies" writes: >On Sun, Apr 13, 2003 at 01:53:11PM +0200, Christoph Kukulies wrote: >> >> During boot, I suspect when an interface goes up (ng0?, wi0?) - >> I'm using mpd (vpn) and thought I'd better recompile mpd but the >> message is still there with a yesterday cvsuped kernel and -current. >> >> The message isn't logged in total, so I'll probably have to write >> it down next time unless someone knows already the culprit. > >Here is what I could type off the screen: > >Bad malloc flags: 4 This means that malloc() was called with M_DONTWAIT which is a mbuf allocator flags. >Stack backtrace: >backtrace(...) >malloc(..) >ng_ksocket(...) I can't find a function called just "ng_ksocket()" but there are a bunch called "ng_ksocket_BLA()" I guess it must be one of them. A cursory glance doesn't reveal a culprit to me. -- 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.