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

Loading module py-gitpython AND py-cylc-uiserver AND py-cylc-rose after update from spack develop as of 2024/01/26 destroys macOS user environment #980

Closed
climbfuji opened this issue Jan 31, 2024 · 2 comments
Assignees
Labels
bug Something is not working INFRA JEDI Infrastructure

Comments

@climbfuji
Copy link
Collaborator

climbfuji commented Jan 31, 2024

Describe the bug
For PR #977, loading the spack-generated lua modules for py-gitpython (tested versions 3.1.27 and 3.1.40) AND py-cylc-uiserver AND py-cylc-rose destroys the user environment on my macOS (Monterey 12.6.6, [email protected]). Every single command that I type after loading the module immediately crashes with:

dyld[54679]: Assertion failed: (next < &roBuffer[0x10000]), function roalloc, file DyldProcessConfig.cpp, line 653.

This may or may not be related to my older macOS and Xcode versions.

To Reproduce
See above

Expected behavior
No errors when loading large sets of modules.

System:
macOS Monterey 12.6.6, [email protected]

Additional context
See below

@climbfuji climbfuji added the bug Something is not working label Jan 31, 2024
@climbfuji climbfuji changed the title Loading module py-gitpython/3.1.40 after update from spack develop as of 2024/01/26 destroys macOS user environment Loading module py-gitpython AND py-cylc-uiserver AND py-cylc-rose after update from spack develop as of 2024/01/26 destroys macOS user environment Jan 31, 2024
@climbfuji climbfuji added the INFRA JEDI Infrastructure label Jan 31, 2024
@climbfuji climbfuji self-assigned this Jan 31, 2024
@climbfuji
Copy link
Collaborator Author

I figured out the root cause for this: TACC/Lmod#685

@climbfuji
Copy link
Collaborator Author

I've escalated this with the lmod developers and delivered a simple reproducer. We can track the above PR, but for now the simple solution is to install in a short enough path so that the combined length of DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH after loading ewok-env (or whatever modules needed) is less than 64k characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working INFRA JEDI Infrastructure
Projects
None yet
Development

No branches or pull requests

1 participant