Docs: on NVIDIA, a device kept to the exit can fault in the driver's own exit handler
What: FAST-PATHS's known gap of NVIDIA exits now names the cause and the measured rates, and HOWTO (section 8), the runtime README (at the process's exit) and API.md's accepted differences tell consumers to drop the runtime's devices before the process exits on that driver. exit_guard.rs and tests/exit_guard.rs, comments only, say that the 5080's fault in libnvidia-glvkspirv.so also comes with no making in progress. Why: reims-vgpu's test an_adopted_device_starts_its_in_place_check (device kept in a static, check waited for to its end, then the test process exits) died with SIGSEGV after "ok" on the RTX 3090. Reproduced with the runtime alone (a scratch example: device made on a named thread with an empty shader cache of its own, in-place check started and waited for, device kept, main returns). Every core shows the same thing: a worker thread of NVIDIA's driver, started from the thread that made the device and so carrying its name, faulting at libnvidia-glvkspirv.so+0x363a8 (`mov 0x18,%rax; ud2`, a null dereference trap) while the main thread runs libEGL_nvidia.so's exit handler inside exit(). No runtime thread was in a section or in the driver. reims's two cores on that node (pids 106291, 170154) faulted on a thread named after the test thread, which libtest joins before printing "ok", so a thread the driver started. How verified (RTX 3090, NVIDIA 620.70.06, 8 processes at once, 80 exits each): - exit right after the check ended, device kept: 6/80 SIGSEGV (potluck m3-max-16257) - exit 3 s after the check ended: 0/80 (m3-max-16279) - device dropped before the exit: 0/80 (m3-max-16280) - no check, exit right after creation / 6 s after: 0/80 each (m3-max-16278, m3-max-16277) - lavapipe (Mesa 26.2.6), exit right after the check: 0/20 (m3-max-16283) Vulkan has no call that waits for the driver's worker, and a dropped device leaves none, so the remedy is the consumer's drop, documented; no runtime behaviour changes.
This commit is contained in:
1 parent
2743373d34
commit
daf963ab80
6 files changed
+48
-5
No files matched your search
@@ -5169,6 +5169,12 @@ each item named states the rule in full.
|
||||
thread left running, ended a consumer's process with `SIGSEGV` inside NVIDIA's SPIR-V compiler
|
||||
(`libnvidia-glvkspirv.so`, RTX 5080). A program that ends its making threads before it exits
|
||||
leaves only the 2 ms window.
|
||||
- **On NVIDIA's proprietary driver, an exit with a device live can fault in the driver's own exit
|
||||
handler** with no making in progress, where Metal's exit is clean: the handler tears the driver's
|
||||
SPIR-V compiler down while a worker thread of the driver's still runs in it (a null dereference
|
||||
at `0x18` in `libnvidia-glvkspirv.so`, the fault above), on an RTX 3090 (620.70.06) in 6 of 80
|
||||
exits right after the device's check of textures over host pages ended, and none three seconds
|
||||
after it. A device dropped before the exit leaves none ([FAST-PATHS](FAST-PATHS.md), known gaps).
|
||||
|
||||
**Two-plane YCbCr textures**
|
||||
|
||||
|
||||
Reference in new issue
Block a user