Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always use 64-bit file offsets #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alyssais
Copy link

Previously, OFD locking was broken on 32-bit, because it would somehow end up using the 64-bit fcntl() function, but pass it 32-bit off_t values in struct flock. To fix this, tell libc to use always use 64-bit file offsets.

This is the same fix that was applied for a similar issue in GHC.

Fixes: #15

Previously, OFD locking was broken on 32-bit, because it would somehow
end up using the 64-bit fcntl() function, but pass it 32-bit off_t
values in struct flock.  To fix this, tell libc to use always use
64-bit file offsets.

This is the same fix that was applied for a similar issue in GHC[1].

[1]: https://gitlab.haskell.org/ghc/ghc/-/commit/9853fc5e3556e733b56976b0a2fce9e82130a9ef

Fixes: haskellari#15
@bitc
Copy link
Contributor

bitc commented Aug 6, 2023

@phadej Is it possible to merge this? And then also release a new version of lukko on Hackage?

Thank you

@bitc
Copy link
Contributor

bitc commented Nov 27, 2023

@phadej bump

@phadej
Copy link
Collaborator

phadej commented Jun 5, 2024

@bitc @alyssais see #38

I cannot reproduce the failure myself, so I cannot verify the fix either.

EDIT: alpine doesn't use glibc, so that may explain why things work... are there GHA actions to setup qemu or chroot i386 with debians ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OFD locking broken on 32-bit Linux?
3 participants