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

Fix cryptic "failed to exec /usr/bin/env" errors with gasnet launchers #26281

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Nov 20, 2024

Fixes a cryptic error that can occur when there are enough environment variables that are long, causing us to run out of space in a buffer. This is especially a problem for something like spack, which is prone to embedding very long paths in many environment variables.

This PR works around this by excluding certain environment variables we know aren't needed, in this case the PR excludes all variables suffixed with _modshare. These variables end up being duplicateted, so you have VAR="some long string" and VAR_modshare="some long string". Its not important we maintain the duplicates, so this PR just filters them out.

Tested that with this patch the error goes away

[Reviewed by @jhh67]

Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: jabraham17 <[email protected]>
Signed-off-by: jabraham17 <[email protected]>
@jabraham17 jabraham17 changed the title Fix cryptic "failed to exec /usr/bin/env" errors with gasnet lauchers Fix cryptic "failed to exec /usr/bin/env" errors with gasnet launchers Nov 20, 2024
@jabraham17 jabraham17 merged commit ac4e93c into chapel-lang:main Nov 21, 2024
7 checks passed
@jabraham17 jabraham17 deleted the rework-chpl_get_enviro_keys branch November 21, 2024 01:58
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.

2 participants