Fatal trap 12: page fault while in kernel mode with samba

From: Hilko Meyer <hilko.meyer_at_gmx.de>
Date: Wed, 24 Mar 2004 18:00:35 +0100
Hello,

I get an Fatal Trap 12 message if I access a CD-ROM-drive  from a
NT-machine over Samba. The CD-ROM is mountet with
/dev/acd0      /cdrom          cd9660  ro,noauto,nosuid        0       0
in the /etc/fstab.

I've made a crash dump and debugged it with gdb. The ouput below
contains a back trace.

GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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"...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x8
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc05299f0
stack pointer           = 0x10:0xcd904c8c
frame pointer           = 0x10:0xcd904cec
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 615 (smbd)
trap number             = 12
panic: page fault

syncing disks, buffers remaining... 1410 1410 1409 1409 1409 1409 1409 1408 1408 1408 1408
1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 1408 
giving up on 224 buffers
Uptime: 35m32s
Dumping 128 MB
 16 32 48 64 80 96 112
---
Reading symbols from /boot/kernel/logo_saver.ko...done.
Loaded symbols for /boot/kernel/logo_saver.ko
Reading symbols from
/usr/obj/usr/src/sys/KIRK/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for
/usr/obj/usr/src/sys/KIRK/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240             dumping++;
(kgdb) list *0xc05299f0
0xc05299f0 is in quotactl (/usr/src/sys/kern/vfs_syscalls.c:206).
201             NDFREE(&nd, NDF_ONLY_PNBUF);
202             error = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH);
203             vrele(nd.ni_vp);
204             if (error)
205                     return (error);
206             error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td);
207             vn_finished_write(mp);
208             return (error);
209     }
210
(kgdb) backtrace
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc04df596 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc04df838 in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc0615f91 in trap_fatal (frame=0xcd904c4c, eva=8) at
/usr/src/sys/i386/i386/trap.c:821
#4  0xc0615ced in trap_pfault (frame=0xcd904c4c, usermode=0, eva=8) at
/usr/src/sys/i386/i386/trap.c:735
#5  0xc0615984 in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -846181100, tf_esi = -1043380992,
tf_ebp = -846181140, tf_isp = -846181256, tf_ebx = 0, tf_edx = 4, tf_ecx = -1038897608,
tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1068328464, tf_cs = 8, tf_eflags =
66118, tf_esp = 0, tf_ss = 136315328}) at /usr/src/sys/i386/i386/trap.c:420
#6  0xc06072d8 in calltrap () at {standard input}:94
#7  0xc061620f in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 1003, tf_esi = -1077943648, tf_ebp =
-1077943592, tf_isp = -846181004, tf_ebx = 1009, tf_edx = 1009, tf_ecx = -1077942152,
tf_eax = 148, tf_trapno = 22, tf_err = 2, tf_eip = 674856735, tf_cs = 31, tf_eflags = 582,
tf_esp = -1077943668, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1010
#8  0xc060732d in Xint0x80_syscall () at {standard input}:136
---Can't read userspace from dump, or kernel process---

If you need an dmesg, you can fin it here
http://www.hochpass.uni-hannover.de/~hilti/dmesg
http://www.hochpass.uni-hannover.de/~hilti/dmesg.verbose
The kernel.conf is here http://www.hochpass.uni-hannover.de/~hilti/KIRK

I hope tsomebody can help me solving this problem.

bye,
Hilko
Received on Wed Mar 24 2004 - 08:00:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC