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

Safer withargs #97

Closed
wants to merge 2 commits into from
Closed

Safer withargs #97

wants to merge 2 commits into from

Conversation

guibou
Copy link
Contributor

@guibou guibou commented Sep 22, 2024

This closes #91 by avoiding
a call to withArgs if the argument list is already empty.

withArgs can crash in a concurrent environment (see GHC BUG
https://gitlab.haskell.org/ghc/ghc/-/issues/18261), hence we reduce the
chance of this happening by not calling it when the list of arguments is
already in the required state (e.g. empty).

This closes NorfairKing#91 by avoiding
a call to `withArgs` if the argument list is already empty.

`withArgs` can crash in a concurrent environment (see GHC BUG
https://gitlab.haskell.org/ghc/ghc/-/issues/18261), hence we reduce the
chance of this happening by not calling it when the list of arguments is
already in the required state (e.g. empty).
@NorfairKing
Copy link
Owner

Oh that sounds great!

@NorfairKing
Copy link
Owner

About to merge once this passes:

I renamed the function to withNullArgs and added a version bump and changelog entry.

https://staging.nix-ci.com/account/repo/5f9f1cce-5b39-4651-879c-58dd8ed3d3f7/suite/7ff6f77b-8acf-42f4-826e-40fa0ee547ed

@NorfairKing
Copy link
Owner

NorfairKing commented Sep 26, 2024

Merged manually and released.

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.

Multiples sydTest segfault in parallel
2 participants