From 31cef63d20d6c95a6d9a30f317970e3d759d3c8d Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 23:59:01 -0800 Subject: [PATCH] FAST-PATHS known gaps: NVIDIA's SIGSEGV in the exit of a process whose device is live The exit hunt stops here, on the owner's word, with the cause not found. What is known: - exitcap-162601 (probe 7f851ced8c): 1 of 94 runtime children took SIGSEGV after their test passed with the device kept live. In the core the fault is in an NVIDIA worker (eglcore into libnvidia-glvkspirv+0x363b2, address 0x18) named after the ended test thread, while the main thread ran libEGL_nvidia's exit handler (an ioctl in glsi). The runtime's 30-odd threads were all waiting, none in a section or a making. - nvexit, a Vulkan program without the runtime (instance, NVIDIA device, one compute pipeline, return from main), beside the same 14-minute load of the runtime's device suite: - exitcrash-nvexit-201854: 507 with everything destroyed on the main thread, 0 faults; - exitcrash-nvexit-203651: 262 destroyed and 263 kept live, on the main thread, 0 faults; - exitcrash-nvexit-thread-230656: 259 destroyed and 259 kept live, made on a thread joined before the return, whose driver workers (named after it) still ran at the return, 0 faults. The line goes where a user of the runtime reads open gaps. (cherry picked from commit 5c6971ade39abb0ec1a92ad1c2a8fe80e112951e) --- docs/FAST-PATHS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/FAST-PATHS.md b/docs/FAST-PATHS.md index 16ee56358..33f933ca8 100644 --- a/docs/FAST-PATHS.md +++ b/docs/FAST-PATHS.md @@ -1236,6 +1236,20 @@ driver's. Each is open work. (`copied-host-pages`), at a copy's cost; a guest RAM's chunk over them is not imported. Which later allocations the driver fails, and for how long, is **unaudited** past the shapes measured there. +- **On NVIDIA, a process that exits with a device live can take `SIGSEGV` in its exit** (615.71.09 + on the RTX 5080 Laptop GPU, Linux): one of the driver's own worker threads faults in + `libnvidia-glvkspirv` (at address 0x18) while the main thread runs `libEGL_nvidia`'s exit + handler. Seen in 1 of 94 child processes that made a device on a test harness's thread and + returned with it live, beside the runtime's device suite: none of the runtime's threads was in a + section of the exit guard (`exit_guard.rs`) or a pipeline making, all waiting, and the faulting + worker carried the name of that thread, which had ended; and twice in a consumer's suite of about + 1900 tests, in a test that keeps its device in a static. A program without the runtime, which + made an instance, a device and a compute pipeline and returned, did not fault in 1550 runs beside + the same load: 1028 with everything destroyed first, and 522 with the device live, 263 made on + the main thread and 259 on a thread joined before the return (the driver's workers made from it + still running at the return, as in the runtime's child). The cause is not found, nor whether the + runtime's own state takes part. + - **Reflection after a compute descriptor reset on RADV**: `max_total_threads_per_threadgroup` answers 0 where Metal answers 96, `required_threads_per_threadgroup` `0x0x0` where Metal answers `8x6x2`, and `threadgroup_size_is_multiple_of_execution_width` false where Metal answers true