windows CI: guest_kqueue fails with exit 0xc0000409 since the kqueue pipe/timer extensions #5435

Closed
opened 2026-10-13 19:42:32 +00:00 by LeandroSSB · 5 comments
LeandroSSB commented 2026-10-13 19:42:32 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroSSB on 2026-10-13T19:42:32Z.


guest_kqueue fails in the windows job of main-run 38451769652 (dacd78525, 19:03Z, 1 of 950+):

950 - guest_kqueue (Exit code 0xc0000409)
``\]

The linux job of the same run passes. The test was added with the kqueue implementation (#3461, 2026-10-12) and the previous main run, [38440851082](https://github.com/boykopovar/AnyPS5/actions/runs/38440851082) at 17:42Z, was green — so this is a regression in the 17:42→19:03 window. The merges in that window include two kqueue extensions: #4910 (read and write events on pipes and terminals) and #4908 (low-water-mark waiting in descriptor events), either of which could have broken the Windows path.

No open PR currently addresses this test. Not reproducing on Linux — the failure mode (0xc0000409) suggests an uncaught exception, the same family as #3459.

AI-assisted (Claude Code); I traced the CI logs.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5836613346 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5435). Originally posted by [LeandroSSB](https://github.com/LeandroSSB) on 2026-10-13T19:42:32Z. --- `guest_kqueue` fails in the `windows` job of main-run [38451769652](https://github.com/boykopovar/AnyPS5/actions/runs/38451769652) (`dacd78525`, 19:03Z, 1 of 950+): ``` 950 - guest_kqueue (Exit code 0xc0000409) ``\] The linux job of the same run passes. The test was added with the kqueue implementation (#3461, 2026-10-12) and the previous main run, [38440851082](https://github.com/boykopovar/AnyPS5/actions/runs/38440851082) at 17:42Z, was green — so this is a regression in the 17:42→19:03 window. The merges in that window include two kqueue extensions: #4910 (read and write events on pipes and terminals) and #4908 (low-water-mark waiting in descriptor events), either of which could have broken the Windows path. No open PR currently addresses this test. Not reproducing on Linux — the failure mode (0xc0000409) suggests an uncaught exception, the same family as #3459. AI-assisted (Claude Code); I traced the CI logs.
MarcZX10 commented 2026-10-13 19:44:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T19:44:54Z.


I checked the failing Windows job log. The test does not fail in the pipe/timer cases: it throws EVFILT_VNODE: FindFirstChangeNotification failed, error=5 during the directory-watch portion of guest_kqueue. The current error string is shared by WatchParent and WatchContents, so the log does not identify which notification handle/path was denied. Also, #4910 and #4908 are still open and unmerged; neither could have introduced this main-branch failure. Could you rerun the Windows job and capture the failing watcher path/notification type (or add that context to the error) before we attribute it to those PRs? I compared the green 17:42 and failing 19:03 heads; Equeue/ and GuestKqueue.cpp are unchanged between them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6153773346 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5435#issuecomment-6153773346). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T19:44:54Z. --- I checked the failing Windows job log. The test does not fail in the pipe/timer cases: it throws `EVFILT_VNODE: FindFirstChangeNotification failed, error=5` during the directory-watch portion of `guest_kqueue`. The current error string is shared by `WatchParent` and `WatchContents`, so the log does not identify which notification handle/path was denied. Also, #4910 and #4908 are still open and unmerged; neither could have introduced this main-branch failure. Could you rerun the Windows job and capture the failing watcher path/notification type (or add that context to the error) before we attribute it to those PRs? I compared the green 17:42 and failing 19:03 heads; `Equeue/` and `GuestKqueue.cpp` are unchanged between them.
LeandroSSB commented 2026-10-13 20:40:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroSSB on 2026-10-13T20:40:38Z.


Correction to my report above: the run was re-run and completed successfully — the failure was not deterministic. MarcZX100's diagnosis is the real root cause (FindFirstChangeNotification access-denied in the VNODE watch, not the pipe/timer extensions I named). If this recurs intermittently, the VNODE watch's error=5 is the thing to track; my merge-window attribution was wrong.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154767790 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5435#issuecomment-6154767790). Originally posted by [LeandroSSB](https://github.com/LeandroSSB) on 2026-10-13T20:40:38Z. --- Correction to my report above: the run was re-run and completed successfully — the failure was not deterministic. MarcZX100's diagnosis is the real root cause (`FindFirstChangeNotification` access-denied in the VNODE watch, not the pipe/timer extensions I named). If this recurs intermittently, the VNODE watch's error=5 is the thing to track; my merge-window attribution was wrong.
MarcZX10 commented 2026-10-13 20:42:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T20:42:25Z.


Thanks for the correction and rerun. Good to know the Windows failure was intermittent and the successful rerun points to the VNODE access-denied path rather than the pipe/timer changes. I’ll leave the issue as a record of the intermittent failure and its diagnostic detail; if it recurs, the watcher path and notification type will help narrow it further.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154797807 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5435#issuecomment-6154797807). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T20:42:25Z. --- Thanks for the correction and rerun. Good to know the Windows failure was intermittent and the successful rerun points to the VNODE access-denied path rather than the pipe/timer changes. I’ll leave the issue as a record of the intermittent failure and its diagnostic detail; if it recurs, the watcher path and notification type will help narrow it further.
MarcZX10 commented 2026-10-13 22:07:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T22:07:09Z.


Follow-up: PR #5493 adds the watcher name, path and Windows error code to FindFirstChangeNotification failures, with a denied-parent regression test. It keeps the throw behavior because there is no grounded FreeBSD errno mapping for this host access-denied case. That should make the next intermittent recurrence distinguish the parent, entries and subdirectories watches.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156199687 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5435#issuecomment-6156199687). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T22:07:09Z. --- Follow-up: [PR #5493](https://github.com/boykopovar/AnyPS5/pull/5493) adds the watcher name, path and Windows error code to `FindFirstChangeNotification` failures, with a denied-parent regression test. It keeps the throw behavior because there is no grounded FreeBSD errno mapping for this host access-denied case. That should make the next intermittent recurrence distinguish the parent, entries and subdirectories watches.
oneandonlydean commented 2026-10-14 04:30:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T04:30:48Z.


Closing: fixed on main by #5393 (the vnode watch no longer throws FindFirstChangeNotification error=5 when the watched file is deleted). If guest_kqueue fails again on current main, comment here with the run link and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160926617 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5435#issuecomment-6160926617). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T04:30:48Z. --- Closing: fixed on main by #5393 (the vnode watch no longer throws FindFirstChangeNotification error=5 when the watched file is deleted). If guest_kqueue fails again on current main, comment here with the run link and the log line.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#5435
No description provided.