Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2002 22:10:51 +0100
From:      Alexander Langer <alex@big.endian.de>
To:        freebsd-stable@FreeBSD.org
Subject:   MCLGET Page Fault Trap
Message-ID:  <20021125211051.GA64001@fump.kawo2.rwth-aachen.de>

next in thread | raw e-mail | index | archive | help
Hi!

We got this strange page fault after 18 days of uptime, where this box
has done the same task all over these days.  It might be broken RAM,
but I thought I might share this with you.

Alex

root@cherub ...src/sys/CHERUB # gdb -k                        
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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".
(kgdb) exec-file /usr/crash/kernel.9 
(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 933 in fill_symbuf
done.
(kgdb) core-file /usr/crash/vmcore.9
IdlePTD at phsyical address 0x002ce000
initial pcb at physical address 0x0024c4c0
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc0902743
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc0166a3b
stack pointer           = 0x10:0xc022d5e4
frame pointer           = 0x10:0xc022d5f8
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         = Idle
interrupt mask          = net 
trap number             = 12
panic: page fault

syncing disks... 

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x30
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01b2a40
stack pointer           = 0x10:0xc022d408
frame pointer           = 0x10:0xc022d410
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         = Idle
interrupt mask          = net bio cam 
trap number             = 12
panic: page fault
Uptime: 18d0h40m10s

dumping to dev #ad/0x20021, offset 262304
dump ata2: resetting devices .. done
127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110
109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89
88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
---
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
487             if (dumping++) {
(kgdb) up
#1  0xc014aed7 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:316
316                     dumpsys();
(kgdb) up
#2  0xc014b2fc in poweroff_wait (junk=0xc0224dcc, howto=-1071494929)
    at /usr/src/sys/kern/kern_shutdown.c:595
595             boot(bootopt);
(kgdb) up
#3  0xc01f44b6 in trap_fatal (frame=0xc022d3c8, eva=48)
    at /usr/src/sys/i386/i386/trap.c:974
974                     panic("%s", trap_msg[type]);
(kgdb) up
#4  0xc01f4189 in trap_pfault (frame=0xc022d3c8, usermode=0, eva=48)
    at /usr/src/sys/i386/i386/trap.c:867
867                     trap_fatal(frame, eva);
(kgdb) up
#5  0xc01f3d73 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, 
      tf_edi = -1071244832, tf_esi = 0, tf_ebp = -1071459312, 
      tf_isp = -1071459340, tf_ebx = -1071391268, tf_edx = 6865984, 
      tf_ecx = 2, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1071961536, tf_cs = 8, tf_eflags = 66050, tf_esp = 0, 
      tf_ss = 0}) at /usr/src/sys/i386/i386/trap.c:466
466                             (void) trap_pfault(&frame, FALSE, eva);
(kgdb) up
#6  0xc01b2a40 in acquire_lock (lk=0xc023dddc)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:266
266             lk->lkt_held = CURPROC->p_pid;
(kgdb) up
#7  0xc01b7062 in softdep_fsync_mountdev (vp=0xc86a0b40)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:4024
4024            ACQUIRE_LOCK(&lk);
(kgdb) up
#8  0xc01bb292 in ffs_fsync (ap=0xc022d484)
    at /usr/src/sys/ufs/ffs/ffs_vnops.c:134
134                             softdep_fsync_mountdev(vp);
(kgdb) up
#9  0xc01b9f23 in ffs_sync (mp=0xc0c01200, waitfor=2, cred=0xc0741600, 
    p=0xc02619e0) at vnode_if.h:558
558             rc = VCALL(vp, VOFFSET(vop_fsync), &a);
(kgdb) up
#10 0xc017adff in sync (p=0xc02619e0, uap=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:576
576                             VFS_SYNC(mp, MNT_NOWAIT,
(kgdb) up
#11 0xc014ac72 in boot (howto=256) at
/usr/src/sys/kern/kern_shutdown.c:235
235                     sync(&proc0, NULL);
(kgdb) up
#12 0xc014b2fc in poweroff_wait (junk=0xc0224dcc, howto=-1071494929)
    at /usr/src/sys/kern/kern_shutdown.c:595
595             boot(bootopt);
(kgdb) up
#13 0xc01f44b6 in trap_fatal (frame=0xc022d5a4, eva=3230672707)
    at /usr/src/sys/i386/i386/trap.c:974
974                     panic("%s", trap_msg[type]);
(kgdb) up
#14 0xc01f4189 in trap_pfault (frame=0xc022d5a4, usermode=0,
eva=3230672707)
    at /usr/src/sys/i386/i386/trap.c:867
867                     trap_fatal(frame, eva);
(kgdb) frame frame->tf_ebp frame->tf_eip
#0  0xc0166a3b in m_getcl (how=1, type=1, flags=2)
    at /usr/src/sys/kern/uipc_mbuf.c:589
589                     MCLGET(mp, how);
(kgdb) list
584                     } else
585                             MGETHDR(mp, how, type);
586             } else
587                     MGET(mp, how, type);
588             if (mp) {
589                     MCLGET(mp, how);
590                     if ( (mp->m_flags & M_EXT) == 0) {
591                             m_free(mp);
592                             mp = NULL;
593                     }
(kgdb) print mp
$1 = (struct mbuf *) 0xc08c4500
(kgdb) print how
$2 = 1
(kgdb) print *mp
$3 = {m_hdr = {mh_next = 0x0, mh_nextpkt = 0x0, mh_data = 0xc08c452c "", 
    mh_len = 40, mh_type = 1, mh_flags = 2}, M_dat = {MH = {MH_pkthdr =
{
        rcvif = 0x0, len = 46, header = 0x0, csum_flags = 0, csum_data =
16, 
        aux = 0x0}, MH_dat = {MH_ext = {
          ext_buf = 0xffff0100 <Address 0xffff0100 out of bounds>, 
          ext_free = 0, ext_size = 0, ext_ref = 0}, 
        MH_databuf = "\000\001ÿÿ", '\000' <repeats 36 times>, "<SQL
	Query that was sent over the LAN here>CMÿÿÿÿÿÿ\000àLI\217-\b\000)\n"}}, 
    	M_databuf = "\000\000\000\000.", '\000' <repeats 11 times>,
	"\020\000\000\000\000\000\000\000\000\001ÿÿ", '\000' <repeats 36 times>,
	"<more of this SQL Query>CMÿÿÿÿÿÿ\000"...}}



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




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