Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2002 14:52:52 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        current@FreeBSD.org, dillon@FreeBSD.org
Subject:   Page fault in swapout_procs
Message-ID:  <20021017215252.GA50026@xor.obsecurity.org>

next in thread | raw e-mail | index | archive | help
I just got the following panic on one of the gohan machines, running a
somewhat recent -current:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xa0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc035d0ab
stack pointer           = 0x10:0xcd25ccc0
frame pointer           = 0x10:0xcd25cce0
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         = 3 (vmdaemon)
kernel: type 12 trap, code=0
Stopped at      swapout_procs+0x6b:     incl    0xa0(%esi)
db> Context switches not allowed in the debugger.
db> trace
swapout_procs(1,0,68,c0411018,0) at swapout_procs+0x6b
vm_daemon(0,cd25cd48,c03f1300,34b,0) at vm_daemon+0x6e
fork_exit(c036b560,0,cd25cd48) at fork_exit+0xaf
fork_trampoline() at fork_trampoline+0x17

The kernel was compiled on September 8:

FreeBSD 5.0-CURRENT #2: Sun Sep  8 01:53:39 PDT 2002

gdb on the core seems to have something slightly different to say about the backtrace:

---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xa0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc035d0ab
stack pointer           = 0x10:0xcd25ccc0
frame pointer           = 0x10:0xcd25cce0
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         = 3 (vmdaemon)
panic: from debugger


Fatal trap 3: breakpoint instruction fault while in kernel mode
instruction pointer     = 0x8:0xc03999a4
stack pointer           = 0x10:0xcd25ca48
frame pointer           = 0x10:0xcd25ca54
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = IOPL = 0
current process         = 3 (vmdaemon)
panic: from debugger
Uptime: 7h28m29s
Dumping 254 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
#0  doadump () at /local0/scratch/sys/kern/kern_shutdown.c:213
213     /local0/scratch/sys/kern/kern_shutdown.c: No such file or directory.
        in /local0/scratch/sys/kern/kern_shutdown.c
(kgdb) bt
#0  doadump () at /local0/scratch/sys/kern/kern_shutdown.c:213
#1  0xc02422b5 in boot (howto=260) at /local0/scratch/sys/kern/kern_shutdown.c:345
#2  0xc02424e8 in panic () at /local0/scratch/sys/kern/kern_shutdown.c:493
#3  0xc0161e22 in db_panic () at /local0/scratch/sys/ddb/db_command.c:449
#4  0xc0161da2 in db_command (last_cmdp=0xc0427aa0, cmd_table=0xc03ccbc8, aux_cmd_tablep=0xc0ee79c0,
    aux_cmd_tablep_end=0x104) at /local0/scratch/sys/ddb/db_command.c:345
#5  0xc0161eb6 in db_command_loop () at /local0/scratch/sys/ddb/db_command.c:471
#6  0xc0164a8a in db_trap (type=12, code=0) at /local0/scratch/sys/ddb/db_trap.c:72
#7  0xc0399702 in kdb_trap (type=12, code=0, regs=0xcd25cc80) at /local0/scratch/sys/i386/i386/db_interface.c:160
#8  0xc03a9a43 in trap_fatal (frame=0xcd25cc80, eva=0) at /local0/scratch/sys/i386/i386/trap.c:841
#9  0xc03a9752 in trap_pfault (frame=0xcd25cc80, usermode=0, eva=160) at /local0/scratch/sys/i386/i386/trap.c:760
#10 0xc03a927d in trap (frame=
      {tf_fs = -853213160, tf_es = -1069350896, tf_ds = 16, tf_edi = 100000, tf_esi = 0, tf_ebp = -853160736, tf_isp = -853160788, tf_ebx = -1025123020, tf_edx = 4, tf_ecx = 1, tf_eax = 1, tf_trapno = 12, tf_err = 2, tf_eip = -1070214997, tf_cs = 8, tf_eflags = 66178, tf_esp = -1069298464, tf_ss = -1069486848}) at /local0/scratch/sys/i386/i386/trap.c:446
#11 0xc039ae68 in calltrap () at {standard input}:98
#12 0xc036b5ce in vm_daemon () at /local0/scratch/sys/vm/vm_pageout.c:1476
#13 0xc022e72f in fork_exit (callout=0xc036b560 <vm_daemon>, arg=0x0, frame=0x0) at /local0/scratch/sys/kern/kern_fork.c:851

Kris

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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