Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 11:17:31 +0800 (CST)
From:      John Ryan <jryan@kgv.edu.hk>
To:        freebsd-questions@freebsd.org
Subject:   Panic when mounting a CDrom (fwd)
Message-ID:  <Pine.BSF.4.10.10003101116251.88503-100000@student.kgv.edu.hk>

next in thread | raw e-mail | index | archive | help
Whenever I mount a CDRom on my system, it panics.  I have a debug kernel
and below is some of the output from kgdb.
  
I found a FAQ that says if you get this, increase NMBCLUSTERS, but the
output from netstat -m looks like:

Script started on Fri Mar 10 11:11:09 2000
340/1376 mbufs in use:
	139 mbufs allocated to data
	201 mbufs allocated to packet headers
128/328/1280 mbuf clusters in use (current/peak/max)
828 Kbytes allocated to network (36% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

So I don't appear to running short of mbuf clusters.
The hardware is a dual Pentium II 500 with SCSI discs and IDE CDRom.

Script started on Fri Mar 10 10:54:03 2000
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
IdlePTD 3002368
initial pcb at 26839c
panicstr: kmem_malloc(-943165440): kmem_map too small: 12419072 total allocated
panic messages:
---
panic: kmem_malloc(-943165440): kmem_map too small: 12419072 total allocated
mp_lock = 00000001; cpuid = 0; lapic.id = 00000000
boot() called on cpu#0

syncing disks... 88 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 giving up

dumping to dev 20401, offset 524288
dump 256 255 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 225 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 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 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 102 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  boot (howto=256) at ../../kern/kern_shutdown.c:285
285			dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=256) at ../../kern/kern_shutdown.c:285
#1  0xc0143af7 in panic (
    fmt=0xc02442f6 "kmem_malloc(%d): kmem_map too small: %d total allocated")
    at ../../kern/kern_shutdown.c:446
#2  0xc01e94fb in kmem_malloc (map=0xc02710c8, size=3351801856, waitflag=0)
    at ../../vm/vm_kern.c:302
#3  0xc01406dc in malloc (size=3351799944, type=0xc0257b8c, flags=0)
    at ../../kern/kern_malloc.c:157
#4  0xc01692d7 in vfs_hang_addrlist (mp=0xc14fc600, nep=0xc0f46c20, 
    argp=0xc9026d18) at ../../kern/vfs_subr.c:2211
#5  0xc01694fe in vfs_export (mp=0xc14fc600, nep=0xc0f46c20, argp=0xc9026d18)
    at ../../kern/vfs_subr.c:2312
#6  0xc01311d4 in cd9660_mount (mp=0xc14fc600, path=0x808f090 "/cdrom", 
    data=0xbfbfd720 "", ndp=0xc9026eb8, p=0xc8fe0de0)
    at ../../isofs/cd9660/cd9660_vfsops.c:213
#7  0xc016a35a in mount (p=0xc8fe0de0, uap=0xc9026f94)
    at ../../kern/vfs_syscalls.c:305
#8  0xc021589f in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 0, 
      tf_esi = 0, tf_ebp = -1077946444, tf_isp = -922587164, tf_ebx = 0, 
      tf_edx = -1077946460, tf_ecx = -1077945356, tf_eax = 21, tf_trapno = 12, 
      tf_err = 2, tf_eip = 134541012, tf_cs = 31, tf_eflags = 662, 
      tf_esp = -1077946628, tf_ss = 39}) at ../../i386/i386/trap.c:1100
#9  0xc02022ec in Xint0x80_syscall ()
#10 0x804963c in ?? ()
---Type <return> to continue, or q <return> to quit---
#11 0xbfbfdfcc in ?? ()
#12 0x80484e5 in ?? ()
#13 0x80480e9 in ?? ()
(kgdb) up 6
#6  0xc01311d4 in cd9660_mount (mp=0xc14fc600, path=0x808f090 "/cdrom", 
    data=0xbfbfd720 "", ndp=0xc9026eb8, p=0xc8fe0de0)
    at ../../isofs/cd9660/cd9660_vfsops.c:213
213				return (vfs_export(mp, &imp->im_export, &args.export));
(kgdb) quit

Script done on Fri Mar 10 10:59:01 2000

Hope someone can help on this one.

John Ryan
Systems Manager
KGV School
Hong Kong



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10003101116251.88503-100000>