Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2004 18:00:35 +0100
From:      Hilko Meyer <hilko.meyer@gmx.de>
To:        current@freebsd.org
Subject:   Fatal trap 12: page fault while in kernel mode with samba
Message-ID:  <hme360h63t43dr1j51nhcl6s89n51mrh47@4ax.com>

next in thread | raw e-mail | index | archive | help
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:
---
=46atal trap 12: page fault while in kernel mode
fault virtual address   =3D 0x8
fault code              =3D supervisor read, page not present
instruction pointer     =3D 0x8:0xc05299f0
stack pointer           =3D 0x10:0xcd904c8c
frame pointer           =3D 0x10:0xcd904cec
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, def32 1, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 615 (smbd)
trap number             =3D 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=20
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.debu=
g...done.
Loaded symbols for
/usr/obj/usr/src/sys/KIRK/modules/usr/src/sys/modules/linux/linux.ko.debu=
g
#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 =3D vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH);
203             vrele(nd.ni_vp);
204             if (error)
205                     return (error);
206             error =3D 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=3D256) 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=3D0xcd904c4c, eva=3D8) at
/usr/src/sys/i386/i386/trap.c:821
#4  0xc0615ced in trap_pfault (frame=3D0xcd904c4c, usermode=3D0, eva=3D8)=
 at
/usr/src/sys/i386/i386/trap.c:735
#5  0xc0615984 in trap (frame=3D
      {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D -846181100, =
tf_esi =3D -1043380992,
tf_ebp =3D -846181140, tf_isp =3D -846181256, tf_ebx =3D 0, tf_edx =3D 4,=
 tf_ecx =3D -1038897608,
tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1068328464, =
tf_cs =3D 8, tf_eflags =3D
66118, tf_esp =3D 0, tf_ss =3D 136315328}) at =
/usr/src/sys/i386/i386/trap.c:420
#6  0xc06072d8 in calltrap () at {standard input}:94
#7  0xc061620f in syscall (frame=3D
      {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 1003, tf_esi =
=3D -1077943648, tf_ebp =3D
-1077943592, tf_isp =3D -846181004, tf_ebx =3D 1009, tf_edx =3D 1009, =
tf_ecx =3D -1077942152,
tf_eax =3D 148, tf_trapno =3D 22, tf_err =3D 2, tf_eip =3D 674856735, =
tf_cs =3D 31, tf_eflags =3D 582,
tf_esp =3D -1077943668, tf_ss =3D 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



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