Unbelievable...
I have an xterm open, ssh to remote system, running
This appeared in the xterm:
So, it was sent to the kernel logging (718015 is the uptime), grabbed by syslog, written to /var/log/messages, grabbed by tail, given to
In the logfile there is actually a bit more; it goes on:
Problem was, I had accidentially overwritten /boot/kernel/kernel. Normally this should not harm. When I noticed the problem, I hit ^C, deleted /boot/kernel and moved /boot/kernel.old back - with the result that at reboot both were gone, and it was a bit of a hassle to restart.
I got a crashdump also, and it looks like a known problem - the iface refcounts cat get wrong when moving into and out of vnet jails. I complained already on occasion in bugtracker, but nobody cares
I have an xterm open, ssh to remote system, running
tail -f /var/log/messages.This appeared in the xterm:
Code:
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] Fatal trap 12: page fault while in kernel mode
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] cpuid = 2; apic id = 02
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] fault virtual address = 0x0
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] fault code = supervisor read instruction, page not present
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] instruction pointer = 0x20:0x0
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] stack pointer = 0x28:0xfffffe02e0ce98f8
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] frame pointer = 0x28:0xfffffe02e0ce9910
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] code segment = base 0x0, limit 0xfffff, type 0x1b
Oct 3 23:40:59 <kern.crit> edge kernel: [718015]
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] Fatal trap 12: page fault while in kernel mode
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] cpuid = 4; apic id = 04
So, it was sent to the kernel logging (718015 is the uptime), grabbed by syslog, written to /var/log/messages, grabbed by tail, given to
sshd, encrypted, written to socket, packaged into mbuf(s), routed, checked through firewall rules, handled by netgraph bridge, given to the iface device driver and sent to my desktop. All with a crashed kernel.In the logfile there is actually a bit more; it goes on:
Code:
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] fault virtual address = 0x0
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] fault code = supervisor read instruction, page not present
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] = DPL 0, pres 1, long 1, def32 0, gran 1
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] instruction pointer = 0x20:0x0
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] stack pointer = 0x28:0xfffffe02e0d0c8f8
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] frame pointer = 0x28:0xfffffe02e0d0c910
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] code segment = base 0x0, limit 0xfffff, type 0x1b
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] = DPL 0, pres 1, long 1, def32 0, gran 1
Oct 3 23:40:59 <kern.crit> edge kernel: [718015] processor eflags = interrupt enabled, resume, IOPL = 0
Oct 4 00:27:44 <kern.info> edge syslogd: kernel boot file is /boot/kernel/kernel
Oct 4 00:27:44 <kern.crit> edge kernel: ---<<BOOT>>---
Problem was, I had accidentially overwritten /boot/kernel/kernel. Normally this should not harm. When I noticed the problem, I hit ^C, deleted /boot/kernel and moved /boot/kernel.old back - with the result that at reboot both were gone, and it was a bit of a hassle to restart.
I got a crashdump also, and it looks like a known problem - the iface refcounts cat get wrong when moving into and out of vnet jails. I complained already on occasion in bugtracker, but nobody cares
Code:
[718015] current process = 7957 (rtadvd)
[718015] trap number = 12
[718015] panic: page fault
[718015] cpuid = 4
[718015] time = 1727991659
[718015] KDB: stack backtrace:
[718015] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe02e0d0c6c0
[718015] vpanic() at vpanic+0x152/frame 0xfffffe02e0d0c710
[718015] panic() at panic+0x43/frame 0xfffffe02e0d0c770
[718015] trap_fatal() at trap_fatal+0x389/frame 0xfffffe02e0d0c7d0
[718015] trap_pfault() at trap_pfault+0x46/frame 0xfffffe02e0d0c820
[718015] calltrap() at calltrap+0x8/frame 0xfffffe02e0d0c820
[718015] --- trap 0xc, rip = 0, rsp = 0xfffffe02e0d0c8f8, rbp = 0xfffffe02e0d0c910 ---
[718015] ??() at 0/frame 0xfffffe02e0d0c910
[718015] sysctl_iflist() at sysctl_iflist+0x173/frame 0xfffffe02e0d0cb00
[718015] sysctl_rtsock() at sysctl_rtsock+0x35d/frame 0xfffffe02e0d0cbe0
[718015] sysctl_root_handler_locked() at sysctl_root_handler_locked+0x97/frame 0xfffffe02e0d0cc30
[718015] sysctl_root() at sysctl_root+0x2b3/frame 0xfffffe02e0d0ccb0
[718015] userland_sysctl() at userland_sysctl+0x15e/frame 0xfffffe02e0d0cd50
[718015] sys___sysctl() at sys___sysctl+0x60/frame 0xfffffe02e0d0ce00
[718015] amd64_syscall() at amd64_syscall+0x106/frame 0xfffffe02e0d0cf30
[718015] fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe02e0d0cf30
[718015] --- syscall (202, FreeBSD ELF64, __sysctl), rip = 0x216847a072aa, rsp = 0x216845a7dd18, rbp = 0x216845a7dd50 ---
[718015] Uptime: 8d7h26m55s
[718015] Dumping 13722 out of 81790 MB: