-
Notifications
You must be signed in to change notification settings - Fork 14
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
Foreign.C.Error.errnoToIOError
should use strerror_r
, not strerror
#249
Comments
The MR is at https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11984. Once CI is green, I intend to trigger a vote so that we have a chance to fix it in time for GHC 9.10. |
It would be appreciated if we could bring this to a vote as I don't imagine that the approach is going to fundamentally change at this point. |
@bgamari I made an exception for the series of exception backtraces proposals, but in general we strive to vote on a finished MR so that there are less surprises afterwards. Please ping me once CI gets green. |
The MR is now passing. |
+1 This seems very sensible |
Looking at the change I wonder whether this is exactly a change one should not need to ask CLC about? The readme of this repository says:
|
Dear CLC members, let's vote on the proposal to implement @hasufell @mixphix @velveteer @angerman @parsonsmatt +1 from me. |
+1 |
That was my feeling as well; however, out of deference to the committee I asked and @Bodigrim advised to open a proposal. |
+1 |
This sets a precedence that virtually any change to In particular, I don't think that
is true. There cannot be responsibility without power. |
The change affects visible behavior of If there is an interest in a meta discussion, please open a separate issue. |
+1 |
Thanks all, that's enough votes to approve. |
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: haskell/core-libraries-committee#249
strerror
is not in general thread-safe and therefore cannot be reliably used in Haskell programs. POSIX.1-2001 providesstrerror_r
, which is reentrant while providing similar semantics. On Windows we must rather usestderror_s
.Foreign.C.Error.errnoToIOError
should use these notstrerror
.See GHC #24344.
The text was updated successfully, but these errors were encountered: