[Bug]: VirtualBoxVM segfault in DarwinHidDevicesApplyAndReleaseLedsState after host USB KVM switch (macOS, 7.2.22)
Maintainer antworten meist innerhalb von 6 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- c, macos
- Bereich
- desktop, operating-systems
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 1.4k
- Forks
- 219
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus VirtualBox/virtualbox
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
VirtualBox/virtualbox#979 ·
Maintainer antworten meist innerhalb von 6 Tagen
-
[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)Evtl. vergeben @Berbe hat das vor 11 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
VirtualBox/virtualbox#918 · 9 Kommentare ·
Maintainer antworten meist innerhalb von 6 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 12/100
VirtualBox/virtualbox#981 ·
Maintainer antworten meist innerhalb von 6 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 8/100
VirtualBox/virtualbox#980 ·
Maintainer antworten meist innerhalb von 6 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
VirtualBox/virtualbox#977 ·
Maintainer antworten meist innerhalb von 6 Tagen
Alle Issues in VirtualBox/virtualbox
Ähnliche Issues
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Status: Opened
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Status: Opened
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
FriendsofECCE/ECCE#1018 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
immortalwrt/immortalwrt#2522 ·