DragonFly BSD
DragonFly bugs List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

panic: devbuf: malloc limit exceeded


From: Michal Belczyk <belczyk@xxxxxxxxxxxxx>
Date: Sat, 16 Jul 2005 19:28:39 +0200

I got this crash while playing music over pcm0 (the USB device):

grazer-3# gdb -k kernel.0 vmcore.0 
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-dragonfly"...
panic: devbuf: malloc limit exceeded
panic messages:
---
panic: devbuf: malloc limit exceeded

syncing disks... 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15
15 15 
giving up on 15 buffers
Uptime: 1h41m33s
kthread 0xc81a4800 cbb0 has exited

dumping to dev #ad/0x20001, offset 1344640
dump ata0: resetting devices .. done
ad0: timeout waiting for DRQ - resetting
ata0: WARNING: resetting donecount 8192 for retry
ata0: resetting devices .. done
367 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to
abort] [CTRL-C to abort] [CTRL-C to abort] [CTRL-C        to abort]
[CTRL-C to abort] 366 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to
abort] [CTRL-C to abort] [CTRL-C to abort       ] [CTRL-C to abort]
[CTRL-C to abort] 365 364 363 362 361 360 359 358 357 356 355 354 353
352 351 350 349 348 347 346 34       5 344 343 342 341 340 339 338 337
336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319
318 317 316 31       5 314 313 312 311 310 309 308 307 306 305 304 303
302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 28
5 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 269 268
267 266 265 264 263 262 261 260 259 258 257 256 25       5 254 253 252
251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234
233 232 231 230 229 228 227 226 22       5 224 223 222 221 220 219 218
217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200
199 198 197 196 19       5 194 193 192 191 190 189 188 187 186 185 184
183 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 182 181 180
179        178 177 [CTRL-C to abort] 176 175 174 173 172 171 170 169 168
167 166 [CTRL-C to abort] 165 164 163 162 161 160 159 158        157 156
155 154 153 152 151 150 149 148 147 146 145 [CTRL-C to abort] 144 143
142 141 140 139 138 137 136 135 134 133 13       2 131 130 129 128 127
126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109
108 107 106 105 104 103 10       2 101 100 99 98 97 96 95 94 93 92 91 90
89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66
65 64 63        62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44
43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23        22
21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
---
#0  dumpsys () at /cvs/DragonFly-HEAD/src/sys/kern/kern_shutdown.c:508
508             if (dumping++) {
dumpsys () at /cvs/DragonFly-HEAD/src/sys/kern/kern_shutdown.c:508
508             if (dumping++) {
(kgdb) bt
#0  dumpsys () at /cvs/DragonFly-HEAD/src/sys/kern/kern_shutdown.c:508
#1  0xc02a8270 in boot (howto=256) at
/cvs/DragonFly-HEAD/src/sys/kern/kern_shutdown.c:341
#2  0xc02a8734 in panic (fmt=0xc0532fc2 "%s: malloc limit exceeded")
    at /cvs/DragonFly-HEAD/src/sys/kern/kern_shutdown.c:620
#3  0xc02a5cfb in malloc (size=56, type=0xc05ac320, flags=4610)
    at /cvs/DragonFly-HEAD/src/sys/kern/kern_slaballoc.c:430
#4  0xc04cd8ee in bus_dma_tag_create (parent=0x0, alignment=0,
boundary=0, lowaddr=4294967295, highaddr=4294967295, 
    filter=0, filterarg=0x0, maxsize=4096, nsegments=0, maxsegsz=0,
flags=2, dmat=0xcf71ba20)
    at /cvs/DragonFly-HEAD/src/sys/i386/i386/busdma_machdep.c:142
#5  0xc0434bed in usb_block_allocmem (tag=0x0, size=4096, align=32,
dmap=0xcafbab88)
    at /cvs/DragonFly-HEAD/src/sys/bus/usb/usb_mem.c:157
#6  0xc0434d76 in usb_allocmem (bus=0x0, size=4096, align=0,
p=0xcafbab88)
    at /cvs/DragonFly-HEAD/src/sys/bus/usb/usb_mem.c:226
#7  0xc042d7f4 in ohci_alloc_sitd (sc=0xcb0744c0) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/ohci.c:642
#8  0xc0430eea in ohci_device_isoc_enter (xfer=0xc148a3b8) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/ohci.c:3332
#9  0xc0430cf3 in ohci_device_isoc_transfer (xfer=0xc148a3b8) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/ohci.c:3237
#10 0xc04331e7 in usbd_transfer (xfer=0xc148a3b8) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/usbdi.c:321
#11 0xc047c126 in uaudio_chan_ptransfer (ch=0xcb3a3ecc) at
/cvs/DragonFly-HEAD/src/sys/dev/sound/usb/uaudio.c:2178
#12 0xc047c1cd in uaudio_chan_pintr (xfer=0x0, priv=0xc060b158,
status=USBD_NORMAL_COMPLETION)
    at /cvs/DragonFly-HEAD/src/sys/dev/sound/usb/uaudio.c:2209
#13 0xc04339bc in usb_transfer_complete (xfer=0xc148a058) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/usbdi.c:830
#14 0xc042ebad in ohci_softintr (v=0xcb0744c0) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/ohci.c:1504
#15 0xc0432e98 in usb_schedsoftintr (bus=0x0) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/usb.c:842
#16 0xc042e633 in ohci_intr1 (sc=0xcb0744c0) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/ohci.c:1227
#17 0xc042e4c1 in ohci_intr (p=0xcb0744c0) at
/cvs/DragonFly-HEAD/src/sys/bus/usb/ohci.c:1156
#18 0xc04eeee7 in intr_mux (arg=0xc063d0ac) at
/cvs/DragonFly-HEAD/src/sys/i386/isa/intr_machdep.c:599
#19 0xc028d5f1 in ithread_handler (arg=0xb) at
/cvs/DragonFly-HEAD/src/sys/kern/kern_intr.c:298
#20 0xc02ae999 in lwkt_create (func=0, arg=0x0, tdp=0xc060b158,
template=0x0, tdflags=0, cpu=0, fmt=0x0)
    at /cvs/DragonFly-HEAD/src/sys/kern/lwkt_thread.c:1269
Previous frame inner to this frame (corrupt stack?)
(kgdb) quit

grazer-3% uname -a
DragonFly grazer-3.bsd.krakow.pl 1.3.2-DEVELOPMENT DragonFly
1.3.2-DEVELOPMENT #0: Thu Jul  7 19:36:09 CEST 2005
root@xxxxxxxxxxxxxxxxxxxxxx:/usr/obj/cvs/DragonFly-HEAD/src/sys/GRAZER i386

grazer-3% dmesg
Copyright (c) 2003, 2004, 2005 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
DragonFly 1.3.2-DEVELOPMENT #0: Thu Jul  7 19:36:09 CEST 2005
    root@xxxxxxxxxxxxxxxxxxxxxx:/usr/obj/cvs/DragonFly-HEAD/src/sys/GRAZER
TSC clock: 1794415044 Hz, i8254 clock: 1193232 Hz
CPU: Mobile Intel(R) Celeron(R) CPU 1.80GHz (1794.36-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,
HTT,TM,PBE>
real memory  = 385286144 (376256K bytes)
avail memory = 362156032 (353668K bytes)
Preloaded elf kernel "/kernel" at 0xc0765000.
Preloaded elf module "/modules/acpi.ko" at 0xc0765260.
Pentium Pro MTRR support enabled
md0: Malloc disk
pcibios: BIOS version 2.10
Using $PIR table, 10 entries at 0xc00fdef0
npx0: <math processor> on motherboard
npx0: INT 16 interface
Using XMM optimized bcopy/copyin/copyout
acpi0: <IBM TP-1S> on motherboard
installed MI handler for int 9
acpi_ec0: <Embedded Controller: GPE 0x1c, ECDT> port 0x66,0x62 on acpi0
acpi0: Power Button (fixed)
Warning: ACPI is disabling APM's device.  You can't run both
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=1002 device=7010)> at device 1.0 on
pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4337 graphics accelerator> at 5.0 irq 3
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem
0xe8010000-0xe8010fff irq 11 at device 2.0 on pci0
installed MI handler for int 11
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uaudio0: audio rev 1.00
pcm0: <USB Audio> on uaudio0
uhid0: Philips UAC3553B, rev 1.10/4.02, addr 2, iclass 3/0
pci0: <unknown card> (vendor=0x10b9, dev=0x5457) at 3.0 irq 10
pcm1: <Acer Labs M5451> port 0x8800-0x88ff mem 0xe8012000-0xe8012fff irq
9 at device 4.0 on pci0
pcm1: <Analog Devices AD1981B AC97 Codec>
pci0: <AcerLabs M15x3 Power Management Unit> at 6.0
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
bge0: <Broadcom BCM5901 Fast Ethernet, ASIC rev. 0x3001> mem
0xe8000000-0xe800ffff irq 5 at device 11.0 on pci0
miibus0: <MII bus> on bge0
brgphy0: <BCM5705 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
bge0: MAC address: 00:06:1b:d4:45:0c
installed MI handler for int 5
cbb0: <TI1510 PCI-CardBus Bridge> mem 0xb0000000-0xb0000fff irq 4 at
device 12.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
installed MI handler for int 4
atapci0: <AcerLabs Aladdin ATA100 controller> port 0x8080-0x808f at
device 15.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
installed MI handler for int 14
ata1: at 0x170 irq 15 on atapci0
installed MI handler for int 15
orm0: <Option ROMs> at iomem
0xc0000-0xccfff,0xcd000-0xce7ff,0xce800-0xcf7ff,0xdc000-0xdffff,0xe0000-0xeffff
on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
installed MI handler for int 1
psm0: <PS/2 Mouse> irq 12 on atkbdc0
installed MI handler for int 12
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
ppc0: <Parallel port> at port 0x278-0x27f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/1 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
installed MI handler for int 7
installed MI handler for int 0
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 38154MB <TOSHIBA MK4026GAX> [77520/16/63] at ata0-master UDMA100
acd0: CDROM <CD-224E> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC CD-224E 2.9A> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
WARNING:  was not properly dismounted

grazer-3% diff -u GENERIC GRAZER
--- GENERIC     2005-06-03 19:14:46.000000000 +0200
+++ GRAZER      2005-07-04 21:11:38.000000000 +0200
@@ -7,11 +7,11 @@
 # $DragonFly: src/sys/i386/conf/GENERIC,v 1.24 2005/06/03 17:14:46
 # dillon Exp $
 
 machine                i386
-cpu            I386_CPU
-cpu            I486_CPU
-cpu            I586_CPU
+#cpu           I386_CPU
+#cpu           I486_CPU
+#cpu           I586_CPU
 cpu            I686_CPU
-ident          GENERIC
+ident          GRAZER
 maxusers       0
 
 makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug
symbols
@@ -160,10 +160,10 @@
 device         cbb
 
 # Serial (COM) ports
-device         sio0    at isa? port IO_COM1 flags 0x10 irq 4
-device         sio1    at isa? port IO_COM2 irq 3
-device         sio2    at isa? disable port IO_COM3 irq 5
-device         sio3    at isa? disable port IO_COM4 irq 9
+#device                sio0    at isa? port IO_COM1 flags 0x10 irq 4
+#device                sio1    at isa? port IO_COM2 irq 3
+#device                sio2    at isa? disable port IO_COM3 irq 5
+#device                sio3    at isa? disable port IO_COM4 irq 9
 
 # Parallel port
 device         ppc0    at isa? irq 7
@@ -267,3 +267,8 @@
 device         firewire        # FireWire bus code
 device         sbp             # SCSI over FireWire (Requires scbus and
da)
 device         fwe             # Ethernet over FireWire (non-standard!)
+
+# Basic PCM support, needed for all sound card:
+device         pcm
+# For PnP/PCI sound cards:
+device         snd


-- 
Michal Belczyk



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]