From 41bc2c1b801b409443840b83005e7665c3888cd7 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 19 Nov 2026 06:32:12 -0800 Subject: [PATCH] rt README: a device that ran work does not exit cleanly alive on NVIDIA; drop it or _exit The quiesce section's 50-of-50 clean exits were runs that made a device and ran nothing. A consumer running a guest's work measured otherwise: on an RTX 3090 with driver 620.70.06, 3 of 9 power-offs crashed with SIGSEGV in exit() after quiesce answered true (0.4-5 ms, every rt thread ended). The faulting thread is the driver's own (libnvidia-eglcore, near NULL+0x18), and the main thread sits in the ICD's exit handler waiting on a rwlock; no rt frame is on either. The RTX 2080 was 0 of 4. The consumer's fix is to drop the device at its last release. The README now scopes the clean-exit numbers to their runs and states the gap and the two exits that avoid it. Verified: doc-only; the numbers are the consumer's (reims b264 rt platform, relayed 11-19). --- crates/metal2vulkan-rt/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index a0aee1980..aacbfbf4f 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -1118,6 +1118,13 @@ an RTX 3090), a handler registered after `Device::new` exited cleanly in 50 runs registered before `Instance::new` crashed in 50 of 50. The handler parks the consumer's own threads that touch blocks first. +Those runs made a device and ran nothing on it. A device that ran a program's work does not exit +cleanly with the device alive on NVIDIA's driver, even after quiesce answered true: on an RTX 3090 +(driver 620.70.06), 3 of 9 of a consumer's power-offs ended in a segmentation fault inside `exit()`, +in a thread of the driver's own reading near a null pointer while the driver's exit handler waited +on a lock, with every runtime thread already ended; an RTX 2080 exited cleanly in 4 of 4. On NVIDIA +the consumer drops the device's last handle before it exits, or ends with `_exit`: a known gap. + ### Known gaps - Command buffers committed while an earlier one of their queue runs are reported complete