[Bug]: VirtualBoxVM segfault in DarwinHidDevicesApplyAndReleaseLedsState after host USB KVM switch (macOS, 7.2.22)
維護者通常 6 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- c, macos
研究方向
Start by tracing the macOS host HID handling around DarwinHidDevicesApplyAndReleaseLedsState, named in the crash stack, and inspect how it handles devices after a USB KVM switch. The report includes uploaded logs and a reproduction sequence: switch away and back, then change window focus. Done means reproducing and fixing the null-address crash on the window focus path.
由索引模型根據 Issue 內容生成。
描述
Version
7.2.22
Host OS Type
macOS
Host OS name + version
Mac Tahoe Version 26.6.2 (25G83)
Host Architecture
ARM
Guest OS Type
macOS
Guest Architecture
ARM
Guest OS name + version
Ubuntu 26.10
Component
Unspecified
What happened?
I have a KVM switch (AV Access iDock C20) to switch between two Mac Book Pro M4 laptops. I'm running VirtualBox only on Mac #1. I switch back-and-forth between the Macs during the day. When I do that, VirtualBox crashes.
Primary error:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11, Segmentation fault: 11
Environment:
- VirtualBox 7.2.22 r175245, darwin.arm64 release, running in driverless mode
- Host: Mac16,5 (M4 Max, 16 cores, 128 GB), macOS 26.6.2 (25G83)
- Guest: Ubuntu 26.10 (arm64), 16 vCPUs, Guest Additions 6.0.0 reported by guest
How can we reproduce this?
Steps:
- Run a VM with the GUI. Keyboard and mouse are connected through a USB KVM
switch shared with another Mac. - Switch the KVM to the other Mac, then switch back.
- Click between the VirtualBox window and other apps.
Result: VirtualBoxVM crashes with EXC_BAD_ACCESS (SIGSEGV), KERN_INVALID_ADDRESS
at 0x0 on the main thread. Crashing stack:
0 IOKit IOHIDDeviceCopyMatchingElements + 44
1 UICommon.dylib
2 UICommon.dylib DarwinHidDevicesApplyAndReleaseLedsState + 512
3 VirtualBoxVM
4 QtCore ... QApplicationPrivate::notify_helper / setActiveWindow
...
QCocoaWindow::windowDidBecomeKey (crash 1) and windowDidResignKey (crash 2)
Did you upload all of your necessary log files, screenshots, etc.?
- Yes, I've uploaded all pertinent files to this issue.
- 主要語言
- C
- 星號
- 1.4k
- 分支
- 219
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
VirtualBox/virtualbox 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
VirtualBox/virtualbox#979 ·
維護者通常 6 天內回覆
-
[Bug]: Guest Additions 7.2.20 vboxvideo fails to build on Linux kernel 6.12.113 (drm_fb_helper_restore_fbdev_mode_unlocked: too few arguments)可能已有人在做 @Berbe 於 11 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 76/100
VirtualBox/virtualbox#918 · 9 則留言 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 12/100
VirtualBox/virtualbox#981 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 8/100
VirtualBox/virtualbox#980 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 18/100
VirtualBox/virtualbox#977 ·
維護者通常 6 天內回覆
查看 VirtualBox/virtualbox 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
ROCm/rocm-libraries#15866 ·
維護者通常 2 天內回覆
-
[Qt] Fix QString conversion for game name in game_list_actions.cpp可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 1/5 1 小時以內 新手友好度 66/100
維護者通常 1 天內回覆
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
Status: Opened
難度 2/5 1-3 小時 新手友好度 62/100
-
Status: Opened
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 1 天內回覆