Skip to content

test(stdune): cover stable Windows fd hashing - #16461

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-wxxrmuolkmtk
Sep 22, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-wxxrmuolkmtk

Conversation

@Alizter

@Alizter Alizter commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@Alizter
Alizter requested a review from rgrinberg September 22, 2026 16:14
@Alizter Alizter added windows Issues that relate to Dune on Microsoft Windows no changelog labels Sep 22, 2026
@Alizter
Alizter merged commit 9a5a695 into ocaml:main Sep 22, 2026
36 checks passed
@Alizter
Alizter deleted the push-wxxrmuolkmtk branch September 22, 2026 17:02
@Alizter Alizter added this to the 3.25.0 milestone Sep 23, 2026
Alizter added a commit that referenced this pull request Sep 25, 2026
Windows "file descriptors" are OCaml heap managed wrappers around their
underlying handles. Naively hashing file descriptors using their
underlying integer values, which works on unix, breaks on Windows.

This breakage was observed in #16459
together with a reproduction case submitted in
#16461.

We fix this issue by resorting to `Poly.hash` on Windows.

- Fixes #16459 
- [x] changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog windows Issues that relate to Dune on Microsoft Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants