[Bug] nvpair-node-scanner causes macOS kernel panics (userspace_watchdog_timeout) due to aggressive net.Interfaces() polling
Maintainer antworten meist innerhalb von 5 Tagen
@sherief-nv arbeitet bereits daran.
Seit 11.9.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
System Information
- OS: macOS (Apple Silicon / arm64)
- Component:
nvpair-node-scanner/shared/discovery - Symptom: Entire system freezes and reboots with a
userspace_watchdog_timeoutkernel panic.
Description
When running the PAIR macOS application, the system will randomly freeze and trigger a forced watchdog reboot. Analyzing the Apple Diagnostic Reports (/Library/Logs/DiagnosticReports/configd_*.spin) reveals that Apple's core network configuration daemon (configd) gets starved while waiting for a kernel read-write lock (krwlock).
The macOS crash logs explicitly show that this kernel lock is being held by nvpair-node-scanner:
*1 ??? (kernel.release.t6050 + 773428) [0xfffffe000b4a8d34] (blocked by krwlock for reading owned by nvpair-node-scanner [1309] [unique pid 791059] thread 0x6fa35b) 2
Root Cause Analysis
The root cause stems from the Windows mDNS workaround in services/shared/discovery/discovery.go.
The Browse loop executes every 5 seconds. Within this loop, sendMulticastQuery() is called to bypass a Windows-specific bug where grandcat/zeroconf drops UDP packets due to multicast bindings. However, sendMulticastQuery() executes unconditionally on all operating systems.
func sendMulticastQuery(service, domain string) map[string]bool {
// ...
ifaces, err := net.Interfaces()
// ...
// Iterates through all interfaces, binding and closing UDP sockets
On macOS, calling net.Interfaces() and rapidly binding/closing raw UDP sockets on every valid interface every 5 seconds inside a background daemon causes severe kernel routing table lock contention (krwlock). Over time, this starves configd, triggering the userspace_watchdog_timeout panic.
As the source comment itself notes, standard zeroconf receive/transmit works perfectly on macOS/Linux. This custom per-interface UDP barrage is only necessary on Windows.
Proposed Fix
Guarding the sendMulticastQuery() function so that it only executes on Windows completely eradicates the kernel panics on macOS, while preserving standard zeroconf discovery.
Patch for services/shared/discovery/discovery.go:
import "runtime"
// ...
func sendMulticastQuery(service, domain string) map[string]bool {
outcomes := make(map[string]bool)
// FIX: Restrict the socket workaround to Windows to prevent macOS krwlock starvation
if runtime.GOOS != "windows" {
return outcomes
}
msg := new(dns.Msg)
// ... rest of the function ...
}
We have compiled and deployed this patch locally across our macOS cluster, and it immediately resolved the panics. We highly recommend upstreaming this guard to prevent other macOS users from experiencing severe system reboots.
- Vorherrschende Sprache
- Go
- Sterne
- 1.6k
- Forks
- 266
- Ø Merge
- 3 T. 6 Std.
- Gemergte PRs (30 T.)
- 22
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine 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 NVIDIA/Personal-AI-Router
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
NVIDIA/Personal-AI-Router#165 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 46/100
NVIDIA/Personal-AI-Router#164 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
enhancement
Schwierigkeit 4/5 Über eine Woche Anfängerfreundlichkeit 12/100
NVIDIA/Personal-AI-Router#162 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
NVIDIA/Personal-AI-Router#154 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[Feature]: [Ollama] Alert the user about model pull failuresEvtl. vergeben @ckelseynv hat das vor 3 Tagen übernommen. Offenenhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
NVIDIA/Personal-AI-Router#152 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 5 Tagen
Alle Issues in NVIDIA/Personal-AI-Router
Ähnliche Issues
-
📖 docs: Docker Compose quick start doesn't mention editing the project values in src/hive.yamlOffendocumentation help wanted needs-triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 75/100
hivecommons/hive#11606 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
gravitational/teleport#69869 ·
-
category:agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
LanternOps/breeze#8493 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
shaiknoorullah/hg-mono#815 ·
Maintainer antworten meist innerhalb von 1 Tag