Bug 246889 - Kernel panic after upgrading to FreeBSD 12.1
Summary: Kernel panic after upgrading to FreeBSD 12.1
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Bugmeister
URL:
Keywords: crash, regression
Depends on:
Blocks:
 
Reported: 2020-05-31 06:37 UTC by Eugene Hutorny
Modified: 2025-01-25 01:16 UTC (History)
1 user (show)

See Also:


Attachments
core.txt.3 (177.33 KB, text/plain)
2020-05-31 06:37 UTC, Eugene Hutorny
no flags Details
core.txt.0 (182.59 KB, text/plain)
2020-05-31 06:38 UTC, Eugene Hutorny
no flags Details
core.txt.1 (177.09 KB, text/plain)
2020-05-31 06:38 UTC, Eugene Hutorny
no flags Details
core.txt.2 (179.26 KB, text/plain)
2020-05-31 06:39 UTC, Eugene Hutorny
no flags Details
core.txt.4 (245.07 KB, text/plain)
2020-06-01 04:03 UTC, Eugene Hutorny
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Hutorny 2020-05-31 06:37:47 UTC
Created attachment 215089 [details]
core.txt.3

Suspecting VBoxDrvFreeBSDIOCtl
Comment 1 Eugene Hutorny 2020-05-31 06:38:30 UTC
Created attachment 215090 [details]
core.txt.0
Comment 2 Eugene Hutorny 2020-05-31 06:38:50 UTC
Created attachment 215091 [details]
core.txt.1
Comment 3 Eugene Hutorny 2020-05-31 06:39:20 UTC
Created attachment 215092 [details]
core.txt.2
Comment 4 Andriy Gapon freebsd_committer freebsd_triage 2020-05-31 10:14:41 UTC
Recompile VirtualBox. Its kernel module does snot match your new kernel.
Comment 5 Eugene Hutorny 2020-05-31 10:28:31 UTC
I have installed VirtualBox with 

# pkg install virtualbox-ose

on top of a fresh FreeBSD 12.1
The same setup used to work in 11.3
Comment 6 Andriy Gapon freebsd_committer freebsd_triage 2020-05-31 11:10:35 UTC
Right. This is not guaranteed to work, unfortunately. To be safe, you always need to compile kernel modules yourself. Modules from package may or may not work. You can read a lot about that on the mailing lists and forums.
Comment 7 Eugene Hutorny 2020-06-01 04:03:03 UTC
Created attachment 215120 [details]
core.txt.4

Replacing vbox kernel modules with self-compiled has not fixed the issue.
When the host (FreeBSD) crashed, the guest (Ubuntu 20) was reporting numerous I/O errors. Unfortunately, guest has not saved any crash logs.

Also I noticed that NAT networking does not work with both stock and self-compiled modules. Perhaps this is caused by

module_register_init: MOD_LOAD (ng_vboxnetflt, 0xffffffff82ab0c50, 0xffffffff82aa7960) error 22
/etc/rc: WARNING: Can't load vboxnetflt module.

Not sure if it is related to the crash.
Comment 8 Andriy Gapon freebsd_committer freebsd_triage 2020-06-01 08:00:56 UTC
What source tree did you use when you compiled the modules?
Is it an exact match for the kernel that you have installed?
Comment 9 Eugene Hutorny 2020-06-01 08:13:21 UTC
What would be a proof for that?
Comment 10 Graham Perrin freebsd_committer freebsd_triage 2021-06-19 11:14:39 UTC
(In reply to Eugene Hutorny from comment #7)

Re  <https://www.freshports.org/emulators/virtualbox-ose-kmod-legacy/#history> 
and <https://www.freshports.org/emulators/virtualbox-ose-kmod/?page=2#history> that would have been 5.2.34 at the time (2020-06-01); 5.2.44⋯ is now -legacy.

Please, is the issue reproducible with the most recent non-legacy version? 6.1.22_1 at present. 

Disks
=====

> … When the host (FreeBSD) crashed, the guest (Ubuntu 20) was reporting 
> numerous I/O errors. …

This is thought-provoking. How do things appear for the host in GSmartControl? 

<https://www.freshports.org/sysutils/gsmartcontrol/>

Hint: sudo gsmartcontrol
Comment 11 Mark Linimon freebsd_committer freebsd_triage 2025-01-25 01:16:30 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
Please re-open if it is still a problem on a supported version.