Bug 282499

Summary: emulators/virtualbox-ose-additions: kernel panic : mutex Giant owned at kern_synch.c:481
Product: Ports & Packages Reporter: mikhail.rokhin
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: emaste, grahamperrin, groenveld, vvd
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264833
Attachments:
Description Flags
VirtualBox_FBSD-CUR_02_11_2024_21_12_41
none
VirtualBox_FBSD-CUR_02_11_2024_21_13_27 none

Description mikhail.rokhin 2024-11-02 18:20:36 UTC
Created attachment 254882 [details]
VirtualBox_FBSD-CUR_02_11_2024_21_12_41

After ``service vboxguest onestart`` .

vbox-additions installed via ``pkg ins ...`` and version 6.1.50 . 


Thank you for development & support.

Joy, Happiness and Satisfaction! Resources for prosperous life!!)
Comment 1 mikhail.rokhin 2024-11-02 18:22:37 UTC
Created attachment 254883 [details]
VirtualBox_FBSD-CUR_02_11_2024_21_13_27
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-11-03 16:28:08 UTC
What version of FreeBSD do you use?
Did you rebuild port self?
Comment 3 mikhail.rokhin 2024-11-04 00:19:38 UTC
(In reply to Vladimir Druzenko from comment #2)

Latest 1500026 main-n273396-d839cf2fbb47 Nov 2, 19:43 ; llvm 19.1.2 .

Yes, but virtualbox-ose-additions rebuilt didn't help.


If you need any extra debug info, please, point me to proper debug commands.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-11-04 00:36:11 UTC
(In reply to mikhail.rokhin from comment #3)
Can you try building it with different versions of LLVM from ports?
Comment 5 mikhail.rokhin 2024-11-04 01:08:29 UTC
(In reply to Vladimir Druzenko from comment #4)

Is it better to build it with GCC ?)
Comment 6 mikhail.rokhin 2024-11-04 01:44:44 UTC
NB I doubt it is failure of anything, but kernel: whatsoever program fails, kernel should not panic, managing resources properly & protectively.
Comment 7 Ed Maste freebsd_committer freebsd_triage 2024-11-04 01:53:22 UTC
The panic backtrace in the attachment shows the crash is in VirtualBox's kernel code.
Comment 8 mikhail.rokhin 2024-11-05 00:20:58 UTC
(In reply to Vladimir Druzenko from comment #4)

GCC 13, 14 and LLVM 15, 18 both were installed via ``pkg ins ...`` and both failed to compile the port with multiple errors about undefined symbols & syntaxis errors at ld linking stage.

May there be something hardcoded about compiler within the port?

World's built-in LLVM 19 succeeded in compilation.

Could you point me to the right substitution for USE_GCC for LLVM, smth like USE_LLVM=15 , please?

As of `DEFAULT_VERSIONS+= llvm=15`` in make.conf fails and the port uses built-in LLVM 19 instead, and it's a long way to print CC= , CXX= , CPP=, etc. in ``make`` command line.
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2024-11-09 01:04:49 UTC
(In reply to mikhail.rokhin from comment #8)
Add in port's Makefile: "USES+=llvm:N" where N=19,18,17,16,15,14.