Bug 282499 - emulators/virtualbox-ose-additions: kernel panic : mutex Giant owned at kern_synch.c:481
Summary: emulators/virtualbox-ose-additions: kernel panic : mutex Giant owned at kern_...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-02 18:20 UTC by mikhail.rokhin
Modified: 2024-11-20 14:55 UTC (History)
4 users (show)

See Also:


Attachments
VirtualBox_FBSD-CUR_02_11_2024_21_12_41 (16.22 KB, image/png)
2024-11-02 18:20 UTC, mikhail.rokhin
no flags Details
VirtualBox_FBSD-CUR_02_11_2024_21_13_27 (16.67 KB, image/png)
2024-11-02 18:22 UTC, mikhail.rokhin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.