[Bug] nvpair-node-scanner causes macOS kernel panics (userspace_watchdog_timeout) due to aggressive net.Interfaces() polling
@sherief-nv y travaille déjà.
Depuis le 11/9/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- Go
- Étoiles
- 1.4k
- Forks
- 250
- Merge moyen
- 23 h 27 min
- PR mergées (30 j)
- 1
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NVIDIA/Personal-AI-Router
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
NVIDIA/Personal-AI-Router#94 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 74/100
NVIDIA/Personal-AI-Router#92 · 1 commentaire ·
-
NVIDIA/Personal-AI-Router#91 · 1 personne assignée ·
-
[Feature]: Support for Tailscale mesh network endpoints (CGNAT IPs and MagicDNS domain names) Ouverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
NVIDIA/Personal-AI-Router#85 · 1 commentaire ·
-
NVIDIA/Personal-AI-Router#84 · 2 commentaires · 1 personne assignée ·
Toutes les issues de NVIDIA/Personal-AI-Router
Issues similaires
-
optimization optimization:agents-md-curator
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
blinklabs-io/bursa#904 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 commentaires ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100