panic: kmem_slab_alloc: bad flags 00000104

Richard Nyberg rnyberg at it.su.se
Sat Apr 17 15:18:18 PDT 2004


(kgdb) bt
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:500
#1  0xc018f19b in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:333
#2  0xc018f605 in panic (
    fmt=0xc02da380 "kmem_slab_alloc: bad flags %08x (%p)\n")
    at /usr/src/sys/kern/kern_shutdown.c:612
#3  0xc018e1d2 in kmem_slab_alloc (size=131072, align=131072, flags=260)
    at /usr/src/sys/kern/kern_slaballoc.c:908
#4  0xc018d987 in malloc (size=64, type=0xc0329a60, flags=4)
    at /usr/src/sys/kern/kern_slaballoc.c:536
#5  0xc01b3384 in m_tag_alloc (cookie=0, type=14, len=48, wait=4)
    at /usr/src/sys/kern/uipc_mbuf2.c:303
#6  0xc01f8736 in ip6_addaux (m=0xcc203700) at /usr/src/sys/sys/mbuf.h:595
#7  0xc01f7ddb in ip6_setdstifaddr (m=0xcc203700, ia6=0xd9ad1e78)
    at /usr/src/sys/netinet6/ip6_input.c:859
#8  0xc01f799c in ip6_input (msg=0xc2363280)
    at /usr/src/sys/netinet6/ip6_input.c:657
#9  0xc01d6219 in netmsg_service_loop (arg=0x0) at /usr/src/sys/net/netisr.c:65

Seems like ip6_addaux uses M_DONTWAIT (defined as 4 in mbuf.h) as flags
to malloc, but kmem_slab_alloc panics if neither M_RNOWAIT nor M_WAITOK
is set.

	-Richard





More information about the Bugs mailing list