amd64/175091: Crash: Fatal trap 12: page fault while in kernel mode

Rasmus Skaarup freebsd at
Mon Jan 7 08:10:02 UTC 2013

>Number:         175091
>Category:       amd64
>Synopsis:       Crash: Fatal trap 12: page fault while in kernel mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 07 08:10:01 UTC 2013
>Originator:     Rasmus Skaarup
>Release:        9.1-RELEASE
FreeBSD thirdhost 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root at  amd64

On of my virtualized FreeBSD machines has been panic'ing two times within the last two weeks. After the first panic I ran freebsd-update and upgraded to 9.1-RELEASE succesfully. Today the machine panic'ed again.

I have another virtualized FreeBSD machine running on the same host, and it does not exhibit this behaviour.

Here is the output from dmesg, after reboot:

Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address   = 0x48
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80bd5139
stack pointer           = 0x28:0xffffff81625536c0
frame pointer           = 0x28:0xffffff8162553750
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 62083 (httpd)
trap number             = 12
panic: page fault
cpuid = 2
KDB: stack backtrace:
#0 0xffffffff809208a6 at kdb_backtrace+0x66
#1 0xffffffff808ea8be at panic+0x1ce
#2 0xffffffff80bd8240 at trap_fatal+0x290
#3 0xffffffff80bd857d at trap_pfault+0x1ed
#4 0xffffffff80bd8b9e at trap+0x3ce
#5 0xffffffff80bc315f at calltrap+0x8
#6 0xffffffff80b41133 at vm_fault_hold+0x1b13
#7 0xffffffff80b41cc3 at vm_fault+0x73
#8 0xffffffff80bd84b4 at trap_pfault+0x124
#9 0xffffffff80bd8c6c at trap+0x49c
#10 0xffffffff80bc315f at calltrap+0x8
Uptime: 13h6m22s

This machine is running virtualized on a Centos 6.3 host, with 


and the following configuration:

<domain type='kvm'>
  <memory unit='KiB'>5242880</memory>
  <currentMemory unit='KiB'>5242880</currentMemory>
  <vcpu placement='static'>4</vcpu>
    <type arch='x86_64' machine='rhel6.2.0'>hvm</type>
    <boot dev='hd'/>
  <clock offset='utc'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/home/vms/FreeBSD3-SystemDisk.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/home/vms/FreeBSD3-DataDisk.img'/>
      <target dev='vdb' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    <controller type='usb' index='0'/>
    <interface type='bridge'>
      <mac address='52:54:00:b2:12:8c'/>
      <source bridge='br0'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    <interface type='bridge'>
      <mac address='52:54:00:b2:12:a2'/>
      <source bridge='br1'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    <interface type='bridge'>
      <mac address='00:16:8e:1a:f3:a9'/>
      <source bridge='virbr0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='' keymap='en-us'>
      <listen type='address' address=''/>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>


pciconf -l
hostb0 at pci0:0:0:0:	class=0x060000 card=0x11001af4 chip=0x12378086 rev=0x02 hdr=0x00
isab0 at pci0:0:1:0:	class=0x060100 card=0x11001af4 chip=0x70008086 rev=0x00 hdr=0x00
atapci0 at pci0:0:1:1:	class=0x010180 card=0x11001af4 chip=0x70108086 rev=0x00 hdr=0x00
uhci0 at pci0:0:1:2:	class=0x0c0300 card=0x11001af4 chip=0x70208086 rev=0x01 hdr=0x00
none0 at pci0:0:1:3:	class=0x068000 card=0x11001af4 chip=0x71138086 rev=0x03 hdr=0x00
vgapci0 at pci0:0:2:0:	class=0x030000 card=0x11001af4 chip=0x00b81013 rev=0x00 hdr=0x00
re0 at pci0:0:3:0:	class=0x020000 card=0x11001af4 chip=0x813910ec rev=0x20 hdr=0x00
virtio_pci0 at pci0:0:4:0:	class=0x050000 card=0x00051af4 chip=0x10021af4 rev=0x00 hdr=0x00
em0 at pci0:0:5:0:	class=0x020000 card=0x11001af4 chip=0x100e8086 rev=0x03 hdr=0x00
em1 at pci0:0:6:0:	class=0x020000 card=0x11001af4 chip=0x100e8086 rev=0x03 hdr=0x00
virtio_pci1 at pci0:0:7:0:	class=0x010000 card=0x00021af4 chip=0x10011af4 rev=0x00 hdr=0x00
virtio_pci2 at pci0:0:8:0:	class=0x010000 card=0x00021af4 chip=0x10011af4 rev=0x00 hdr=0x00

Happens regularly by itself.


More information about the freebsd-amd64 mailing list