Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 23:34:40 +0200
From:      Hilko Meyer <Hilko.Meyer@gmx.de>
To:        current@freebsd.org
Subject:   Re: Fatal trap 12: page fault while in kernel mode with samba
Message-ID:  <jp3h60hfn9bjbt93lah355t7i04p524b6q@smtp.compuserve.de>
In-Reply-To: <f55960147gk3qka92er1iflc0s20vvrlm3@smtp.compuserve.de>
References:  <hme360h63t43dr1j51nhcl6s89n51mrh47@4ax.com> <20040325111957.U49224@carver.gumbysoft.com> <3ll6601p9n67rm3hk9mvutc8qjidatjp9j@smtp.compuserve.de> <f55960147gk3qka92er1iflc0s20vvrlm3@smtp.compuserve.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hilko Meyer schrieb:
>Hilko Meyer schrieb:
>>Doug White schrieb:
>>>On Wed, 24 Mar 2004, Hilko Meyer wrote:
>>>
>Then I tried the GENERIC-kernel. And it also crashed, if I access the =
CDROM
>via samba. I've compiled it with
>makeoptions     DEBUG=3D-g
>but the gdb-output looks weird:

I've compiled the GENERIC-Kernel again. Of course before I've got the new
security advisory....
So, the system is still 5.2.1-RELEASE-p3 and the crash occurs with
samba-2.2.8a. The Backtrace follows below.

---
=46atal trap 12: page fault while in kernel mode
cpuid =3D 0; apic id =3D 00
fault virtual address=3D 0x8
fault code=3D supervisor read, page not present
instruction pointer=3D 0x8:0xc0632f10
stack pointer        =3D 0x10:0xcdaf4c8c
frame pointer        =3D 0x10:0xcdaf4cec
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 31596 (smbd)
trap number=3D 12
panic: page fault
cpuid =3D 0;=20

syncing disks, buffers remaining... 295 295 295 294 294 294 294 294 294 =
294
294 294 294 294 294 294 294 294 294 294 294 294 294=20
giving up on 231 buffers
Uptime: 2h10m33s
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/GENERIC/modules/usr/src/sys/modules/linux/linux.ko.d=
ebug...done.
Loaded symbols for
/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/linux/linux.ko.d=
ebug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240dumping++;
(kgdb) list *0xc0632f10
0xc0632f10 is in quotactl (/usr/src/sys/kern/vfs_syscalls.c:206).
201NDFREE(&nd, NDF_ONLY_PNBUF);
202error =3D vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH);
203vrele(nd.ni_vp);
204if (error)
205return (error);
206error =3D VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td);
207vn_finished_write(mp);
208return (error);
209}
210
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc05e8653 in boot (howto=3D256) at =
/usr/src/sys/kern/kern_shutdown.c:372
#2  0xc05e896b in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc0756591 in trap_fatal (frame=3D0xcdaf4c4c, eva=3D8) at
/usr/src/sys/i386/i386/trap.c:821
#4  0xc07562cd in trap_pfault (frame=3D0xcdaf4c4c, usermode=3D0, eva=3D8)=
 at
/usr/src/sys/i386/i386/trap.c:735
#5  0xc0755f65 in trap (frame=3D
      {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D -844149484, =
tf_esi =3D
-1038023424, tf_ebp =3D -844149524, tf_isp =3D -844149640, tf_ebx =3D 0, =
tf_edx =3D
4, tf_ecx =3D -1029080276, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, =
tf_eip =3D
-1067241712, 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  0xc07458b8 in calltrap () at {standard input}:94
#7  0xc075682f in syscall (frame=3D
      {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 1003, tf_esi =
=3D
-1077944416, tf_ebp =3D -1077944360, tf_isp =3D -844149388, tf_ebx =3D =
1009,
tf_edx =3D 1009, tf_ecx =3D -1077942920, 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 =
-1077944436,
tf_ss =3D 47}) at /usr/src/sys/i386/i386/trap.c:1010
#8  0xc074590d in Xint0x80_syscall () at {standard input}:136
---Can't read userspace from dump, or kernel process---

(kgdb) quit

If you need more Information, I'll try to provide you with more =
Information.
But I'll need some help and guidance, because I'm new to kernel =
debugging.

bye,
Hilko



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