OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: Deku on February 22, 2019, 08:58:01 pm

Title: Fatal trap 12: page fault
Post by: Deku on February 22, 2019, 08:58:01 pm
It's a trap!  I'm able to focus on this error now.  When upgrading from 18.7.10_x to 19.1, it crashes the Dell Inspiron 3470.  I'm installing the base 18.7 with no configuration, no plugins - install and update.  I even updated to the latest Dell bios (1.5.11).  There is some sort of hardware incompatibility in the new kernel. Never had an issue prior to 19.1.

Quote
Fatal trap 12: Page fault while in kernel mode
...
Stopped at fpuinit+0x179: orb $0x10,ctx_switch_xsave+0x3

After the crash, I ran db> bt
Quote
Tracing pid 0 tid 0 td 0xffffffff8202d260
fpuinit() at fpuinit+0x189/frame 0xffffffff81c1fbd0
hammer_time() at hammer_time+0x11cb/frame 0xffffffff81c20070
btext() at btext+0x24

Here is a screenshot.
Title: Re: Fatal trap 12: page fault
Post by: Deku on February 22, 2019, 09:01:05 pm
I was able to get it to boot by selection option 5 at boot time and selecting the kernel.old.  It booted with kernel 11.1, but the base was 11.2.  It then went through some config, but Opnsense appears to still be on 18.7.10_4, not 19.1.  So? Problem with FreeBSD 11.2 kernel?
Title: Re: Fatal trap 12: page fault
Post by: Deku on February 22, 2019, 10:29:16 pm
I downloaded OPNSense 19.1 image to liveboot the USB and it also crashed.  So I downloaded FreeBSD 11.2 to test it and it booted to the live OS fine.
Title: Re: Fatal trap 12: page fault
Post by: sigrme2449 on February 22, 2019, 11:02:19 pm
Have you checked if your hard drive is fine? Perhaps do a Ram like memtest86+ test?

Ubuntu live can check S.M.A.R.T. status or other various tools can check sectors, however you mentioned even the Liveboot failed. Perhaps as an experiment try booting into live mode with hdd/ssd disconnected.

I noticed if on Windows side when I try to use rufus (usb tool) to write the .img after unbzp2 it it with BSOD, so generally i just download it on a linux live distro and dd to the proper flash drive. PFsense also did that, perhaps i need to use a different tool, like physdiskwrite or w/e. May i ask how you create your USB media?

I would start with a fresh install media rather than a upgrade to reduce likely problems
Title: Re: Fatal trap 12: page fault
Post by: Deku on February 22, 2019, 11:44:50 pm
I stated in my last post that I tried fresh media.  It won't boot to the 19.1 live disk, which requires no hard drive.  Doesn't have any problems with versions prior to 19.1, so it's something in that build that's causing the issue.  It does likely have something to do with hardware, but most likely a compatibility problem, not faulty memory or disk.

I used Etcher to create the boot thumb drive for the fresh install.  Had no issues with any other linux distro booting from it, including freebsd 11.2. 

Looks to me to be an issue with the FPU check for xsave.  I'll be out for the weekend, but will return to this thread Monday.  Thanks for any help all!
Title: Re: Fatal trap 12: page fault
Post by: Deku on February 27, 2019, 10:37:38 pm
So I tried the opnsense-bootstrap and it fails with the same kernel issue.
I installed the FreeBSD 11.2-RELEASE without issue.  Ran the proper commands:

Code: [Select]
# pkg install ca_root_nss
# fetch https://raw.githubusercontent.com/opnsense/update/master/bootstrap/opnsense-bootstrap.sh
# sh ./opnsense-bootstrap.sh

After install / reboot - same fatal trap issue with Opnsense 19.1
Title: Re: Fatal trap 12: page fault
Post by: bunchofreeds on February 28, 2019, 02:46:33 am
I think OPNsense uses HardenedBSD 11.2

https://hardenedbsd.org/


Similar threads/issues if you haven't seen these yet
https://forum.opnsense.org/index.php?topic=11419.0
https://forum.opnsense.org/index.php?topic=11403.0