Date: Thu, 9 Mar 2000 20:22:41 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: John Ryan <jryan@kgv.edu.hk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Panic when mounting a CDrom (fwd) Message-ID: <20000309202241.W14279@fw.wintelcom.net> In-Reply-To: <Pine.BSF.4.10.10003101116251.88503-100000@student.kgv.edu.hk>; from jryan@kgv.edu.hk on Fri, Mar 10, 2000 at 11:17:31AM %2B0800 References: <Pine.BSF.4.10.10003101116251.88503-100000@student.kgv.edu.hk>
next in thread | previous in thread | raw e-mail | index | archive | help
* John Ryan <jryan@kgv.edu.hk> [000309 19:50] wrote: > 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: NMBCLUSTERS is only useful when one panics as a result of massive amounts of network traffic. Also, you need to mention what version of FreeBSD you are using, I assume 3-something because that's what matches the traceback best. ... > 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 ... > #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 It looks like mount is passing in an invalid mount structure to the kernel, is your userland and kernel in sync? If so can you please show me the output of print args in the 6'th stack frame? what's in your /etc/export? -Alfred 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?20000309202241.W14279>