Opened 10 months ago
Last modified 2 months ago
#22064 new defect
On LLVM clang compiled Linux kernel host, VirtualBox hard-freezes the host when launching a Virtual Machine. — at Version 5
Reported by: | dreieck | Owned by: | |
---|---|---|---|
Component: | host support | Version: | VirtualBox-7.0.16 |
Keywords: | freeze | Cc: | dreieck |
Guest type: | all | Host type: | Linux |
Description (last modified by )
Ahoj,
I am on Linux, kernel version 6.8.8, Virtual Box version 7.0.16 (EDIT: also with version 7.0.18 as tested later, see follow-up comment).
Virtual Box host module compiled via DKMS for all installed kernels.
When I want to run any VortualBox virtual machine with a Linux kernel compiled using the LLVM clang compiler, the system freezes immediately, only a hard reset helps (also the Linux' SysRq does not work anymore). A dmesg -w
running in parallel in another window does not show anything (before system freeze).
When I instead use a kernel compiled with GCC (otherwise same kernel configuration), VirtualBox virtual machine runs as expected.
Note that using LLVM clang is a supported compiler for Linux.
Compiler versions:
clang --version
:clang version 17.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin
ld.lld --version
:LLD 17.0.6 (compatible with GNU linkers)
gcc --version | head -n1
:gcc (GCC) 13.2.1 20240417
I attach the following files for background information:
- Kernel config of the GCC compiled kernel:
config_6.8.8-gcc.gz
(compressed), - Kernel config of the LLVM clang compiled kernel:
config_6.8.8-clang.gz
(compressed), diff
between those two kernel configurations:config-diff_6.8.8-gcc-clang.txt
,dmesg
output after booting the system with the GCC compiled kernel:dmesg_6.8.8-gcc.log
,dmesg
output after booting the system with the LLVM clang compiled kernel:dmesg_6.8.8-clang.log
,hwinfo
output (captured with the LLVM clang compiled kernel):hwinfo_6.8.8-clang.log.zstd
(compressed),inxi -F
output (captured with the LLVM clang compiled kernel):inxi_6.8.8-clang.log
,lspci -vvv
output (captured with the LLVM clang compiled kernel):lspci_6.8.8-clang.log
,- The VirtualBox-logfile of sucessfully running a Virtual Machine from the host booted with the GCC compiled kernel:
VirtualBox-machine-log_CD boot-2024-05-04-19-58-26_6.8.8-gcc.log
. *(All occurances of<censored>
in those logs are censorings of my username.)*
Regards!
Change History (14)
by , 10 months ago
Attachment: | config_6.8.8-gcc.gz added |
---|
by , 10 months ago
Attachment: | config_6.8.8-clang.gz added |
---|
Linux kernel config of the clang compiled kernel
by , 10 months ago
Attachment: | config-diff_6.8.8-gcc-clang.txt added |
---|
diff between the two kernel configs (GCC and clang compiled kernel)
by , 10 months ago
Attachment: | dmesg_6.8.8-gcc.log added |
---|
dmesg
output after booting the system with the GCC compiled kernel
by , 10 months ago
Attachment: | dmesg_6.8.8-clang.log added |
---|
dmesg
output after booting the system with the clang compiled kernel
by , 10 months ago
Attachment: | hwinfo_6.8.8-clang.log.zst added |
---|
hwinfo
output (captured with the LLVM clang compiled kernel)
by , 10 months ago
Attachment: | inxi_6.8.8-clang.log added |
---|
inxi -F
output (captured with the LLVM clang compiled kernel)
by , 10 months ago
Attachment: | lspci_6.8.8-clang.log added |
---|
lspci -vvv
output (captured with the LLVM clang compiled kernel)
by , 10 months ago
Attachment: | VirtualBox-machine-log_CD boot-2024-05-04-19-58-26_6.8.8-gcc.log added |
---|
The VirtualBox-logfile of sucessfully running a Virtual Machine from the host booted with the GCC compiled kernel
comment:1 by , 10 months ago
Description: | modified (diff) |
---|
comment:2 by , 10 months ago
Description: | modified (diff) |
---|
comment:3 by , 10 months ago
Also happens with VirtualBox version 7.0.18, and with "Enable 3D Acceleration" switched off and with USB 1.1 instead of USB 3.0.
comment:4 by , 10 months ago
Description: | modified (diff) |
---|
comment:5 by , 10 months ago
Description: | modified (diff) |
---|
Linux kernel configuration of the GCC compiled kernel