Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save reelsense/40fa8c5bad78c6cfc55aa8f1f97fe1f9 to your computer and use it in GitHub Desktop.
Save reelsense/40fa8c5bad78c6cfc55aa8f1f97fe1f9 to your computer and use it in GitHub Desktop.
How to fix FreeBSD 11.2-RELEASE not booting because of error "Fatal trap 12: page fault while in kernel mode"

How to fix FreeBSD 11.2-RELEASE not booting because of Virtual Box driver.

I entcountered a bug with virtualbox-ose-nox11-5.2.14_1 & virtualbox-ose-kmod after upgrading to FreeBSD 11.2-RELEASE on first reboot.

The system would enter a boot loop with this crash error:

supdrvGipCreate: failed to allocate the GIP page
vboxdrv: supdrvInitDevExt failed, rc=-26

Fatal trap 12: page fault while in kernel mode
cpuid = 7; apic id = 07
fault virtual address   = 0x134

The bug was discussed here: https://forums.freebsd.org/threads/virtualbox-fatal-trap-12-on-11-2-release.66435/

And it is documented here: https://www.freebsd.org/releases/11.2R/errata.html#open-issues

Make your system boot again

Comment out/remove #vboxdrv_load="YES" in /boot/loader.conf.

Comment out/remove #vboxnet_enable="YES" in /etc/rc.conf. Basically anything Virtual Box.

Remove Virtual Box. (I actually didn't test if removing Virtual Box is necessary.)

pkg remove virtualbox-ose-nox11
pkg autoremove

If this helped you, consider the Value for Value model. https://bringyourwallet.com/donate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment