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

From: Doug White <dwhite_at_gumbysoft.com>
Date: Tue, 30 Mar 2004 20:06:41 -0800 (PST)
I haven't had time to look at this.

Can y ou try it with -CURRENT, if you ahve't already? I don't have any
5.2.1-R boxes around.

On Mon, 29 Mar 2004, Hilko Meyer wrote:

> 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=-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.
>
> ---
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address= 0x8
> fault code= supervisor read, page not present
> instruction pointer= 0x8:0xc0632f10
> stack pointer        = 0x10:0xcdaf4c8c
> frame pointer        = 0x10:0xcdaf4cec
> 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= 31596 (smbd)
> trap number= 12
> panic: page fault
> cpuid = 0;
>
> 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
> 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.debug...done.
> Loaded symbols for
> /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/linux/linux.ko.debug
> #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 = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH);
> 203vrele(nd.ni_vp);
> 204if (error)
> 205return (error);
> 206error = 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=256) 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=0xcdaf4c4c, eva=8) at
> /usr/src/sys/i386/i386/trap.c:821
> #4  0xc07562cd in trap_pfault (frame=0xcdaf4c4c, usermode=0, eva=8) at
> /usr/src/sys/i386/i386/trap.c:735
> #5  0xc0755f65 in trap (frame=
>       {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -844149484, tf_esi =
> -1038023424, tf_ebp = -844149524, tf_isp = -844149640, tf_ebx = 0, tf_edx =
> 4, tf_ecx = -1029080276, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip =
> -1067241712, tf_cs = 8, tf_eflags = 66118, tf_esp = 0, tf_ss = 136315328})
> at /usr/src/sys/i386/i386/trap.c:420
> #6  0xc07458b8 in calltrap () at {standard input}:94
> #7  0xc075682f in syscall (frame=
>       {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 1003, tf_esi =
> -1077944416, tf_ebp = -1077944360, tf_isp = -844149388, tf_ebx = 1009,
> tf_edx = 1009, tf_ecx = -1077942920, tf_eax = 148, tf_trapno = 22, tf_err =
> 2, tf_eip = 674856735, tf_cs = 31, tf_eflags = 582, tf_esp = -1077944436,
> tf_ss = 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
>

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite_at_gumbysoft.com          |  www.FreeBSD.org
Received on Tue Mar 30 2004 - 18:06:41 UTC

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