kmem_malloc(16384): kmem_map too small

From: Lars Engels <lme_at_FreeBSD.org>
Date: Sat, 29 Nov 2008 11:35:34 +0100
With a ~3 week old current I got the following panic while running qemu:

panic: kmem_malloc(16384): kmem_map too small: 335536128 total allocated
cpuid = 0
KDB: enter: panic
Physical memory: 1002 MB
Dumping 473 MB: 458 442 426 410 394 378 362 346 330 314 298 282 266 250 234 218 202 186 170 154 138 122 106 90 74 58 42 26 10
Dump complete
panic: from debugger
cpuid = 0
Uptime: 7h37m14s
Physical memory: 1002 MB
Dumping 473 MB: 458 442 426 410 394 378 362 346 330 314 298 282 266 250 234 218 202 186 170 154 138 122 106 90 74 58 42 26 10
 
[...]

(kgdb) bt
#0  doadump () at pcpu.h:246
#1  0xc05d582c in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:420
#2  0xc05d5b32 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:576
#3  0xc0477a07 in db_panic (addr=Could not find the frame base for "db_panic".
) at /usr/src/sys/ddb/db_command.c:478
#4  0xc0477f91 in db_command (last_cmdp=0xc097143c, cmd_table=0x0, dopager=1) at /usr/src/sys/ddb/db_command.c:445
#5  0xc04780ea in db_command_loop () at /usr/src/sys/ddb/db_command.c:498
#6  0xc0479f2d in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:229
#7  0xc0602076 in kdb_trap (type=3, code=0, tf=0xe53a08e4) at /usr/src/sys/kern/subr_kdb.c:534
#8  0xc0881d76 in trap (frame=0xe53a08e4) at /usr/src/sys/i386/i386/trap.c:680
#9  0xc0866cfb in calltrap () at /usr/src/sys/i386/i386/exception.s:165
#10 0xc06021fa in kdb_enter (why=0xc08ee375 "panic", msg=0xc08ee375 "panic") at cpufunc.h:71
#11 0xc05d5b16 in panic (fmt=0xc090980a "kmem_malloc(%ld): kmem_map too small: %ld total allocated") at /usr/src/sys/kern/kern_shutdown.c:559
#12 0xc0802f9a in kmem_malloc (map=0xc1490084, size=16384, flags=1026) at /usr/src/sys/vm/vm_kern.c:303
#13 0xc07f9c37 in page_alloc (zone=0x0, bytes=16384, pflag=0xe53a09d7 "\002", wait=1026) at /usr/src/sys/vm/uma_core.c:952
#14 0xc07fc720 in uma_large_malloc (size=16384, wait=1026) at /usr/src/sys/vm/uma_core.c:2706
#15 0xc05c4d08 in malloc (size=16384, mtp=0xc0955f40, flags=1026) at /usr/src/sys/kern/kern_malloc.c:393
#16 0xc07db265 in softdep_disk_io_initiation (bp=0xd8228210) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3815
#17 0xc07dfebc in ffs_geom_strategy (bo=0xc461a3cc, bp=0xd8228210) at buf.h:404
#18 0xc07efdd3 in ufs_strategy (ap=0xe53a0b90) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2027
#19 0xc088f12d in VOP_STRATEGY_APV (vop=0xc0957320, a=0xe53a0b90) at vnode_if.c:1771
#20 0xc063f50e in bufstrategy (bo=0xc6259b20, bp=0xd8228210) at vnode_if.h:920
#21 0xc06456e1 in bufwrite (bp=0xd8228210) at buf.h:397
#22 0xc063ea48 in bawrite (bp=0xd8228210) at buf.h:385
#23 0xc07e4d6c in ffs_syncvnode (vp=0xc6259a78, waitfor=1) at /usr/src/sys/ufs/ffs/ffs_vnops.c:264
#24 0xc07e4f7c in ffs_fsync (ap=0xe53a0c5c) at /usr/src/sys/ufs/ffs/ffs_vnops.c:185
#25 0xc088e312 in VOP_FSYNC_APV (vop=0xc0956e00, a=0xe53a0c5c) at vnode_if.c:1007
#26 0xc0662aa9 in fsync (td=0xc46a28c0, uap=0xe53a0cf8) at vnode_if.h:529
#27 0xc0881555 in syscall (frame=0xe53a0d38) at /usr/src/sys/i386/i386/trap.c:1076
#28 0xc0866d60 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:261
#29 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)


# uname -a
FreeBSD maggie.bsd-geek.de 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Tue Nov  4 22:52:12 CET 2008     lars_at_maggie.bsd-geek.de:/usr/obj/usr/src/sys/MAGGIE  i386


Cheers

Lars

Received on Sat Nov 29 2008 - 09:35:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC