Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 20:58:29 +0300
From:      Alexey Sopov <suntechnic@gmail.com>
To:        stable@freebsd.org
Subject:   6.2-RELEASE + MPD 4.1 = Fatal trap 12: page fault while in kernel mode
Message-ID:  <1365869667.20070220205829@gmail.com>

next in thread | raw e-mail | index | archive | help
------------5C6321D25F10328
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

   Hi!

Yesterday I've updated my FreeBSD 6.0-RELEASE + mpd-4.0b4 up to
FreeBSD 6.2-RELEASE + mpd-4.1. And today I have a Fatal Trap.

Could you please help me to figure out what the problem consists in?
I folowed instructions described in handbook:

[intel][root]~# kgdb /usr/obj/usr/src/sys/router/kernel.debug  /var/crash/v=
mcore.77
kgdb: kvm_nlist(_stopped_cpus):
kgdb: kvm_nlist(_stoppcbs):
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:=
 Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 condition=
s.
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-marcel-freebsd".

Unread portion of the kernel message buffer:
<6>external: promiscuous mode enabled

Fatal trap 12: page fault while in kernel mode
fault virtual address   =3D 0xc
fault code              =3D supervisor read, page not present
instruction pointer     =3D 0x20:0xc0596202
stack pointer           =3D 0x28:0xe4fabb18
frame pointer           =3D 0x28:0xe4fabb4c
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 12 (swi4: clock sio)
Dumping 2047 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 2047MB (524032 pages) 2032 2016 2000 1984 1968 1952 1936 1920 19=
04 1888 1872 1856 1840 1824 1808 1792 1776 1760 1744 1728 1712 1696 1680 16=
64 1648 1632 1616 1600 1584 1568 1552 1536 1520 1504 1488 1472 1456 1440 14=
24 1408 1392 1376 1360 1344 1328 1312 1296 1280 1264 1248 1232 1216 1200 11=
84 1168 1152 1136 1120 1104 1088 1072 1056 1040 1024 1008 992 976 960 944 9=
28 912 896 880 864 848 832 816 800 784 768 752 736 720 704 688 672 656 640 =
624 608 592 576 560 544 528 512 496 480 464 448 432 416 400 384 368 352 336=
 320 304 288 272 256 240 224 208 192 176 160 144 128 112 96 80 64 48 32 16

#0  doadump () at pcpu.h:165
165     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc04772e7 in db_fncall (dummy1=3D-1067884030, dummy2=3D0, dummy3=3D1, =
dummy4=3D0xe4fab92c "")
    at /usr/src/sys/ddb/db_command.c:492
#2  0xc0477780 in db_command_loop () at /usr/src/sys/ddb/db_command.c:350
#3  0xc0479600 in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_main=
.c:222
#4  0xc0572252 in kdb_trap (type=3D0, code=3D0, tf=3D0xe4fabad8) at /usr/sr=
c/sys/kern/subr_kdb.c:473
#5  0xc06ffae4 in trap_fatal (frame=3D0xe4fabad8, eva=3D12) at /usr/src/sys=
/i386/i386/trap.c:828
#6  0xc06ffdeb in trap_pfault (frame=3D0xe4fabad8, usermode=3D0, eva=3D12)
    at /usr/src/sys/i386/i386/trap.c:745
#7  0xc0700235 in trap (frame=3D
      {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D 1352, tf_esi =3D=
 0, tf_ebp =3D -453330100, tf_isp =3D -453330172, tf_ebx =3D -940045504, tf=
_edx =3D 20, tf_ecx =3D 1396, tf_eax =3D 44, tf_trapno =3D 12, tf_err =3D 0=
, tf_eip =3D -1067884030, tf_cs =3D 32, tf_eflags =3D 66054, tf_esp =3D 256=
, tf_ss =3D -453330040})
    at /usr/src/sys/i386/i386/trap.c:435
#8  0xc06ec0ea in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#9  0xc0596202 in m_copym (m=3D0x0, off0=3D1396, len=3D1376, wait=3D1)
    at /usr/src/sys/kern/uipc_mbuf.c:397
#10 0xc061804a in ip_fragment (ip=3D0xcd365820, m_frag=3D0xe4fabc20, mtu=3D=
-940045504,
    if_hwassist_flags=3D0, sw_csum=3D3073) at /usr/src/sys/netinet/ip_outpu=
t.c:975
#11 0xc061a846 in ip_output (m=3D0xc6894300, opt=3D0xcd365820, ro=3D0xe4fab=
bec, flags=3D1, imo=3D0x0,
    inp=3D0x0) at /usr/src/sys/netinet/ip_output.c:804
#12 0xc0609742 in dummynet_send (m=3D0xc66b9e00) at /usr/src/sys/netinet/ip=
_dummynet.c:771
#13 0xc0609a32 in dummynet (unused=3D0x0) at /usr/src/sys/netinet/ip_dummyn=
et.c:753
#14 0xc0563590 in softclock (dummy=3D0x0) at /usr/src/sys/kern/kern_timeout=
.c:290
#15 0xc053a15f in ithread_loop (arg=3D0xc6391760) at /usr/src/sys/kern/kern=
_intr.c:682
#16 0xc0538cbd in fork_exit (callout=3D0xc053a040 <ithread_loop>, arg=3D0x2=
c, frame=3D0x2c)
    at /usr/src/sys/kern/kern_fork.c:821
#17 0xc06ec14c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:=
208
(kgdb) list *0xc0596202
0xc0596202 is in m_copym (/usr/src/sys/kern/uipc_mbuf.c:400).
395             MBUF_CHECKSLEEP(wait);
396             if (off =3D=3D 0 && m->m_flags & M_PKTHDR)
397                     copyhdr =3D 1;
398             while (off > 0) {
399                     KASSERT(m !=3D NULL, ("m_copym, offset > size of mb=
uf chain"));
400                     if (off < m->m_len)
401                             break;
402                     off -=3D m->m_len;
403                     m =3D m->m_next;
404             }



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dkernel config file=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
machine         i386
cpu             I686_CPU
ident           router

makeoptions    DEBUG=3D-g                #Build kernel with gdb(1) debug sy=
mbols
options  KDB
options  DDB
options  BREAK_TO_DEBUGGER


options         SCHED_4BSD              # 4BSD scheduler
options         INET                    # InterNETworking
options         FFS                     # Berkeley Fast Filesystem

options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_DIRHASH             # Improve performance on big direct=
ories
options         MD_ROOT                 # MD is a potential root device
options         NFSCLIENT               # Network Filesystem Client
options         NFSSERVER               # Network Filesystem Server
options         NFS_ROOT                # NFS usable as /, requires NFSCLIE=
NT
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THI=
S!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         SCSI_DELAY=3D5000 # Delay (in ms) before probing SCSI
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time exte=
nsions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug

options         ADAPTIVE_GIANT          # Giant mutex is adaptive.


options         IPDIVERT
options         DUMMYNET
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_FORWARD
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         HZ=3D1024
options         DEVICE_POLLING
options         GEOM_STRIPE
options         GEOM_MIRROR

options         NETGRAPH
options         NETGRAPH_PPP
options         NETGRAPH_BPF
options         NETGRAPH_IFACE
options         NETGRAPH_PPTPGRE
options         NETGRAPH_NETFLOW
options         NETGRAPH_TEE
options         NETGRAPH_SOCKET
options         NETGRAPH_KSOCKET
options         NETGRAPH_VJC
options         NETGRAPH_TCPMSS

device          isa
device          pci

device          ata
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
options         ATA_STATIC_ID   # Static device numbering

device          scbus           # SCSI bus (required for SCSI)
device          da              # Direct Access (disks)
device          pass            # Passthrough device (direct SCSI access)
device          ses             # SCSI Environmental Services (and SAF-TE)

device          ahd

device          twe             # 3ware ATA RAID

device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

device          sc
device          agp             # support several AGP chipsets

device          npx

device          apm

device          pmtimer

device          sio             # 8250, 16[45]50 based serial ports

device          ppbus           # Parallel port bus (required)

device          miibus          # MII bus support
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)
device          re              # RealTek 8139C+/8169/8169S/8110S
device          rl              # RealTek 8129/8139
device          em

device          iicbus
device          smbus
device          smb
device          iicsmb
device          nfsmb

# Pseudo devices.
device          loop            # Network loopback
device          mem             # Memory and kernel memory devices
device          io              # I/O device
device          random          # Entropy device
device          ether           # Ethernet support
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)

device          bpf             # Berkeley packet filter
device          pf
device          pflog

device          apic
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dkernel config file=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


--=20
  [ /Iexa ]                         mailto:suntechnic@gmail.com

------------5C6321D25F10328
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6

iQEVAwUARds2w83W5eUnRI4pAQHQQQf+MnHdsFCk0Sd6kVEOcduVvMTcrKeKETLT
p+X4SBNgpPduDzol2ltEe67+juODmiX+jlbWBc9CuXqqNkigm+13p4vOfdAQVugK
wFw+TqsSp5t+1BfNboyofOpz3bggHFos+kIbP2dFquGKOk1WWZbK76aw74y6eTwd
3WBdmSH0Tm4EHK7NHwCO2O4ybW5LSAQw7RNZ/IYRoRnr0B+4K2ZyBeGej2fI6shu
sSwF7FNI5e2TayxT/HI6XeTcZCkVIYeNioBtVBIlfVCbagaVxD/1zgvxB31Ku/RK
zCqzkQI1tz5bt2R5Hm+JNhRK+oCNw0EFuQMRLLYsTQlJo10ygsFxyA==
=+I/u
-----END PGP MESSAGE-----

------------5C6321D25F10328--




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