1
General Discussion / Crashing all the time
« on: December 23, 2020, 05:45:37 pm »
Since the last 3-4 months my OPNSense have crashed every other day or so - until then all ran perfectly fine.
about 3 years ago I bought this APU2C4 which I run OPNSense on, I had to run the older 19.7 for a while since the newer version did not work well with the bios I think, and then I ran it for a while working somewhat well - I think the OEM m-sata card which came along with the board was not that good, and so I started to run it only as "live", I did this by pre-mounting the drive and adding my conf-file before booting.
This started rather rapidly when one day I had just installed an snmpd package through ssh, and I had just edited the snmpd.conf file and hit [shift] ZZ to save+exit when it hard resetted on me right away - until then it was up for about a year. Since then I have worked and googled in order to make it stop resetting every 12-36hrs or so.
On the pfSense forum I found some info regarding the bios and I updated it a few weeks back so it is running the very last bios by now, still it keeps resetting and I never found a way to save a logfile if something happened, so I found out that I can just record the terminal using 'script'.
Here is what happends from crashing at the first line and on until reset.
Can anyone tell me what really happened here and what is the cause of the crash?
about 3 years ago I bought this APU2C4 which I run OPNSense on, I had to run the older 19.7 for a while since the newer version did not work well with the bios I think, and then I ran it for a while working somewhat well - I think the OEM m-sata card which came along with the board was not that good, and so I started to run it only as "live", I did this by pre-mounting the drive and adding my conf-file before booting.
This started rather rapidly when one day I had just installed an snmpd package through ssh, and I had just edited the snmpd.conf file and hit [shift] ZZ to save+exit when it hard resetted on me right away - until then it was up for about a year. Since then I have worked and googled in order to make it stop resetting every 12-36hrs or so.
On the pfSense forum I found some info regarding the bios and I updated it a few weeks back so it is running the very last bios by now, still it keeps resetting and I never found a way to save a logfile if something happened, so I found out that I can just record the terminal using 'script'.
Here is what happends from crashing at the first line and on until reset.
Can anyone tell me what really happened here and what is the cause of the crash?
Code: [Select]
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x453d3840711e
fault code[6C[8C= supervisor read instruction, page not present
instruction pointer[5C= 0x20:0x453d3840711e
stack pointer = 0x0:0xfffffe0025a8e910
frame pointer = 0x0:0xfffffe0025a8e950
code segment[4C[8C= base 0x0, limit 0xfffff, type 0x1b
[8C[8C[8C= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags[8C= interrupt enabled, resume, IOPL = 0
current process [8C= 11 (idle: cpu0)
trap number[5C[8C= 12
panic: page fault
cpuid = 0
time = 1608654593
__HardenedBSD_version = 1200059 __FreeBSD_version = 1201000
version = FreeBSD 12.1-RELEASE-p7-HBSD #0 427d53bc125(stable/20.7)-dirty: Sun Jul 26 05:51:42 CEST 2020
root@sensey64:/usr/obj/usr/src/amd64.amd64/sys/SMP
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0025a8e5c0
vpanic() at vpanic+0x1a2/frame 0xfffffe0025a8e610
panic() at panic+0x43/frame 0xfffffe0025a8e670
trap_fatal() at trap_fatal+0x39c/frame 0xfffffe0025a8e6d0
trap_pfault() at trap_pfault+0x49/frame 0xfffffe0025a8e730
trap() at trap+0x29f/frame 0xfffffe0025a8e840
calltrap() at calltrap+0x8/frame 0xfffffe0025a8e840
--- trap 0xc, rip = 0x453d3840711e, rsp = 0xfffffe0025a8e910, rbp = 0xfffffe0025a8e950 ---
??() at 0x453d3840711e/frame 0xfffffe0025a8e950
cpu_idle_acpi() at cpu_idle_acpi+0x3f/frame 0xfffffe0025a8e970
cpu_idle() at cpu_idle+0xa6/frame 0xfffffe0025a8e990
sched_idletd() at sched_idletd+0x442/frame 0xfffffe0025a8ea70
fork_exit() at fork_exit+0x83/frame 0xfffffe0025a8eab0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0025a8eab0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
[ thread pid 11 tid 100003 ]
Stopped at kdb_enter+0x3b: movq $0,kdb_why
db:0:kdb.enter.default> textdump set
textdump set
db:0:kdb.enter.default> capture on
db:0:kdb.enter.default> run lockinfo
db:1:lockinfo> show locks
No such command; use "help" to list available commands
db:1:lockinfo> show alllocks
No such command; use "help" to list available commands
db:1:lockinfo> show lockedvnods
Locked vnodes
db:0:kdb.enter.default> show pcpu
cpuid = 0
dynamic pcpu = 0xbc6200
curthread = 0xfffff8000330f000: pid 11 tid 100003 "idle: cpu0"
curpcb = 0xfffffe0025a8eb80
fpcurthread = none
idlethread = 0xfffff8000330f000: tid 100003 "idle: cpu0"
curpmap = 0xffffffff820032c8
tssp = 0xffffffff8212e620
commontssp = 0xffffffff8212e620
rsp0 = 0xfffffe0025a8eb80
gs32p = 0xffffffff82135258
ldt = 0xffffffff82135298
tss = 0xffffffff82135288
tlb gen = 141703
curvnet = 0
db:0:kdb.enter.default> bt
Tracing pid 11 tid 100003 td 0xfffff8000330f000
kdb_enter() at kdb_enter+0x3b/frame 0xfffffe0025a8e5c0
vpanic() at vpanic+0x1bf/frame 0xfffffe0025a8e610
panic() at panic+0x43/frame 0xfffffe0025a8e670
trap_fatal() at trap_fatal+0x39c/frame 0xfffffe0025a8e6d0
trap_pfault() at trap_pfault+0x49/frame 0xfffffe0025a8e730
trap() at trap+0x29f/frame 0xfffffe0025a8e840
calltrap() at calltrap+0x8/frame 0xfffffe0025a8e840
--- trap 0xc, rip = 0x453d3840711e, rsp = 0xfffffe0025a8e910, rbp = 0xfffffe0025a8e950 ---
??() at 0x453d3840711e/frame 0xfffffe0025a8e950
cpu_idle_acpi() at cpu_idle_acpi+0x3f/frame 0xfffffe0025a8e970
cpu_idle() at cpu_idle+0xa6/frame 0xfffffe0025a8e990
sched_idletd() at sched_idletd+0x442/frame 0xfffffe0025a8ea70
fork_exit() at fork_exit+0x83/frame 0xfffffe0025a8eab0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0025a8eab0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
...
[b](LOTS of output, se attached file crash.txt)[/b]
...
db:0:kdb.enter.default> capture off
db:0:kdb.enter.default> call doadump
= 0x6
db:0:kdb.enter.default> reset