Bug 231583 - emulators/virtualbox-ose: crash after kldload vboxdrv, 11.2-RELEASE-p3
Summary: emulators/virtualbox-ose: crash after kldload vboxdrv, 11.2-RELEASE-p3
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-22 12:59 UTC by Petr Fischer
Modified: 2018-09-22 18:20 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Fischer 2018-09-22 12:59:20 UTC
FreeBSD pf-bsd 11.2-RELEASE-p3 FreeBSD 11.2-RELEASE-p3 #0: Thu Sep  6 07:14:16 UTC 2018

Name           : virtualbox-ose
Version        : 5.2.18_1

Output from: kgdb /usr/lib/debug/boot/kernel/kernel.debug  /var/crash/vmcore.1
------------------------------------------------
Fatal trap 12: page fault while in kernel mode                                                                                                                                                                      
cpuid = 0; apic id = 00                                                                                                                                                                                             
fault virtual address   = 0x134                                                                                                                                                                                     
fault code      = supervisor read data, page not present                                                                                                                                                            
instruction pointer = 0x20:0xffffffff80a98280                                                                                                                                                                       
stack pointer           = 0x28:0xfffffe04666d1570                                                                                                                                                                   
frame pointer           = 0x28:0xfffffe04666d15a0                                                                                                                                                                   
code segment        = base rx0, limit 0xfffff, type 0x1b                                                                                                                                                            
            = DPL 0, pres 1, long 1, def32 0, gran 1                                                                                                                                                                
processor eflags    = interrupt enabled, resume, IOPL = 0                                                                                                                                                           
current process     = 1878 (kldload)                                                                                                                                                                                
trap number     = 12                                                                                                                                                                                                
panic: page fault                                                                                                                                                                                                   
cpuid = 0                                                                                                                                                                                                           
KDB: stack backtrace:                                                                                                                                                                                               
#0 0xffffffff80b3d567 at kdb_backtrace+0x67                                                                                                                                                                         
#1 0xffffffff80af6b07 at vpanic+0x177                                                                                                                                                                               
#2 0xffffffff80af6983 at panic+0x43                                                                                                                                                                                 
#3 0xffffffff80f77fdf at trap_fatal+0x35f                                                                                                                                                                           
#4 0xffffffff80f78039 at trap_pfault+0x49                                                                                                                                                                           
#5 0xffffffff80f77807 at trap+0x2c7                                                                                                                                                                                 
#6 0xffffffff80f57dcc at calltrap+0x8                                                                                                                                                                               
#7 0xffffffff80a980d7 at destroy_dev+0x37                                                                                                                                                                           
#8 0xffffffff82999117 at VBoxDrvFreeBSDModuleEvent+0x117                                                                                                                                                            
#9 0xffffffff80ad5f5f at module_register_init+0xbf                                                                                                                                                                  
#10 0xffffffff80aca07f at linker_load_module+0xb3f                                                                                                                                                                  
#11 0xffffffff80acb871 at kern_kldload+0xc1                                                                                                                                                                         
#12 0xffffffff80acb98b at sys_kldload+0x5b                                                                                                                                                                          
#13 0xffffffff80f79068 at amd64_syscall+0xa38                                                                                                                                                                       
#14 0xffffffff80f5861d at fast_syscall_common+0x101                                                                                                                                                                 
Uptime: 2m3s
Comment 1 rkoberman 2018-09-22 17:31:44 UTC
Please read the 11.2 Errata or a description and resolution to this problem.

You need to build virtualbox-ose-kmod under 11.2 as kernel changes to the KBI in 11.2 break 11.1 binaries. This means building from the port. NOTE: You do NOT have to build virtualbox-ose, just the kmod.

Also note that, starting next week, packages will be built on 11.2 as 11.1 goes EOL, so a package will then be available. Exact date depends on when the first package build completes after the build systems are upgraded to 11.2. Obviously, you will need to boot without loading the vbox kernel modules until you have the 11.2 built modules.

See full details in Bugzilla ticket https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228535.
Comment 2 Petr Fischer 2018-09-22 18:20:14 UTC
Thanks for explanation.
I will never again upgrade FreeBSD before EOL of previous version.