panic: kmem_malloc boot error w/ 6.2

Pekka Savola pekkas at netcore.fi
Sat Jan 27 07:22:50 UTC 2007


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: <LSILogic MegaRAID logical drive> 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


More information about the freebsd-stable mailing list