From owner-freebsd-stable@FreeBSD.ORG Sat Jan 27 07:22:50 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0825A16A404 for ; Sat, 27 Jan 2007 07:22:50 +0000 (UTC) (envelope-from pekkas@netcore.fi) Received: from netcore.fi (netcore.fi [193.94.160.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7531C13C483 for ; Sat, 27 Jan 2007 07:22:49 +0000 (UTC) (envelope-from pekkas@netcore.fi) Received: from localhost (pekkas@localhost) by netcore.fi (8.12.11.20060614/8.12.11) with ESMTP id l0R7Mhn8017182; Sat, 27 Jan 2007 09:22:44 +0200 Date: Sat, 27 Jan 2007 09:22:43 +0200 (EET) From: Pekka Savola To: Scott Long In-Reply-To: <45BA86B6.3090609@samsco.org> Message-ID: References: <45BA86B6.3090609@samsco.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV 0.88.7/2493/Fri Jan 26 14:00:46 2007 on otso.netcore.fi X-Virus-Status: Clean X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_50, NO_RELAYS autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on otso.netcore.fi Cc: freebsd-stable@freebsd.org Subject: Re: panic: kmem_malloc boot error w/ 6.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 07:22:50 -0000 On Fri, 26 Jan 2007, Scott Long wrote: >> makeoptions DEBUG=-g >> >> .. when I added this, boot works fine. When removing it, you get the >> panic. >> >> Strange, huh? :-/ >> >> Below is a snippet of the boot log: > > Please compile KDB and DDB into your kernel so we can see exactly where > the panic is happening. Not sure what exactly I should be looking for, but removing the makeoptions line and adding those debuggers, and running 'trace' when it panics gives this: amr0: delete logical drives supported by controller amrd0: on amr0 amrd0: 139900MB (286515200 sectors) RAID 1 (optimal) ipmi0: IPMI device rev. 0, firmware rev. 1.81, version 1.5 ipmi0: Number of channels 4 ipmi0: Attached watchdog ATA PseudoRAID loaded GEOM: new disk afd0 GEOM: new disk amrd0 panic: kmem_malloc(-1059844096): kmem_map too small: 3084288 total allocated KDB: enter: panic [thread pid 2 tid 100002 ] Stopped at kdb_enter+0x2c: leave db> trace Tracing pid 2 tid 100002 td 0xc5fadc00 kdb_enter(c06bc072,100,2,c0c361c0,c0d41000,...) at kdb_enter+0x2c panic(c06cb66a,c0d41000,2f1000,e4bb8bb0,c0622016,...) at panic+0x122 kmem_malloc(c0c4b0c0,c0d41000,2,2) at kmem_malloc+0x44f uma_large_malloc(c0d41000,2,c0d40100,0,c6264a50,...) at uma_large_malloc+0x30 malloc(c0d40100,c06eab00,2,c620dc00,c5ff6600,...) at malloc+0x81 g_read_data(c60fb480,0,0,c0d40100,0,0) at g_read_data+0x3c g_mbr_taste(c0709040,c620dc00,0) at g_mbr_taste+0x127 g_new_provider_event(c620dc00,0,66666667,c5fadc00,0,...) at g_new_provider_event+0x6e g_run_events(0,c5fadc00,c5fac430,c04e5dd4,e4bb8d24,...) at g_run_events+0x13e g_event_procbody(0,e4bb8d38,0,c04e5dd4,0,...) at g_event_procbody+0x59 fork_exit(c04e5dd4,0,e4bb8d38) at fork_exit+0x4f fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe4bb8d6c, ebp = 0 --- HTH, -- Pekka Savola "You each name yourselves king, yet the Netcore Oy kingdom bleeds." Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings