[issue1884] System completely freezes while listening music (devbuf: malloc limit exceeded)

vasily postnicov (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Sun Oct 24 10:53:54 PDT 2010


vasily postnicov <antonbablon at mail.ru> added the comment:

I was able to get crashdump!

vonbraun# kgdb kern.0 vmcore.0 
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-dragonfly".
For bug reporting instructions, please see:
<http://bugs.dragonflybsd.org/>...
Reading symbols from /var/crash/kern.0...done.

Unread portion of the kernel message buffer:
panic: devbuf: malloc limit exceeded
mp_lock = 00000000; cpuid = 0
Trace beginning at frame 0xffffffe019c8f710
panic() at panic+0x239
panic() at panic+0x239
kmalloc() at kmalloc+0x134
bus_dma_tag_create() at bus_dma_tag_create+0xb3
usb_block_allocmem() at usb_block_allocmem+0x1b6
usb_allocmem() at usb_allocmem+0x62
ohci_alloc_sitd() at ohci_alloc_sitd+0x46
ohci_device_isoc_transfer() at ohci_device_isoc_transfer+0x251
usbd_transfer() at usbd_transfer+0xd3
uaudio_chan_ptransfer() at uaudio_chan_ptransfer+0x149
uaudio_chan_pintr() at uaudio_chan_pintr+0x65
usb_transfer_complete() at usb_transfer_complete+0x175
ohci_softintr() at ohci_softintr+0x33c
usb_schedsoftintr() at usb_schedsoftintr+0xb
ohci_intr1() at ohci_intr1+0x261
ohci_intr() at ohci_intr+0x76
ithread_handler() at ithread_handler+0x22e
boot() called on cpu#0
Uptime: 10h11m47s
Physical memory: 2025 MB
Dumping 964 MB: 949 933 917 901 885 869 853 837 821 805 (CTRL-C to abort)  789 7
73 757 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  741 725 709 693 
677 661 645 629 613 597 581 565 549 533 517 501 485 469 453 437 421 405 389 373 
357 341 325 309 293 277 261 245 229 213 197 181 165 149 133 117 101 85 69 53 37 
21 5                                                                           

Reading symbols from /boot/kernel/snd_uaudio.ko...done.
Loaded symbols for /boot/kernel/snd_uaudio.ko
Reading symbols from /boot/kernel/sound.ko...done.
Loaded symbols for /boot/kernel/sound.ko
Reading symbols from /boot/kernel/acpi.ko...done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/ahci.ko...done.
Loaded symbols for /boot/kernel/ahci.ko
Reading symbols from /boot/kernel/ehci.ko...done.
Loaded symbols for /boot/kernel/ehci.ko
Reading symbols from /boot/kernel/ipfw.ko...done.
Loaded symbols for /boot/kernel/ipfw.ko
_get_mycpu (di=0xffffffff8094ff80) at ./machine/thread.h:73
73          __asm ("movq %%gs:globaldata,%0" : "=r" (gd) : "m"(__mycpu__dummy));
(kgdb) bt
#0  _get_mycpu (di=0xffffffff8094ff80) at ./machine/thread.h:73
#1  md_dumpsys (di=0xffffffff8094ff80)
    at /usr/src/sys/platform/pc64/x86_64/dump_machdep.c:262
#2  0xffffffff803650b6 in dumpsys () at /usr/src/sys/kern/kern_shutdown.c:880
#3  0xffffffff803657a5 in boot (howto=-2004318071)
    at /usr/src/sys/kern/kern_shutdown.c:387
#4  0xffffffff80365b63 in panic (
    fmt=0xffffffff80672827 "%s: malloc limit exceeded")
    at /usr/src/sys/kern/kern_shutdown.c:786
#5  0xffffffff8036257c in kmalloc (size=120, type=0xffffffff808371a0, 
    flags=4866) at /usr/src/sys/kern/kern_slaballoc.c:508
#6  0xffffffff80608ce8 in bus_dma_tag_create (parent=0x0, alignment=32, 
    boundary=0, lowaddr=4294967295, highaddr=18446744073709551615, filter=0, 
    filterarg=0x0, maxsize=4096, nsegments=1, maxsegsz=4096, flags=2, 
    dmat=0xffffffe050b932b8)
    at /usr/src/sys/platform/pc64/x86_64/busdma_machdep.c:266
#7  0xffffffff80590116 in usb_block_allocmem (tag=0x0, size=4096, align=32, 
    dmap=0xffffffe019c8f990) at /usr/src/sys/bus/usb/usb_mem.c:167
#8  0xffffffff80590253 in usb_allocmem (bus=<value optimized out>, 
    size=<value optimized out>, align=32, p=0xffffffe019c8f990)
    at /usr/src/sys/bus/usb/usb_mem.c:236
#9  0xffffffff80589345 in ohci_alloc_sitd (sc=0xffffffe019e36868)
    at /usr/src/sys/bus/usb/ohci.c:591
#10 0xffffffff8058a493 in ohci_device_isoc_enter (xfer=0xffffffe03e61d568)
    at /usr/src/sys/bus/usb/ohci.c:3386
#11 ohci_device_isoc_transfer (xfer=0xffffffe03e61d568)
    at /usr/src/sys/bus/usb/ohci.c:3289
#12 0xffffffff8058ecf6 in usbd_transfer (xfer=0xffffffe03e61d568)
    at /usr/src/sys/bus/usb/usbdi.c:310
#13 0xffffffff80bce69b in uaudio_chan_ptransfer (ch=0xffffffe019d00790)
    at /usr/src/sys/dev/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c:2
236                                                                            
#14 0xffffffff80bcec07 in uaudio_chan_pintr (xfer=<value optimized out>, 
    priv=0xffffffe019d00938, status=<value optimized out>)
    at /usr/src/sys/dev/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c:2
270                                                                            
#15 0xffffffff8058ea18 in usb_transfer_complete (xfer=0xffffffe03e61d658)
    at /usr/src/sys/bus/usb/usbdi.c:849
#16 0xffffffff80589f84 in ohci_softintr (v=<value optimized out>)
    at /usr/src/sys/bus/usb/ohci.c:1508
#17 0xffffffff8058ce56 in usb_schedsoftintr (bus=0x0)
    at /usr/src/sys/bus/usb/usb.c:893
#18 0xffffffff80588808 in ohci_intr1 (sc=0xffffffe019e36868)
    at /usr/src/sys/bus/usb/ohci.c:1202
#19 0xffffffff80588ab2 in ohci_intr (p=<value optimized out>)
    at /usr/src/sys/bus/usb/ohci.c:1126
#20 0xffffffff8033b4c4 in ithread_handler (arg=<value optimized out>)
    at /usr/src/sys/kern/kern_intr.c:864
#21 0xffffffff80370e20 in lwkt_deschedule_self (td=0x0)
    at /usr/src/sys/kern/lwkt_thread.c:281
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(kgdb) frame 6
#6  0xffffffff80608ce8 in bus_dma_tag_create (parent=0x0, alignment=32, 
    boundary=0, lowaddr=4294967295, highaddr=18446744073709551615, filter=0, 
    filterarg=0x0, maxsize=4096, nsegments=1, maxsegsz=4096, flags=2, 
    dmat=0xffffffe050b932b8)
    at /usr/src/sys/platform/pc64/x86_64/busdma_machdep.c:266
266             newtag = kmalloc(sizeof(*newtag), M_DEVBUF, M_INTWAIT | M_ZERO);
(kgdb) q

Do you need kern* and vmcore* files? I will post KTR dump too as soon as possible.

----------
status: unread -> chatting

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1884>
_____________________________________________________






More information about the Bugs mailing list